Skip to content

aspect-forks/rules_ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Rules for Bazel

Overview

This repository hosts Ruby language ruleset for Bazel.

The ruleset is known to work with Bazel 5 and 6.

Getting Started

Pending the first release.

Documentation

  • See repository rules for the documentation of WORKSPACE rules.
  • See rules for the documentation of BUILD rules.

Toolchains

The following toolchains are known to work and tested on CI.

Ruby Linux macOS Windows
MRI 3.2 🟩 🟩 🟩
MRI 3.1 🟩 🟩 🟩
MRI 3.0 🟩 🟩 🟩
JRuby 9.4 🟩 🟩 🟩
TruffleRuby 23.0 🟩 🟩 🟥

The following toolchains were previously known to work but no longer tested on CI.

Ruby Linux macOS Windows
MRI 2.7 🟩 🟩 🟩
JRuby 9.3 🟩 🟩 🟩
TruffleRuby 22.0 🟩 🟩 🟥

MRI

On Linux and macOS, ruby-build is used to install MRI from sources. Keep in mind, that it takes some time for compilation to complete.

On Windows, RubyInstaller is used to install MRI.

JRuby

On all operating systems, JRuby is downloaded manually. It uses Bazel runtime Java toolchain as JDK.

TruffleRuby

On Linux and macOS, ruby-build is used to install TruffleRuby. Windows is not supported.

Other

On Linux and macOS, you can potentially use any Ruby distribution that is supported by ruby-build. However, some are known not to work or work only partially (e.g. mRuby has no bundler support).

Known Issues

Releases

No releases published

Packages

No packages published

Languages

  • Starlark 93.5%
  • Ruby 2.8%
  • Smarty 2.6%
  • Other 1.1%