Skip to content

Commit e367a85

Browse files
committed
Force uninstalling bundler 2.0 on Rails below 5
1 parent 4ca55c7 commit e367a85

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

script/downgrade_bundler_on_old_rails

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ 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
17-
fi
14+
# Delete all bundler version because we do not support Bundler 2+ below Rails 4
15+
rvm @global do gem uninstall -aIx bundler
1816

1917
gem install bundler -v '1.17.3'
2018
fi

0 commit comments

Comments
 (0)