mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
0e3411611b
Before this fix some of our Travis builds failed with: Gem::InstallError: mime-types-data requires Ruby version >= 2.0. Idea for the fix was found here: https://github.com/sgruhier/foundation_rails_helper/pull/116 Although we could not use the same method as I only want to lock down the version of mime-type where necessary. Also trying to lock the version to 2.6.2 would break our Rails-3.2 Appraisal path.
52 lines
1.2 KiB
Ruby
52 lines
1.2 KiB
Ruby
appraise 'rails-3.2' do
|
|
gem 'rails', '~> 3.2.0'
|
|
end
|
|
|
|
appraise 'rails-4.0' do
|
|
gem 'rails', '~> 4.0.0'
|
|
|
|
# The last version that doesn't need Ruby 2.0 and works with version 4.0 of
|
|
# Rails. This addresses a build problem with Travis for version 1.9.3 of Ruby
|
|
gem 'mime-types', '2.6.2', :platforms => :ruby_19
|
|
end
|
|
|
|
appraise 'rails-4.1' do
|
|
gem 'rails', '~> 4.1.0'
|
|
|
|
# The last version that doesn't need Ruby 2.0 and works with version 4.1 of
|
|
# Rails. This addresses a build problem with Travis for version 1.9.3 of Ruby
|
|
gem 'mime-types', '2.6.2', :platforms => :ruby_19
|
|
end
|
|
|
|
appraise 'rails-4.2' do
|
|
gem 'rails', '~> 4.2.0'
|
|
|
|
# The last version that doesn't need Ruby 2.0 and works with version 4.2 of
|
|
# Rails. This addresses a build problem with Travis for version 1.9.3 of Ruby
|
|
gem 'mime-types', '2.6.2', :platforms => :ruby_19
|
|
end
|
|
|
|
appraise 'mongoid-3.0' do
|
|
gem 'mongoid', '~> 3.0.0'
|
|
end
|
|
|
|
appraise 'mongoid-3.1' do
|
|
gem 'mongoid', '~> 3.1.0'
|
|
end
|
|
|
|
appraise 'mongoid-4.0' do
|
|
gem 'mongoid', '~> 4.0.0'
|
|
end
|
|
|
|
appraise 'mongo_mapper' do
|
|
gem 'mongo_mapper'
|
|
end
|
|
|
|
appraise 'ripple' do
|
|
gem 'tzinfo'
|
|
gem 'ripple'
|
|
end
|
|
|
|
appraise 'nobrainer' do
|
|
gem 'nobrainer'
|
|
end
|