Skip to content

Commit 7bc5230

Browse files
committed
Restrict mime-types version for older rubies
1 parent 682a120 commit 7bc5230

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ else
2525
gem 'rake', '~> 10.0' # rake 11 requires Ruby 1.9.3 or later
2626
end
2727

28+
# Version 3 of mime-types 3 requires Ruby 2.0
29+
if RUBY_VERSION < '2.0.0'
30+
gem 'mime-types', '< 3'
31+
end
32+
2833
# Capybara versions that support RSpec 3 only support RUBY_VERSION >= 1.9.3
2934
if RUBY_VERSION >= '1.9.3'
3035
gem 'capybara', '~> 2.2.0', :require => false

example_app_generator/generate_app.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
| gem 'rake', '~> 10.0' # rake 11 requires Ruby 1.9.3 or later
3939
|end
4040
|
41+
|# Version 3 of mime-types 3 requires Ruby 2.0
42+
|if RUBY_VERSION < '2.0.0'
43+
| gem 'mime-types', '< 3'
44+
|end
45+
|
4146
|gem 'rspec-rails',
4247
| :path => '#{rspec_rails_repo_path}',
4348
| :groups => [:development, :test]

0 commit comments

Comments
 (0)