File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ function is_ruby_31_plus {
6+ if ruby -e " exit(RUBY_VERSION.to_f >= 3.1)" ; then
7+ return 0
8+ else
9+ return 1
10+ fi
11+ }
12+
513function is_ruby_23_plus {
614 if ruby -e " exit(RUBY_VERSION.to_f >= 2.3)" ; then
715 return 0
@@ -10,9 +18,14 @@ function is_ruby_23_plus {
1018 fi
1119}
1220
13- if is_ruby_23_plus; then
14- gem update --system
15- gem install bundler
21+ if is_ruby_31_plus; then
22+ echo " Installing rubygems 3.3.6 / bundler 2.3.6"
23+ yes | gem update --system ' 3.3.6'
24+ yes | gem install bundler -v ' 2.3.6'
25+ elif is_ruby_23_plus; then
26+ echo " Installing rubygems 3.2.22 / bundler 2.2.22"
27+ yes | gem update --system ' 3.2.22'
28+ yes | gem install bundler -v ' 2.2.22'
1629else
1730 echo " Warning installing older versions of Rubygems / Bundler"
1831 gem update --system ' 2.7.8'
You can’t perform that action at this time.
0 commit comments