Skip to content

Commit

Permalink
Modify the Gemfile for testing with mime-types 3
Browse files Browse the repository at this point in the history
-   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.
  • Loading branch information
halostatue committed Jan 13, 2016
1 parent 06d5efc commit f0bd25a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
appraise "4.2.awsv2.1" do
gem "rails", "~> 4.2.0"
gem "aws-sdk", "~> 2.1.0"

group :development, :test do
gem 'mime-types', '>= 1.16', '< 4'
end
end

appraise "4.2.awsv2.0" do
gem "rails", "~> 4.2.0"
gem "aws-sdk", "~> 2.0.0"

group :development, :test do
gem 'mime-types', '>= 1.16', '< 4'
end
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion gemfiles/4.2.awsv2.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "aws-sdk", "~> 2.0.0"

group :development, :test do
gem "activerecord-import"
gem "mime-types", "~> 1.16"
gem "mime-types", ">= 1.16", "< 4"
gem "builder"
gem "rubocop", :require => false
end
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/4.2.awsv2.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "aws-sdk", "~> 2.1.0"

group :development, :test do
gem "activerecord-import"
gem "mime-types", "~> 1.16"
gem "mime-types", ">= 1.16", "< 4"
gem "builder"
gem "rubocop", :require => false
end
Expand Down

0 comments on commit f0bd25a

Please sign in to comment.