Skip to content

Commit

Permalink
Support ruby 3 (#103)
Browse files Browse the repository at this point in the history
* Fix entries of the Ruby supported_versions list

* Upgrade ruby-build

Co-authored-by: Konstantin Gredeskoul <[email protected]>
  • Loading branch information
mmizutani and kigster authored Jul 7, 2021
1 parent e91cd14 commit 239d5f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions ruby/private/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ def rules_ruby_select_sdk(version = "host"):
"2.6.4",
"2.6.5",
"2.6.6",
"2.6.7",
"2.7.1",
"2.7.1",
"2.8.0",
"2.7.2",
"3.0.0",
"3.0.1",
]

if version in supported_versions:
Expand Down
6 changes: 3 additions & 3 deletions ruby/private/toolchains/ruby_runtime.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ load("//ruby/private/toolchains:repository_context.bzl", "ruby_repository_contex

def _install_ruby_version(ctx, version):
ctx.download_and_extract(
url = "https://github.com/rbenv/ruby-build/archive/v20200727.tar.gz",
sha256 = "71679d49d9190250059eaa0bc0bedd080c00a523ec47662f559f7629f71772ea",
stripPrefix = "ruby-build-20200727",
url = "https://github.com/rbenv/ruby-build/archive/v20210611.tar.gz",
sha256 = "dba3fd6722c007773ccef2c01cca454152d834f962754a85ae2c746b338f5772",
stripPrefix = "ruby-build-20210611",
)

install_path = "./build"
Expand Down

0 comments on commit 239d5f0

Please sign in to comment.