Skip to content

Commit

Permalink
attempt to fix deps for ruby 1.8 and 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomulik committed Oct 31, 2017
1 parent 8927051 commit a51183a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ group :development, :test do
gem 'rspec', '~> 2.0' if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
if RUBY_VERSION >= '1.9'
gem 'rake'
gem 'puppetlabs_spec_helper', :require => false
else
gem 'rake', '< 10.0'
gem 'highline', '< 1.7'
gem 'puppetlabs_spec_helper', '< 2.0.0', :require => false
end
if RUBY_VERSION >= '1.9' && RUBY_VERSION < '2.0'
gem 'tins', '< 1.7.0'
gem 'term-ansicolor', '< 1.4.0'
end
gem 'json_pure', '< 2.0.0' if RUBY_VERSION < '2.0'
gem 'rspec-puppet'
gem 'puppetlabs_spec_helper', :require => false
gem 'coveralls', :require => false if RUBY_VERSION >= '1.9'
gem 'rubocop', :require => false if RUBY_VERSION >= '2.2.0'
end
Expand All @@ -45,7 +46,14 @@ group :acceptance do
gem 'specinfra', '>= 2.63.1', :require => false if RUBY_VERSION >= '1.9'
end

gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
if RUBY_VERSION >= '2.0'
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
elsif RUBY_VERSION >= '1.9'
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'] || '~>4.4.0')
else
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'] || '~>3.8.0')
end

gem 'facter', *location_for(ENV['FACTER_GEM_VERSION'])

# vim:ft=ruby

0 comments on commit a51183a

Please sign in to comment.