From 343e8e0e38783935e07c484c428abcc381c96e99 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 3 Dec 2020 01:27:43 -0500 Subject: [PATCH] gem(native): darwin gem supports ruby 3.0 Related to #2123 --- .cross_rubies | 1 + scripts/setup-osx-native-builders | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.cross_rubies b/.cross_rubies index f9828f42a8..37cae1d6b9 100644 --- a/.cross_rubies +++ b/.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 diff --git a/scripts/setup-osx-native-builders b/scripts/setup-osx-native-builders index 9dc8e3c822..3f9b237017 100755 --- a/scripts/setup-osx-native-builders +++ b/scripts/setup-osx-native-builders @@ -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 ..."