From 22114c580c48d9d5a22c6fa5feb15fb4b1b2a2a4 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Tue, 12 Apr 2016 10:37:15 -0400 Subject: [PATCH] Fix support for Ruby 1.8.7 --- Gemfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index ee04692b..9161e3cc 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,6 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org" group :development, :test do gem 'metadata-json-lint', :require => false - gem 'rake', :require => false gem 'rspec-puppet', :require => false gem 'puppetlabs_spec_helper', :require => false gem 'puppet-lint', :require => false @@ -10,9 +9,12 @@ group :development, :test do gem 'simplecov', :require => false end -# rspec must be v2 for ruby 1.8.7 +# pin old versions for ruby 1.8.7 if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9' gem 'rspec', '~> 2.0' + gem 'rake', '~> 10.0' +else + gem 'rake', :require => false end if facterversion = ENV['FACTER_GEM_VERSION']