Skip to content

Commit

Permalink
gem(native): darwin gem supports ruby 3.0
Browse files Browse the repository at this point in the history
Related to #2123
  • Loading branch information
flavorjones committed Dec 3, 2020
1 parent 342ed1c commit 37122f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cross_rubies
@@ -1,3 +1,4 @@
3.0.0-preview1:x86_64-darwin
2.7.0:i686-w64-mingw32
2.7.0:x86_64-w64-mingw32
2.7.0:i686-linux-gnu
Expand Down
4 changes: 4 additions & 0 deletions scripts/setup-osx-native-builders
Expand Up @@ -32,6 +32,10 @@ for ruby in $RUBIES ; do
ruby_fullname="native-builder-${ruby}"
ruby_minor="${ruby}.0"

if [[ $ruby == "3.0" ]] ; then
ruby="3.0.0-preview1"
fi

rbconfig=$(echo ${RUBIES_DIR}/${ruby_fullname}/lib/ruby/${ruby_minor}/*/rbconfig.rb)
if [[ ! -e $rbconfig ]] ; then
echo "installing $ruby_fullname ..."
Expand Down

0 comments on commit 37122f7

Please sign in to comment.