Skip to content

Releases: bazel-contrib/rules_ruby

v0.8.1

06 Mar 17:28
2e828a4
Compare
Choose a tag to compare

Using Bzlmod with Bazel 7

  1. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.8.1")

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.8.1")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "9ff781fd8180c2be8b3ab0f16d1d88d618c3b1bc4d502dcb914591886da40014",
    strip_prefix = "rules_ruby-0.8.1",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.8.1/rules_ruby-v0.8.1.tar.gz",
)

What's Changed

  • fix: presubmit missing bazel propery by @p0deje in #95
  • ci: separate repository caches in examples by @p0deje in #96
  • fix: propagate Ruby toolchain files as inputs to rb_gem_build by @p0deje in #94

Full Changelog: v0.8.0...v0.8.1

v0.8.0

05 Mar 19:26
fde8cb7
Compare
Choose a tag to compare

Using Bzlmod with Bazel 7

  1. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.8.0")

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.8.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "00ec03ad04ff1657362277e00a90a1b24616673005089aab6dcc664d42670c55",
    strip_prefix = "rules_ruby-0.8.0",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.8.0/rules_ruby-v0.8.0.tar.gz",
)

What's Changed

  • fix!: avoid overlapping output files in rb_binary by @p0deje in #93
  • chore: test module on bazel 6/7 by @p0deje in #92

Full Changelog: v0.7.0...v0.8.0

v0.7.0

03 Mar 03:25
Compare
Choose a tag to compare
  • Adds bundler_remote attribute to rb_bundle_fetch() repository rule which allows to install bundler from a different location that rubygems.org
  • Adds support for gems integrity in rb_bundle_fetch() repository rule via gem_checksums and bundler_checksums attributes. Checksums for bundler are shipped with the ruleset itself, so only need to overwrite if an unknown version is used or you use a custom bundler.
  • Supports $(location ...) expansion in env attribute of rb_binary() and rb_test() rules.
  • Supports passing custom PATH in env attribute of rb_bundle_fetch() repository rule.

Using Bzlmod with Bazel 7

  1. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.7.0")

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.7.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "018c9dd8aa0746e989dfb5ef6bfc582ff29c20f28a1444370990b6408cd6d646",
    strip_prefix = "rules_ruby-0.7.0",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.7.0/rules_ruby-v0.7.0.tar.gz",
)

What's Changed

  • chore(deps): update dependency bazel to v7.0.2 by @renovate in #71
  • chore(deps): update dependency aspect_bazel_lib to v2.4.1 by @renovate in #75
  • chore(deps): update p0deje/setup-bazel action to v0.5.0 by @renovate in #76
  • chore(deps): update dependency io_bazel_rules_go to v0.46.0 by @renovate in #77
  • add an example jekyll site by @RyanDraves in #74
  • chore(deps): update p0deje/setup-bazel action to v0.5.0 by @renovate in #78
  • chore(deps): update p0deje/setup-bazel action to v0.6.0 by @renovate in #79
  • chore(deps): update dependency aspect_bazel_lib to v2.4.2 by @renovate in #80
  • Add bundler_remote attribute to rb_bundle_fetch by @sushain97 in #81
  • Add bundler checksums by @sushain97 in #83
  • Actually use the bundler checksum by @sushain97 in #84
  • chore(deps): update dependency aspect_bazel_lib to v2.5.0 by @renovate in #85
  • chore(deps): update bazel-contrib/.github action to v6 by @renovate in #86
  • Support providing integrity for gem downloads by @sushain97 in #82
  • chore: enable repository-cache in setup-bazel by @p0deje in #89
  • chore(deps): update dependency aspect_bazel_lib to v2.5.1 by @renovate in #90
  • feat: allow customizing $PATH during rb_bundle_fetch by @sushain97 in #91
  • feat: support using $(location) in env attribute by @p0deje in #87

New Contributors

Full Changelog: v0.6.0...v0.7.0

v0.6.0

23 Jan 01:48
Compare
Choose a tag to compare

Using Bzlmod with Bazel 7

  1. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.6.0")

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.6.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "bfb4ae35ec8d3ffb864bd6a4e4bd4b2914ac52478f9636d5218801f2c0303df1",
    strip_prefix = "rules_ruby-0.6.0",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.6.0/rules_ruby-v0.6.0.tar.gz",
)

What's Changed

  • chore(deps): update dependency bazel to v7.0.1 by @renovate in #67
  • chore(deps): update p0deje/setup-bazel action to v0.4.0 by @renovate in #68
  • chore(deps): update dependency io_bazel_rules_go to v0.45.1 by @renovate in #69
  • feat: expose toolchain and bundled binaries by @p0deje in #70

Full Changelog: v0.5.0...v0.6.0

v0.5.0

