Skip to content

Commit 9b56320

Browse files
committed
Downgrade bundler on any old rails version
1 parent 7f5dd6d commit 9b56320

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

script/downgrade_bundler_on_old_rails

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
1111

1212
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
1313

14-
# this only works on Ruby 2.3 which is luckily the version we need to fix
15-
if is_ruby_23; then
16-
rvm @global do gem uninstall -aIx bundler || echo "Warning error occured removing bundler via rvm"
17-
fi
14+
rvm @global do gem uninstall -aIx bundler || echo "Warning error occured removing bundler via rvm"
1815

1916
gem install bundler -v '1.17.3'
2017
fi

0 commit comments

Comments
 (0)