Skip to content

Commit 7647bbd

Browse files
1 parent e9cd9d6 commit 7647bbd

File tree

5 files changed

+71
-1
lines changed

5 files changed

+71
-1
lines changed
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"Define the Bazel module published to the Bazel Central Registry"
2+
3+
module(
4+
name = "rules_ruby",
5+
# NB: this version will be replaced after a release by the Publish to BCR app
6+
version = "0.19.0",
7+
compatibility_level = 1,
8+
)
9+
10+
# Lower-bound dependency versions.
11+
# These should NOT be increased unless needed, as bumping our lower-bound may change
12+
# the versions resolved in users repositories.
13+
bazel_dep(name = "bazel_features", version = "1.9.0")
14+
bazel_dep(name = "bazel_skylib", version = "1.3.0")
15+
bazel_dep(name = "platforms", version = "0.0.5")
16+
bazel_dep(name = "rules_cc", version = "0.0.9")
17+
bazel_dep(name = "rules_java", version = "7.2.0")
18+
19+
# Ruleset development dependencies.
20+
bazel_dep(name = "aspect_bazel_lib", version = "2.14.0", dev_dependency = True)
21+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True)
22+
bazel_dep(name = "buildifier_prebuilt", version = "8.0.1", dev_dependency = True)
23+
bazel_dep(name = "gazelle", version = "0.42.0", dev_dependency = True)
24+
bazel_dep(name = "rules_go", version = "0.53.0", dev_dependency = True)
25+
bazel_dep(name = "stardoc", version = "0.8.0", dev_dependency = True)
26+
27+
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk", dev_dependency = True)
28+
go_sdk.download(version = "1.23.1")
29+
30+
# TODO: should we register any toolchain by default?
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -2,9 +2,9 @@
5+
6+
module(
7+
name = "rules_ruby",
8+
# NB: this version will be replaced after a release by the Publish to BCR app
9+
- version = "0.0.0",
10+
+ version = "0.19.0",
11+
compatibility_level = 1,
12+
)
13+
14+
# Lower-bound dependency versions.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://github.com/bazel-contrib/publish-to-bcr/tree/main/templates#presubmityml
2+
bcr_test_module:
3+
module_path: "examples/gem"
4+
matrix:
5+
bazel: ["8.x", "7.x", "6.x"]
6+
# NB: Windows is removed due to https://github.com/bazel-contrib/rules_ruby/issues/64
7+
platform: ["debian10", "macos", "ubuntu2004"]
8+
tasks:
9+
run_tests:
10+
name: "Run test module"
11+
platform: ${{ platform }}
12+
bazel: ${{ bazel }}
13+
test_flags:
14+
- "--test_tag_filters=-bcr-presubmit-failure"
15+
test_targets:
16+
- "//..."

modules/rules_ruby/0.19.0/source.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-Lsown4l6k9FkVLG0lLwfjBgDXX26WmicNgQ01MiMjO8=",
3+
"strip_prefix": "rules_ruby-0.19.0",
4+
"url": "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.19.0/rules_ruby-v0.19.0.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-wRkZYh17wMKoD38/YOgu/a4N9ngm8YEiYYWqLuWcjwI="
7+
},
8+
"patch_strip": 1
9+
}

modules/rules_ruby/metadata.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"0.17.0",
3333
"0.17.2",
3434
"0.17.3",
35-
"0.18.0"
35+
"0.18.0",
36+
"0.19.0"
3637
],
3738
"yanked_versions": {}
3839
}

0 commit comments

Comments
 (0)