Skip to content

Commit

Permalink
Prevent rake installing incorrect version in app on different rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jun 21, 2018
1 parent 2aac389 commit aa93e58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example_app_generator/generate_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
|# Rack::Cache 1.3.0 requires Ruby >= 2.0.0
|gem 'rack-cache', '< 1.3.0' if RUBY_VERSION < '2.0.0'
|
|if RUBY_VERSION >= '1.9.3'
|if RUBY_VERSION >= '2.0.0'
| gem 'rake', '>= 10.0.0'
|elsif RUBY_VERSION >= '1.9.3'
| gem 'rake', '< 12.0.0' # rake 12 requires Ruby 2.0.0 or later
|else
| gem 'rake', '~> 10.0' # rake 11 requires Ruby 1.9.3 or later
| gem 'rake', '< 11.0.0' # rake 11 requires Ruby 1.9.3 or later
|end
|
|# Version 3 of mime-types 3 requires Ruby 2.0
Expand Down

0 comments on commit aa93e58

Please sign in to comment.