17 Jan 22:14
Compare
Choose a tag to compare

Using Bzlmod with Bazel 7

  1. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.5.0")

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.5.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "9bfab76e1272dae72355c65cc858ede68b659716381485baa4c8e7a70ddc38a6",
    strip_prefix = "rules_ruby-0.5.0",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.5.0/rules_ruby-v0.5.0.tar.gz",
)

What's Changed

  • refactor: change naming of external repository by @alexeagle in #42
  • chore(deps): update dependency aspect_bazel_lib to v2.0.2 by @renovate in #46
  • chore(deps): update dependency aspect_bazel_lib to v2.0.3 by @renovate in #47
  • chore(deps): update dependency buildifier_prebuilt to v6.4.0 by @renovate in #50
  • chore(deps): update dependency io_bazel_rules_go to v0.44.0 by @renovate in #52
  • chore(deps): update dependency bazel_gazelle to v0.35.0 by @renovate in #53
  • chore(deps): update dependency aspect_bazel_lib to v2.1.0 by @renovate in #54
  • chore(deps): update dependency io_bazel_rules_go to v0.44.1 by @renovate in #56
  • chore(deps): update dependency io_bazel_rules_go to v0.44.2 by @renovate in #57
  • chore: upgrade to Bazel 7 by @p0deje in #58
  • feat: update Ruby to 3.3 by @p0deje in #55
  • chore(deps): update dependency aspect_bazel_lib to v2.2.0 by @renovate in #59
  • chore(deps): update dependency aspect_bazel_lib to v2.3.0 by @renovate in #60
  • chore(deps): update dependency io_bazel_rules_go to v0.45.0 by @renovate in #61
  • feat: introduce rb_bundle_fetch() repository rule by @p0deje in #48
  • fix: correct bundler version check by @p0deje in #66
  • feat: support RBE by @p0deje in #65

Full Changelog: v0.4.1...v0.5.0

v0.4.1

04 Dec 00:15
f422d8a
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.4.1")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "e3495d0129222572654cc5dd5c72c6c997513d65fb8649f43a860ab15334a1c2",
    strip_prefix = "rules_ruby-0.4.1",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.4.1/rules_ruby-v0.4.1.tar.gz",
)

What's Changed

  • ci: use JRuby as a default toolchain by @p0deje in #43

Full Changelog: v0.4.0...v0.4.1

v0.4.0

02 Dec 00:58
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.4.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "946b268648ea9ad912a93219f2d0b4f89bd6135cf3a9d81c778337b1ce9492c6",
    strip_prefix = "rules_ruby-0.4.0",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.4.0/rules_ruby-v0.4.0.tar.gz",
)

What's Changed

  • docs: add getting started to README by @p0deje in #40
  • feat: allow to read version from .ruby-version file by @p0deje in #39

Full Changelog: v0.3.0...v0.4.0

v0.3.0

30 Nov 19:49
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.3.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "56819f7aa06074b2f10f288c321d3c611b5af2197cad2701e0b3f3637926152c",
    strip_prefix = "rules_ruby-0.3.0",
    url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.3.0/rules_ruby-v0.3.0.tar.gz",
)

What's Changed

  • chore: Configure Renovate by @renovate in #29
  • chore(deps): update p0deje/setup-bazel action to v0.3.2 by @renovate in #31
  • chore(deps): update dependency bazel_gazelle to v0.34.0 by @renovate in #37
  • chore(deps): update dependency io_bazel_rules_go to v0.43.0 by @renovate in #35
  • chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.5.0 by @renovate in #34
  • Support registering system Ruby by @p0deje in #28
  • feat: improve runfiles handling by @p0deje in #38

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

24 Nov 18:54
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.2.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "92055f29f94963cd3cf7be1da15503c3306879e2e8545b2b5f9e5bb37d6713d3",
    strip_prefix = "rules_ruby-0.2.0",
    url = "https://github.com/p0deje/rules_ruby/releases/download/v0.2.0/rules_ruby-v0.2.0.tar.gz",
)

Full Changelog: v0.1.2...v0.2.0

v0.1.2

24 Nov 02:29
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_ruby", version = "0.1.2")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Skylib is a dependency, remove if you already have it.
http_archive(
    name = "bazel_skylib",
    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    ],
)

http_archive(
    name = "rules_ruby",
    sha256 = "a6ee69bc0886b2b6752eb183c997924c2d2eadf22fbe6fba221e7fb9096735da",
    strip_prefix = "rules_ruby-0.1.2",
    url = "https://github.com/p0deje/rules_ruby/releases/download/v0.1.2/rules_ruby-v0.1.2.tar.gz",
)

What's Changed

  • chore: include examples in release artifact by @alexeagle in #25

Full Changelog: v0.1.0...v0.1.2