File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ function is_ruby_23_plus {
65
65
fi
66
66
}
67
67
68
+ function is_ruby_26_plus {
69
+ if ruby -e " exit(RUBY_VERSION.to_f >= 2.6)" ; then
70
+ return 0
71
+ else
72
+ return 1
73
+ fi
74
+ }
75
+
68
76
function rspec_rails_compatible {
69
77
if is_ruby_23_plus; then
70
78
return 0
Original file line number Diff line number Diff line change 5
5
set -e
6
6
source script/functions.sh
7
7
8
- if is_ruby_23_plus ; then
8
+ if is_ruby_26_plus ; then
9
9
gem update --no-document --system
10
10
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'
11
15
else
12
16
echo " Warning installing older versions of Rubygems / Bundler"
13
17
gem update --system ' 2.7.10'
You can’t perform that action at this time.
0 commit comments