Skip to content

Commit

Permalink
Pin json dependency to ruby < 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Poinsaut committed Aug 5, 2016
1 parent 5f7b3da commit bd4b0b0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ group :system_tests do
gem 'serverspec', :require => false
end

# json_pure 2.0.2 requires ruby 2.0. Lock to 2.0.1 if ruby 1.x
gem 'json_pure', '<=2.0.1', :require => false if RUBY_VERSION =~ /^1\./

if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion, :require => false
else
gem 'facter', :require => false
end

if RUBY_VERSION < '2.0'
# json 2.x requires ruby 2.0.
gem 'json', '~> 1.0', :require => false
# json_pure 2.0.2 requires ruby 2.0. Lock to 2.0.1
gem 'json_pure', '= 2.0.1', :require => false
end

if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
Expand Down

0 comments on commit bd4b0b0

Please sign in to comment.