File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,12 @@ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
9
9
# On Rails versions less than 5, Bundler 2.0 is not supported
10
10
echo " Warning dowgrading to older version of Bundler"
11
11
12
- # Delete all bundler version because we do not support Bundler 2+ below Rails 4
13
- rvm @global do gem uninstall -aIx bundler || echo " Warning error occured removing bundler via rvm"
12
+ gem uninstall -aIx bundler || echo " Warning error occured removing bundler via gem"
13
+
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
18
15
19
gem install bundler -v ' 1.17.3'
16
20
fi
You can’t perform that action at this time.
0 commit comments