summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2015-05-06 14:31:22 -0700
committerMorgan Haskel <morgan@puppetlabs.com>2015-05-06 14:31:22 -0700
commitcf3d3b6f90635fd91173a0f0bd99837f511a50ad (patch)
treea4b81c1ae92c8dcb1df926427f59ed4401f4ad7c
parent3b804b898506660701753bef664cfabd034904cb (diff)
downloadpuppet-vcsrepo-cf3d3b6f90635fd91173a0f0bd99837f511a50ad.tar.gz
puppet-vcsrepo-cf3d3b6f90635fd91173a0f0bd99837f511a50ad.tar.bz2
sync via modulesync
-rw-r--r--Gemfile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index cc77f38..fb7202c 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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