Skip to content

Commit b282278

Browse files
committed
pin rack-cache on ruby < 2.0.0
1 parent 6bf2221 commit b282278

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ if RUBY_VERSION >= '1.9.3'
2424
gem 'capybara', '~> 2.2.0', :require => false
2525
end
2626

27+
# Rack::Cache 1.3.0 requires Ruby >= 2.0.0
28+
gem 'rack-cache', '< 1.3.0' if RUBY_VERSION < '2.0.0'
29+
2730
if RUBY_VERSION < '1.9.2'
2831
gem 'nokogiri', '~> 1.5.0'
2932
end

example_app_generator/generate_app.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
# Use our version of RSpec and Rails
1919
append_to_file 'Gemfile', <<-EOT.gsub(/^ +\|/, '')
20+
|# Rack::Cache 1.3.0 requires Ruby >= 2.0.0
21+
|gem 'rack-cache', '< 1.3.0' if RUBY_VERSION < '2.0.0'
22+
|
2023
|gem 'rspec-rails',
2124
| :path => '#{rspec_rails_repo_path}',
2225
| :groups => [:development, :test]

0 commit comments

Comments
 (0)