Modify the Gemfile for testing with mime-types 3
- Also modify the appraisals to be more flexibly specified.
- The specs are '>= 1.16' and '< 4.0' because the major versions of
mime-types have steadily restricted the supported versions of Ruby at a
different rate than Rails. The Appraisal for Rails 5 can be specified as
either '>= 2.0, '< 4.0' or '~> 3.0' depending on how other gems restrict
mime-types versions.
- mime-types 1.x supports any version of Ruby, but no longer receives any
updates (it hit EOL on 27 October 2015).
- mime-types 2.x supports Ruby >= 1.9.2, but will only receive security
and data updates until 21 November 2017.
- mime-types 3.x supports Ruby >= 2.0 and is the active development
version of mime-types.
- The APIs that paperclip uses are compatible between all three versions of
mime-types.
Showing
| ... | ... | @@ -9,7 +9,7 @@ gem 'pry' |
| # Prevents bundler from taking a long-time to resolve | ||
| group :development, :test do | ||
| gem 'activerecord-import' | ||
| gem 'mime-types', '~> 1.16' | ||
| gem 'mime-types' | ||
| gem 'builder' | ||
| gem 'rubocop', require: false | ||
| end |
Please
register
or
sign in
to comment