Skip to content

Commit

Permalink
sync via modulesync
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed May 6, 2015
1 parent 40cbb29 commit 16988df
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 16988df

Please sign in to comment.