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 f0bee2c commit 3c935b6Copy full SHA for 3c935b6
script/downgrade_bundler_on_old_rails
@@ -9,14 +9,19 @@ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
9
# On Rails versions less than 5, Bundler 2.0 is not supported
10
echo "Warning dowgrading to older version of Bundler"
11
12
+ echo "debug"
13
set +e
14
+ echo "attempt 1"
15
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
16
set -e
17
18
# this only works on Ruby 2.3 which is luckily the version we need to fix
19
+ echo "check ruby"
20
if is_ruby_23_plus; then
21
+ echo "attempt 2"
22
rvm @global do gem uninstall -aIx bundler
- fi
23
+ fio
24
+ echo "ok..."
25
26
gem install bundler -v '1.17.3'
27
fi
0 commit comments