diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2015-05-06 14:31:22 -0700 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2015-05-06 14:31:22 -0700 |
commit | cf3d3b6f90635fd91173a0f0bd99837f511a50ad (patch) | |
tree | a4b81c1ae92c8dcb1df926427f59ed4401f4ad7c | |
parent | 3b804b898506660701753bef664cfabd034904cb (diff) | |
download | puppet-vcsrepo-cf3d3b6f90635fd91173a0f0bd99837f511a50ad.tar.gz puppet-vcsrepo-cf3d3b6f90635fd91173a0f0bd99837f511a50ad.tar.bz2 |
sync via modulesync
-rw-r--r-- | Gemfile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,5 +1,15 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org" +def location_for(place, fake_version = nil) + if place =~ /^(git:[^#]*)#(.*)/ + [fake_version, { :git => $1, :branch => $2, :require => false }].compact + elsif place =~ /^file:\/\/(.*)/ + ['>= 0', { :path => File.expand_path($1), :require => false }] + else + [place, { :require => false }] + end +end + group :development, :unit_tests do gem 'rspec-core', '3.1.7', :require => false gem 'puppetlabs_spec_helper', :require => false @@ -9,10 +19,16 @@ group :development, :unit_tests do end group :system_tests do - gem 'beaker-rspec', :require => false + if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION'] + gem 'beaker-rspec', *location_for(beaker_rspec_version) + else + gem 'beaker-rspec', :require => false + end gem 'serverspec', :require => false end + + if facterversion = ENV['FACTER_GEM_VERSION'] gem 'facter', facterversion, :require => false else |