Documentation Index
Fetch the complete documentation index at: https://docs.aspect.build/llms.txt
Use this file to discover all available pages before exploring further.
Documentation for @rules_ruby@v0.23.1 — View source
Function: rb_bundle
Wraps rb_bundle_rule() providing default toolchain name.
Parameters
default Ruby toolchain BUILD
underlying attrs passed to rb_bundle_rule()
Function: rb_register_toolchains
Register a Ruby toolchain and lazily download the Ruby Interpreter.
- (For MRI on Linux and macOS) Installed using ruby-build.
- (For MRI on Windows) Installed using RubyInstaller.
- (For JRuby on any OS) Downloaded and installed directly from official website.
- (For TruffleRuby on Linux and macOS) Installed using ruby-build.
- (With portable_ruby) Portable Ruby downloaded from jdx/ruby.
- (For “system”) Ruby found on the PATH is used. Please note that builds are not hermetic in this case.
WORKSPACE:
select() depending on installed Ruby interpreter:
BUILD:
Parameters
base name of resulting repositories, by default “ruby”
a semver version of MRI, or a string like [interpreter type]-[version], or “system”
.ruby-version or .tool-versions file to read version from
extra MSYS2 packages to install
when True, downloads portable Ruby from jdx/ruby instead of compiling
via ruby-build. Has no effect on JRuby, TruffleRuby, or Windows.
platform checksums for portable Ruby downloads, overriding
built-in checksums. Keys: linux-x86_64, linux-arm64, macos-arm64, macos-x86_64.
whether to register the resulting toolchains, should be False under bzlmod
additional parameters to the downloader for this interpreter type
Repository rule: rb_bundle_fetch
Fetches Bundler dependencies to be automatically installed by other targets.
Currently doesn’t support installing gems from Git repositories,
see https://github.com/bazel-contrib/rules_ruby/issues/62.
WORKSPACE:
gem_checksums attribute.
WORKSPACE:
@bundle target and additionally
gems binary files can also be used via BUILD rules or directly with bazel run:
BUILD:
Attributes
A unique name for this repository.
In
WORKSPACE context only: a dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target, it should actually resolve that dependency within globally-declared @bar (@bar//some:target).This attribute is not supported in MODULE.bazel context (when invoking a repository rule inside a module extension’s implementation function).Gemfile to install dependencies from.
Gemfile.lock to install dependencies from.
List of Ruby source files necessary during installation.
Environment variables to use during installation.
Remote to fetch the bundler gem from.
Custom map from Bundler version to its SHA-256 checksum.
SHA-256 checksums for remote gems. Keys are gem names (e.g. foobar-1.2.3), values are SHA-256 checksums.
SHA-256 checksums for JAR dependencies. Keys are Maven coordinates (e.g. org.yaml:snakeyaml:1.33), values are SHA-256 checksums.
Override Ruby toolchain to use for installation.
A list of patterns to match against urls for which the auth object should be used.
Path to .netrc file to read credentials from
Repository rule: rb_bundle_rule
(Deprecated) Use rb_bundle_fetch() instead.
Installs Bundler dependencies and registers an external repository
that can be used by other targets.
WORKSPACE:
@bundle target and additionally
gems binary files can also be used:
BUILD:
Attributes
A unique name for this repository.
In
WORKSPACE context only: a dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target, it should actually resolve that dependency within globally-declared @bar (@bar//some:target).This attribute is not supported in MODULE.bazel context (when invoking a repository rule inside a module extension’s implementation function).List of Ruby source files used to build the library.
Gemfile to install dependencies from.
Environment variables to use during installation.

