Skip to content

Commit 5adc963

Browse files
committed
Avoid rubygems loading issue with Bundler 2.1.0
This is a temporary fix. Change needs to be done on rspec-dev On Bundler 2.1.0 the loading of rubygems has been rewritten. It breaks our existing usage of command execution. The --disable=gem flag is problematic because we need to load rubygems in Bundler, because it is not explicitly loaded. Related: - rubygems/bundler#7487
1 parent a5e0e26 commit 5adc963

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

script/functions.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
1111
SPECS_HAVE_RUN_FILE=specs.out
1212
MAINTENANCE_BRANCH=`cat maintenance-branch`
1313

14-
# Don't allow rubygems to pollute what's loaded. Also, things boot faster
15-
# without the extra load time of rubygems. Only works on MRI Ruby 1.9+
16-
if is_mri_192_plus; then
17-
export RUBYOPT="--disable=gem"
18-
fi
19-
2014
function clone_repo {
2115
if [ ! -d $1 ]; then # don't clone if the dir is already there
2216
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH"

0 commit comments

Comments
 (0)