diff options
author | varac <varacanero@zeromail.org> | 2015-12-07 14:31:42 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-12-07 14:31:42 +0100 |
commit | e12c5bfd6c9ff5d1dc5e14c227e8c15388ecb042 (patch) | |
tree | cbc48ac53a991425eb2cdd14f725516a00324de5 /Gemfile | |
parent | b6cb0285053a0ffd23082d7e63a87108ca0e3fbd (diff) | |
parent | a70c52c1d4f399c22fa6c71289031350a1da44b5 (diff) |
Merge remote-tracking branch 'shared/master' into leap_master
Diffstat (limited to 'Gemfile')
-rw-r--r-- | Gemfile | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +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 :test do + gem "rake" + gem "rspec", '< 3.2.0' + gem "rspec-puppet" + gem "puppetlabs_spec_helper" + gem "metadata-json-lint" + gem "rspec-puppet-facts" + gem "mocha" +end + +facterversion = ENV['GEM_FACTER_VERSION'] || ENV['FACTER_GEM_VERSION'] +if facterversion + gem 'facter', *location_for(facterversion) +else + gem 'facter', :require => false +end + +puppetversion = ENV['GEM_PUPPET_VERSION'] || ENV['PUPPET_GEM_VERSION'] +if puppetversion + gem 'puppet', *location_for(puppetversion) +else + gem 'puppet', :require => false +end + |