1 source ENV['GEM_SOURCE'] || 'https://rubygems.org'
3 def location_for(place, fake_version = nil)
4 if place =~ /^(git[:@][^#]*)#(.*)/
5 [fake_version, { :git => $1, :branch => $2, :require => false }].compact
6 elsif place =~ /^file:\/\/(.*)/
7 ['>= 0', { :path => File.expand_path($1), :require => false }]
9 [place, { :require => false }]
13 group :development, :unit_tests do
14 gem 'rake', '~> 10.1.0', :require => false
15 gem 'rspec', '~> 3.1.0', :require => false
16 gem 'rspec-puppet', :require => false
17 gem 'puppetlabs_spec_helper', :require => false
18 gem 'puppet-lint', :require => false
19 gem 'pry', :require => false
20 gem 'simplecov', :require => false
23 beaker_version = ENV['BEAKER_VERSION']
24 beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
25 group :system_tests do
27 gem 'beaker', *location_for(beaker_version)
29 if beaker_rspec_version
30 gem 'beaker-rspec', *location_for(beaker_rspec_version)
32 gem 'beaker-rspec', :require => false
34 gem 'serverspec', :require => false
37 facterversion = ENV['GEM_FACTER_VERSION'] || ENV['FACTER_GEM_VERSION']
39 gem 'facter', *location_for(facterversion)
41 gem 'facter', :require => false
44 puppetversion = ENV['GEM_PUPPET_VERSION'] || ENV['PUPPET_GEM_VERSION']
46 gem 'puppet', *location_for(puppetversion)
48 gem 'puppet', :require => false