Skip to content

v0.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Mar 03:25
· 154 commits to main since this release
  • 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