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 'rspec-core', '3.1.7', :require => false
15 gem 'rspec-puppet', '~> 2.0', :require => false
16 gem 'puppetlabs_spec_helper', :require => false
17 gem 'simplecov', :require => false
18 gem 'puppet_facts', :require => false
19 gem 'json', :require => false
23 group :system_tests do
24 if beaker_version = ENV['BEAKER_VERSION']
25 gem 'beaker', *location_for(beaker_version)
27 if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
28 gem 'beaker-rspec', *location_for(beaker_rspec_version)
30 gem 'beaker-rspec', :require => false
32 gem 'serverspec', :require => false
37 if facterversion = ENV['FACTER_GEM_VERSION']
38 gem 'facter', facterversion, :require => false
40 gem 'facter', :require => false
43 if puppetversion = ENV['PUPPET_GEM_VERSION']
44 gem 'puppet', puppetversion, :require => false
46 gem 'puppet', :require => false