Skip to content

Commit b7b71be

Browse files
committed
fixup! Bring back bundler/rubygems updates for Ruby 2.3+
1 parent cec4142 commit b7b71be

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

travis/script/predicate_functions.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ function is_mri_2plus {
5454
fi
5555
}
5656

57+
function is_ruby_23_plus {
58+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
59+
return 0
60+
else
61+
return 1
62+
fi
63+
}
64+
5765
function is_ruby_25_plus {
5866
if ruby -e "exit(RUBY_VERSION.to_f >= 2.5)"; then
5967
return 0

travis/script/update_rubygems_and_install_bundler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
source script/functions.sh
44

5-
if is_ruby_25_plus; then
5+
if is_ruby_23_plus; then
66
yes | gem update --system
77
yes | gem install bundler
88
else

0 commit comments

Comments
 (0)