summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2015-11-20 12:44:27 -0800
committerHunter Haugen <hunter@puppetlabs.com>2015-11-20 12:44:27 -0800
commitef0c13b1afdd5fd339083015d387d669acd67066 (patch)
tree657bac1aaba9ae858ff58deb3edcef87349deff4
parent0d2020001d9c3cad8730e8cb1d585aefdad766a1 (diff)
parentc43924682a9078d90eafcac87f1fbf3f2c34b382 (diff)
downloadpuppet-stdlib-ef0c13b1afdd5fd339083015d387d669acd67066.tar.gz
puppet-stdlib-ef0c13b1afdd5fd339083015d387d669acd67066.tar.bz2
Merge pull request #548 from bmjen/ruby187
Fix Gemfile to work with ruby 1.8.7
-rw-r--r--Gemfile8
1 files changed, 7 insertions, 1 deletions
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