Skip to content

Commit

Permalink
Merge pull request #40 from richardc/json_pure_bitrot
Browse files Browse the repository at this point in the history
Pin gems to support the older versions of ruby in the matrix
  • Loading branch information
richardc authored Nov 17, 2016
2 parents 10f6dde + 573f365 commit 93b88b7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
source 'https://rubygems.org'

group :development, :test do
gem 'rake'
if RUBY_VERSION =~ /^1.8\./
# Rake 11.0 removes support for ruby 1.8; pin to previous version.
gem 'rake', '~> 10.4.2'
else
gem 'rake'
end
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint'
end
Expand All @@ -15,6 +20,12 @@ group :development do
gem 'rspec-system-puppet', '~>2.0'
end

# json/json_pure are transitive dependences of puppet.
# They dropped support for ruby 1.8 and 1.9 in their 2.0 releases
# https://github.com/flori/json/blob/master/CHANGES.md#2015-09-11-200
gem 'json', '~> 1.8.0', :platform => [:ruby_18, :ruby_19]
gem 'json_pure', '~> 1.8.0', :platform => [:ruby_18, :ruby_19]

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

0 comments on commit 93b88b7

Please sign in to comment.