2014-06-26 02:23:12 +02:00
|
|
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
2013-02-03 01:55:21 +01:00
|
|
|
|
2015-03-24 19:40:24 +01:00
|
|
|
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
|
|
|
|
|
2014-12-08 19:23:17 +01:00
|
|
|
group :development, :unit_tests do
|
2015-05-07 18:48:33 +02:00
|
|
|
gem 'rspec-puppet', '~> 2.1', :require => false
|
2013-02-03 01:55:21 +01:00
|
|
|
end
|
|
|
|
|
2015-05-07 00:15:21 +02:00
|
|
|
|
|
|
|
|
2014-06-30 19:57:45 +02:00
|
|
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
|
|
|
gem 'facter', facterversion, :require => false
|
|
|
|
else
|
|
|
|
gem 'facter', :require => false
|
|
|
|
end
|
|
|
|
|
2013-02-03 01:55:21 +01:00
|
|
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
|
|
gem 'puppet', puppetversion, :require => false
|
|
|
|
else
|
|
|
|
gem 'puppet', :require => false
|
|
|
|
end
|
2014-06-26 02:23:12 +02:00
|
|
|
|
|
|
|
# vim:ft=ruby
|