Skip to content

Commit 62749f3

Browse files
committed
Stick bundler version to avoid Travis build issue and uninitialized cst
Avoir error: uninitialized constant Bundler::RubygemsIntegration::Gem
1 parent a5e0e26 commit 62749f3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

script/update_rubygems_and_install_bundler

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@ set -e
66
source script/functions.sh
77

88
if is_ruby_23_plus; then
9-
gem update --system
10-
gem install bundler
9+
yes | gem update --system
10+
# Avoid Bundler error with 2.1.0
11+
echo "Warning dowgrading to older version of Bundler"
12+
echo "Current bundler versions installed: `gem list | grep '^bundler ('`"
13+
14+
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
15+
16+
rvm @global do gem uninstall -aIx bundler || echo "Warning error occured removing bundler via rvm"
17+
18+
echo "Bundler version list after uninstall: `gem list | grep '^bundler ('`"
19+
20+
gem install bundler -v '2.0.2'
1121
else
1222
echo "Warning installing older versions of Rubygems / Bundler"
1323
gem update --system '2.7.8'

0 commit comments

Comments
 (0)