From 9070cc887f9e668f2fd178273bff472e5dda1fa3 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Sun, 22 Dec 2024 02:40:36 +0000 Subject: [PATCH] Publish bazel-contrib/rules_ruby@v0.15.0 --- modules/rules_ruby/0.15.0/MODULE.bazel | 27 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++++ modules/rules_ruby/0.15.0/presubmit.yml | 14 ++++++++++ modules/rules_ruby/0.15.0/source.json | 9 +++++++ modules/rules_ruby/metadata.json | 3 ++- 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ruby/0.15.0/MODULE.bazel create mode 100644 modules/rules_ruby/0.15.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ruby/0.15.0/presubmit.yml create mode 100644 modules/rules_ruby/0.15.0/source.json diff --git a/modules/rules_ruby/0.15.0/MODULE.bazel b/modules/rules_ruby/0.15.0/MODULE.bazel new file mode 100644 index 00000000000..8c743b20692 --- /dev/null +++ b/modules/rules_ruby/0.15.0/MODULE.bazel @@ -0,0 +1,27 @@ +"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.15.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") + +# Ruleset development dependencies. +bazel_dep(name = "aspect_bazel_lib", version = "2.10.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "7.3.1", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.40.0", dev_dependency = True) +bazel_dep(name = "rules_go", version = "0.51.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.7.2", dev_dependency = True) + +go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk", dev_dependency = True) +go_sdk.download(version = "1.23.1") + +# TODO: should we register any toolchain by default? diff --git a/modules/rules_ruby/0.15.0/patches/module_dot_bazel_version.patch b/modules/rules_ruby/0.15.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..db1d28aa1c7 --- /dev/null +++ b/modules/rules_ruby/0.15.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.15.0", + compatibility_level = 1, + ) + + # Lower-bound dependency versions. diff --git a/modules/rules_ruby/0.15.0/presubmit.yml b/modules/rules_ruby/0.15.0/presubmit.yml new file mode 100644 index 00000000000..5c1f5fde898 --- /dev/null +++ b/modules/rules_ruby/0.15.0/presubmit.yml @@ -0,0 +1,14 @@ +# https://github.com/bazel-contrib/publish-to-bcr/tree/main/templates#presubmityml +bcr_test_module: + module_path: "examples/gem" + matrix: + bazel: ["8.x", "7.x", "6.x"] + # NB: Windows is removed due to https://github.com/bazel-contrib/rules_ruby/issues/64 + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/rules_ruby/0.15.0/source.json b/modules/rules_ruby/0.15.0/source.json new file mode 100644 index 00000000000..d4274685709 --- /dev/null +++ b/modules/rules_ruby/0.15.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ZcRFQt5hI97LPnqD35wQGMb833SJ1lI80PU1LBLPROw=", + "strip_prefix": "rules_ruby-0.15.0", + "url": "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.15.0/rules_ruby-v0.15.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-5zQEZ/iHKVWJWw1kLq7BywTx9G4DMezwLAacUsEUTSc=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ruby/metadata.json b/modules/rules_ruby/metadata.json index a47447c071e..a0bd91ff7a3 100644 --- a/modules/rules_ruby/metadata.json +++ b/modules/rules_ruby/metadata.json @@ -25,7 +25,8 @@ "0.12.2", "0.13.0", "0.14.0", - "0.14.1" + "0.14.1", + "0.15.0" ], "yanked_versions": {} }