Skip to content

Commit f285e69

Browse files
committed
Fix RUBYOPT usages
There's a warning regarding an unknown argument to `--disable`, and it seems that `--disable=gem` is not entirely correct, should be `--disable=gems` [Documentation](https://docs.ruby-lang.org/ja/latest/doc/spec=2frubycmd.html) (in Japanese). Example output: ruby: warning: unknown argument for --disable: `gem:' ruby: warning: features are [gems, did_you_mean, rubyopt, frozen_string_literal]. ruby: warning: unknown argument for --enable: `rubygems' ruby: warning: features are [gems, did_you_mean, rubyopt, frozen_string_literal].
1 parent 7d68eb2 commit f285e69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example_app_generator/travis_retry_bundle_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source FUNCTIONS_SCRIPT_FILE
55

66
echo "Starting bundle install using shared bundle path"
77
if is_mri_192_plus; then
8-
travis_retry eval "RUBYOPT=$RUBYOPT:' --enable rubygems' bundle install --gemfile ./Gemfile --path REPLACE_BUNDLE_PATH --retry=3 --jobs=3"
8+
travis_retry eval "RUBYOPT=$RUBYOPT' --enable gems' bundle install --gemfile ./Gemfile --path REPLACE_BUNDLE_PATH --retry=3 --jobs=3"
99
else
1010
travis_retry eval "bundle install --gemfile ./Gemfile --path REPLACE_BUNDLE_PATH --retry=3 --jobs=3"
1111
fi

script/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MAINTENANCE_BRANCH=`cat maintenance-branch`
1414
# Don't allow rubygems to pollute what's loaded. Also, things boot faster
1515
# without the extra load time of rubygems. Only works on MRI Ruby 1.9+
1616
if is_mri_192_plus; then
17-
export RUBYOPT="--disable=gem"
17+
export RUBYOPT="--disable=gems"
1818
fi
1919

2020
function clone_repo {

0 commit comments

Comments
 (0)