File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 3333 matrix :
3434 include :
3535 # Edge Rails (7.1) builds >= 2.7
36+ - ruby : 3.2
37+ allow_failure : true
38+ env :
39+ RAILS_VERSION : ' main'
3640 - ruby : 3.1
3741 allow_failure : true
3842 env :
4751 RAILS_VERSION : ' main'
4852
4953 # Rails 7.0 builds >= 2.7
54+ - ruby : 3.2
55+ env :
56+ RAILS_VERSION : ' ~> 7.0.0'
5057 - ruby : 3.1
5158 env :
5259 RAILS_VERSION : ' ~> 7.0.0'
Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ function is_mri_2plus {
5757 fi
5858}
5959
60+ function is_ruby_26_plus {
61+ if ruby -e " exit(RUBY_VERSION.to_f >= 2.6)" ; then
62+ return 0
63+ else
64+ return 1
65+ fi
66+ }
67+
6068function is_ruby_23_plus {
6169 if ruby -e " exit(RUBY_VERSION.to_f >= 2.3)" ; then
6270 return 0
Original file line number Diff line number Diff line change 55set -e
66source script/functions.sh
77
8- if is_ruby_23_plus ; then
8+ if is_ruby_26_plus ; then
99 gem update --no-document --system
1010 gem install --no-document bundler
11+ elif is_ruby_23_plus; then
12+ echo " Warning installing older versions of Rubygems / Bundler"
13+ gem update --system ' 3.3.26'
14+ gem install bundler -v ' 2.3.26'
1115else
1216 echo " Warning installing older versions of Rubygems / Bundler"
1317 gem update --system ' 2.7.10'
You can’t perform that action at this time.
0 commit comments