From 7517fe1d7302d18f32f94fec2c038873c596db24 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:32:43 +0000 Subject: [PATCH] Publish bazel-contrib/rules_ruby@v0.3.0 (#1162) Co-authored-by: Alex Eagle --- modules/rules_ruby/0.3.0/MODULE.bazel | 16 ++++++++++++++++ .../0.3.0/patches/module_dot_bazel_version.patch | 14 ++++++++++++++ modules/rules_ruby/0.3.0/presubmit.yml | 10 ++++++++++ modules/rules_ruby/0.3.0/source.json | 9 +++++++++ modules/rules_ruby/metadata.json | 7 ++++--- 5 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 modules/rules_ruby/0.3.0/MODULE.bazel create mode 100644 modules/rules_ruby/0.3.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ruby/0.3.0/presubmit.yml create mode 100644 modules/rules_ruby/0.3.0/source.json diff --git a/modules/rules_ruby/0.3.0/MODULE.bazel b/modules/rules_ruby/0.3.0/MODULE.bazel new file mode 100644 index 00000000000..c73cdf74c69 --- /dev/null +++ b/modules/rules_ruby/0.3.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.3.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.3.0/patches/module_dot_bazel_version.patch b/modules/rules_ruby/0.3.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..03501caa13d --- /dev/null +++ b/modules/rules_ruby/0.3.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.3.0", + compatibility_level = 1, + ) + + # Lower-bound dependency versions. diff --git a/modules/rules_ruby/0.3.0/presubmit.yml b/modules/rules_ruby/0.3.0/presubmit.yml new file mode 100644 index 00000000000..442107498b4 --- /dev/null +++ b/modules/rules_ruby/0.3.0/presubmit.yml @@ -0,0 +1,10 @@ +bcr_test_module: + module_path: "examples/gem" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_ruby/0.3.0/source.json b/modules/rules_ruby/0.3.0/source.json new file mode 100644 index 00000000000..5d23b0f58fe --- /dev/null +++ b/modules/rules_ruby/0.3.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-VoGfeqBgdLLxDyiMMh08YRta8hl8rScB4LPzY3kmFSw=", + "strip_prefix": "rules_ruby-0.3.0", + "url": "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.3.0/rules_ruby-v0.3.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-6SZynWZCKrP79tVadgio+WDamLwQjCE8tT0Ooct5PjY=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ruby/metadata.json b/modules/rules_ruby/metadata.json index a0590ee9253..312c1424df4 100644 --- a/modules/rules_ruby/metadata.json +++ b/modules/rules_ruby/metadata.json @@ -1,5 +1,5 @@ { - "homepage": "https://github.com/p0deje/rules_ruby", + "homepage": "https://github.com/bazel-contrib/rules_ruby", "maintainers": [ { "github": "p0deje", @@ -7,10 +7,11 @@ } ], "repository": [ - "github:p0deje/rules_ruby" + "github:bazel-contrib/rules_ruby" ], "versions": [ - "0.2.0" + "0.2.0", + "0.3.0" ], "yanked_versions": {} }