Skip to content

Commit 34ef09f

Browse files
committed
Skip Spring
This happens in some circumstances: bundle exec rails new ./tmp/example_app --no-rc --skip-javascript --skip-bootsnap --skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb Gem::RuntimeRequirementNotMetError: spring requires Ruby version >= 2.4.0. The current ruby version is 2.3.0. An error occurred while installing spring (2.1.0), and Bundler cannot continue.
1 parent c0a8c22 commit 34ef09f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Rakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ namespace :generate do
6363
# Rails 4+ cannot use a `rails` binstub generated by Bundler
6464
sh "rm -f #{bindir}/rails"
6565
sh "bundle exec rails new ./tmp/example_app --no-rc --skip-javascript --skip-bootsnap --skip-sprockets " \
66-
"--skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
66+
"--skip-git --skip-test-unit --skip-listen --skip-bundle --skip-spring " \
67+
"--template=example_app_generator/generate_app.rb"
6768

6869
in_example_app do
6970
sh "./travis_retry_bundle_install.sh 2>&1"
@@ -189,7 +190,8 @@ namespace :no_active_record do
189190
# Rails 4+ cannot use a `rails` binstub generated by Bundler
190191
sh "rm -f #{bindir}/rails"
191192
sh "bundle exec rails new #{example_app_dir} --no-rc --skip-active-record --skip-javascript --skip-bootsnap " \
192-
"--skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb"
193+
"--skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --skip-spring " \
194+
"--template=example_app_generator/generate_app.rb"
193195

194196
in_example_app(app_dir: example_app_dir) do
195197
sh "./travis_retry_bundle_install.sh 2>&1"

0 commit comments

Comments
 (0)