Skip to content

Commit 3f380ca

Browse files
committed
Unset RUBYOPT instead of re-enabling rubygems.
The old code does not work on Ruby 2.5.
1 parent d47872d commit 3f380ca

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

travis/script/functions.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ function run_spec_suite_for {
8080
pushd ../$1
8181
unset BUNDLE_GEMFILE
8282
bundle_install_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`
83-
if is_mri_192_plus; then
84-
travis_retry eval "RUBYOPT=$RUBYOPT:'--enable rubygems' bundle install $bundle_install_flags"
85-
else
86-
travis_retry eval "bundle install $bundle_install_flags"
87-
fi
83+
travis_retry eval "(unset RUBYOPT; exec bundle install $bundle_install_flags)"
8884
run_specs_and_record_done
8985
popd
9086
else

0 commit comments

Comments
 (0)