Skip to content

Commit b58a083

Browse files
committed
chore: format code
1 parent 730efa5 commit b58a083

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

ruby/extensions.bzl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@ ruby_toolchain = tag_class(attrs = {
3232
"ruby_build_version": attr.string(doc = "Version of ruby-build to use.", default = RUBY_BUILD_VERSION),
3333
"msys2_packages": attr.string_list(doc = "Extra MSYS2 packages to install.", default = ["libyaml"]),
3434
"rv_version": attr.string(
35-
doc = "rv-ruby release version (e.g., '20251225'). When set, downloads prebuilt Ruby from rv-ruby instead of compiling via ruby-build.",
35+
doc = """\
36+
rv-ruby release version (e.g., '20251225'). When set, downloads prebuilt Ruby \
37+
from rv-ruby instead of compiling via ruby-build.\
38+
""",
3639
default = "",
3740
),
3841
"rv_checksums": attr.string_dict(
39-
doc = "Platform checksums for rv-ruby downloads. Keys: linux-x86_64, linux-arm64, macos-arm64, macos-x86_64.",
42+
doc = """\
43+
Platform checksums for rv-ruby downloads. Keys: linux-x86_64, linux-arm64, \
44+
macos-arm64, macos-x86_64.\
45+
""",
4046
default = {},
4147
),
4248
})

ruby/private/bundle_fetch.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ rb_bundle_fetch = repository_rule(
308308
),
309309
"excluded_gems": attr.string_list(
310310
default = [],
311-
doc = "List of gem names to exclude from downloading. Useful for default gems bundled with Ruby (e.g., psych, stringio).",
311+
doc = """\
312+
List of gem names to exclude from downloading. Useful for default gems bundled \
313+
with Ruby (e.g., psych, stringio).\
314+
""",
312315
),
313316
"ruby": attr.label(
314317
doc = "Override Ruby toolchain to use for installation.",

ruby/private/download.bzl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,20 @@ def _rb_download_impl(repository_ctx):
110110
if repository_ctx.attr.rv_version:
111111
if repository_ctx.os.name.startswith("windows"):
112112
# buildifier: disable=print
113-
print("WARNING: rv-ruby is not supported on Windows. Falling back to RubyInstaller for Ruby %s." % version)
113+
print("""\
114+
WARNING: rv-ruby is not supported on Windows. Falling back to RubyInstaller \
115+
for Ruby %s.\
116+
""" % version)
114117
else:
115118
use_rv_ruby = True
116119

117120
if use_rv_ruby:
118-
_install_rv_ruby(repository_ctx, repository_ctx.attr.rv_version, version, repository_ctx.attr.rv_checksums)
121+
_install_rv_ruby(
122+
repository_ctx,
123+
repository_ctx.attr.rv_version,
124+
version,
125+
repository_ctx.attr.rv_checksums,
126+
)
119127
elif version.startswith("jruby"):
120128
_install_jruby(repository_ctx, version)
121129

@@ -323,7 +331,9 @@ def _install_rv_ruby(repository_ctx, rv_version, ruby_version, checksums):
323331
if platform_key in checksums:
324332
kwargs["sha256"] = checksums[platform_key]
325333

326-
repository_ctx.report_progress("Downloading rv-ruby %s for %s" % (ruby_version, platform_key))
334+
repository_ctx.report_progress(
335+
"Downloading rv-ruby %s for %s" % (ruby_version, platform_key),
336+
)
327337

328338
repository_ctx.download_and_extract(
329339
url = _RV_RUBY_URL.format(

0 commit comments

Comments
 (0)