Skip to content

Commit b33bb1c

Browse files
1 parent 4997860 commit b33bb1c

File tree

5 files changed

+66
-1
lines changed

5 files changed

+66
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.15.1",
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_skylib", version = "1.3.0")
14+
bazel_dep(name = "platforms", version = "0.0.5")
15+
16+
# Ruleset development dependencies.
17+
bazel_dep(name = "aspect_bazel_lib", version = "2.10.0", dev_dependency = True)
18+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True)
19+
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1", dev_dependency = True)
20+
bazel_dep(name = "gazelle", version = "0.40.0", dev_dependency = True)
21+
bazel_dep(name = "rules_go", version = "0.51.0", dev_dependency = True)
22+
bazel_dep(name = "stardoc", version = "0.7.2", dev_dependency = True)
23+
24+
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk", dev_dependency = True)
25+
go_sdk.download(version = "1.23.1")
26+
27+
# TODO: should we register any toolchain by default?
Lines changed: 14 additions & 0 deletions
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.15.1",
11+
compatibility_level = 1,
12+
)
13+
14+
# Lower-bound dependency versions.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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_targets:
14+
- "//..."
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-89qd6otfcj7DO2QYH2q+p8EO6k2Glt2PG9WLAxZv7Y0=",
3+
"strip_prefix": "rules_ruby-0.15.1",
4+
"url": "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.15.1/rules_ruby-v0.15.1.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-3LzI9V0BHswMhYsZCenMaCVePmTOM/MVxKiza/NMWJ4="
7+
},
8+
"patch_strip": 1
9+
}

modules/rules_ruby/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"0.12.2",
2626
"0.13.0",
2727
"0.14.0",
28-
"0.14.1"
28+
"0.14.1",
29+
"0.15.1"
2930
],
3031
"yanked_versions": {}
3132
}

0 commit comments

Comments
 (0)