diff --git a/modules/rules_ruby/0.5.0/MODULE.bazel b/modules/rules_ruby/0.5.0/MODULE.bazel new file mode 100644 index 00000000000..e291dcc7c22 --- /dev/null +++ b/modules/rules_ruby/0.5.0/MODULE.bazel @@ -0,0 +1,16 @@ +"Define the Bazel module published to the Bazel Central Registry" + +module( + name = "rules_ruby", + # NB: this version will be replaced after a release by the Publish to BCR app + version = "0.5.0", + compatibility_level = 1, +) + +# Lower-bound dependency versions. +# These should NOT be increased unless needed, as bumping our lower-bound may change +# the versions resolved in users repositories. +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "platforms", version = "0.0.5") + +# TODO: should we register any toolchain by default? diff --git a/modules/rules_ruby/0.5.0/patches/module_dot_bazel_version.patch b/modules/rules_ruby/0.5.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..5249b6e457f --- /dev/null +++ b/modules/rules_ruby/0.5.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_ruby", + # NB: this version will be replaced after a release by the Publish to BCR app +- version = "0.0.0", ++ version = "0.5.0", + compatibility_level = 1, + ) + + # Lower-bound dependency versions. diff --git a/modules/rules_ruby/0.5.0/presubmit.yml b/modules/rules_ruby/0.5.0/presubmit.yml new file mode 100644 index 00000000000..628f683dbe3 --- /dev/null +++ b/modules/rules_ruby/0.5.0/presubmit.yml @@ -0,0 +1,10 @@ +bcr_test_module: + module_path: "examples/gem" + matrix: + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_ruby/0.5.0/source.json b/modules/rules_ruby/0.5.0/source.json new file mode 100644 index 00000000000..8f5039ba8b9 --- /dev/null +++ b/modules/rules_ruby/0.5.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-m/q3bhJy2ucjVcZcyFjt5otllxY4FIW6pMjnpw3cOKY=", + "strip_prefix": "rules_ruby-0.5.0", + "url": "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.5.0/rules_ruby-v0.5.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-a8mps/gJ46ox0NNXSQKcTDWBor/bTNw4Fns48vqQpbo=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ruby/metadata.json b/modules/rules_ruby/metadata.json index e3368830e00..35770455626 100644 --- a/modules/rules_ruby/metadata.json +++ b/modules/rules_ruby/metadata.json @@ -12,7 +12,8 @@ "versions": [ "0.2.0", "0.3.0", - "0.4.1" + "0.4.1", + "0.5.0" ], "yanked_versions": {} }