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 'puppetlabs_spec_helper', :require => false
16 gem 'simplecov', :require => false
17 gem 'puppet_facts', :require => false
18 gem 'json', :require => false
21 group :system_tests do
22 if beaker_version = ENV['BEAKER_VERSION']
23 gem 'beaker', *location_for(beaker_version)
25 if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
26 gem 'beaker-rspec', *location_for(beaker_rspec_version)
28 gem 'beaker-rspec', :require => false
30 gem 'serverspec', :require => false
35 if facterversion = ENV['FACTER_GEM_VERSION']
36 gem 'facter', facterversion, :require => false
38 gem 'facter', :require => false
41 if puppetversion = ENV['PUPPET_GEM_VERSION']
42 gem 'puppet', puppetversion, :require => false
44 gem 'puppet', :require => false