Skip to content

Commit c728135

Browse files
committed
Use specific rake version to fix Gem::InstallError
12.2.1 is the last version which supports ruby 1.9. ``` 1) Error: AcceptanceTest#test_binstub_upgrade_with_old_binstub: RuntimeError: command failed $ bundle check || bundle update --retry=2 --- stdout --- Bundler can't satisfy your Gemfile's dependencies. Install missing gems with `bundle install`. Fetching gem metadata from http://rubygems.org/............... Fetching gem metadata from http://rubygems.org/.. Resolving dependencies.... Fetching rake 12.3.1 Installing rake 12.3.1 Gem::InstallError: rake requires Ruby version >= 2.0.0. An error occurred while installing rake (12.3.1), and Bundler cannot continue. Make sure that `gem install rake -v '12.3.1' --source 'http://rubygems.org/'` succeeds before bundling. ``` https://travis-ci.org/mtsmfm/spring-debug/jobs/404541780
1 parent 495e361 commit c728135

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/spring/test/application_generator.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def install_spring
9797
append_to_file(application.gemfile, "gem 'nokogiri', '~> 1.6.8'")
9898
end
9999

100+
if RUBY_VERSION < "1.9"
101+
append_to_file(application.gemfile, "gem 'rake', '12.2.1'")
102+
end
103+
100104
application.bundle
101105

102106
FileUtils.rm_rf application.path("bin")

0 commit comments

Comments
 (0)