1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Fix build issue with json gem

The new `json` gem requires Ruby >= 2.0
This locks down the version of json to address a recent break in
our builds caused by this issue.
This commit is contained in:
Gerard Caulfield 2016-07-04 18:48:18 +10:00
parent 49fc390079
commit 77f65e95de
No known key found for this signature in database
GPG key ID: 623B327128A9BEC3
3 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ end
appraise 'rails-4.0' do
gem 'rails', '~> 4.0.0'
gem 'json', '~> 1.8', :platforms => :ruby_19 # Json 2.0 requires Ruby >= 2.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
@ -37,6 +38,7 @@ end
appraise 'mongoid-3.1' do
gem 'mongoid', '~> 3.1.0'
gem 'json', '~> 1.8', :platforms => :ruby_19 # Json 2.0 requires Ruby >= 2.0
end
appraise 'mongoid-4.0' do

View file

@ -3,5 +3,6 @@
source "https://rubygems.org"
gem "mongoid", "~> 3.1.0"
gem "json", "~> 1.8", :platforms => :ruby_19
gemspec :path => "../"

View file

@ -3,6 +3,7 @@
source "https://rubygems.org"
gem "rails", "~> 4.0.0"
gem "json", "~> 1.8", :platforms => :ruby_19
gem "mime-types", "2.6.2", :platforms => :ruby_19
gemspec :path => "../"