]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Fix Gemfile to work with ruby 1.8.7
authorBryan Jen <bryan.jen@gmail.com>
Fri, 20 Nov 2015 19:14:30 +0000 (12:14 -0700)
committerBryan Jen <bryan.jen@gmail.com>
Fri, 20 Nov 2015 19:14:30 +0000 (12:14 -0700)
Gemfile

diff --git a/Gemfile b/Gemfile
index fbb9a25605096f5645a152d3d87741951f7ec00c..8221514c06b8f1fdeb8e5c819ba2972b8e36bea5 100644 (file)
--- 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