We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3ca3f commit cc39b7dCopy full SHA for cc39b7d
script/update_rubygems_and_install_bundler
@@ -6,8 +6,14 @@ set -e
6
source script/functions.sh
7
8
if is_ruby_23_plus; then
9
- yes | gem update --system
10
- yes | gem install bundler
+ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f >= 5)"; then
+ yes | gem update --system
11
+ yes | gem install bundler
12
+ else
13
+ echo "Warning installing older versions of Rubygems / Bundler"
14
+ gem update --system '2.7.8'
15
+ gem install bundler -v '1.17.3'
16
+ fi
17
else
18
echo "Warning installing older versions of Rubygems / Bundler"
19
gem update --system '2.7.8'
0 commit comments