From c43924682a9078d90eafcac87f1fbf3f2c34b382 Mon Sep 17 00:00:00 2001 From: Bryan Jen Date: Fri, 20 Nov 2015 12:14:30 -0700 Subject: Fix Gemfile to work with ruby 1.8.7 --- Gemfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index fbb9a25..8221514 100644 --- a/Gemfile +++ b/Gemfile @@ -11,8 +11,14 @@ def location_for(place, fake_version = nil) end group :development, :unit_tests do + # rspec must be v2 for ruby 1.8.7 + if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9' + gem 'rspec', '~> 2.0' + else + gem 'rspec', '~> 3.1.0', :require => false + end + gem 'rake', '~> 10.1.0', :require => false - gem 'rspec', '~> 3.1.0', :require => false gem 'rspec-puppet', '~> 2.2', :require => false gem 'mocha', :require => false # keep for its rake task for now -- cgit v1.2.3