Skip to content

Commit 5e3eda5

Browse files
committed
1 parent 8b46bd2 commit 5e3eda5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

script/predicate_functions.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ function is_ruby_23_plus {
6565
fi
6666
}
6767

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+
6876
function rspec_rails_compatible {
6977
if is_ruby_23_plus; then
7078
return 0

script/update_rubygems_and_install_bundler

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
set -e
66
source 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'
1115
else
1216
echo "Warning installing older versions of Rubygems / Bundler"
1317
gem update --system '2.7.10'

0 commit comments

Comments
 (0)