|
| 1 | +#This file is generated by ModuleSync, do not edit. |
| 2 | + |
1 | 3 | source ENV['GEM_SOURCE'] || "https://rubygems.org" |
2 | 4 |
|
3 | | -def location_for(place, fake_version = nil) |
4 | | - if place =~ /^(git:[^#]*)#(.*)/ |
5 | | - [fake_version, { :git => $1, :branch => $2, :require => false }].compact |
| 5 | +def location_for(place, version = nil) |
| 6 | + if place =~ /^(git[:@][^#]*)#(.*)/ |
| 7 | + [version, { :git => $1, :branch => $2, :require => false}].compact |
6 | 8 | elsif place =~ /^file:\/\/(.*)/ |
7 | | - ['>= 0', { :path => File.expand_path($1), :require => false }] |
| 9 | + ['>= 0', { :path => File.expand_path($1), :require => false}] |
8 | 10 | else |
9 | | - [place, { :require => false }] |
| 11 | + [place, version, { :require => false}].compact |
10 | 12 | end |
11 | 13 | end |
12 | 14 |
|
13 | 15 | 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 |
| 16 | + gem 'json', :require => false |
| 17 | + gem 'metadata-json-lint', :require => false |
| 18 | + gem 'puppet_facts', :require => false |
| 19 | + gem 'puppet-blacksmith', :require => false |
| 20 | + gem 'puppetlabs_spec_helper', :require => false |
| 21 | + gem 'rspec-puppet', '>= 2.3.2', :require => false |
| 22 | + gem 'simplecov', :require => false |
19 | 23 | end |
20 | | - |
21 | 24 | group :system_tests do |
22 | | - if beaker_version = ENV['BEAKER_VERSION'] |
23 | | - gem 'beaker', *location_for(beaker_version) |
24 | | - end |
25 | | - if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION'] |
26 | | - gem 'beaker-rspec', *location_for(beaker_rspec_version) |
27 | | - else |
28 | | - gem 'beaker-rspec', :require => false |
29 | | - end |
| 25 | + gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4') |
| 26 | + gem 'beaker', *location_for(ENV['BEAKER_VERSION']) |
30 | 27 | gem 'serverspec', :require => false |
31 | 28 | gem 'beaker-puppet_install_helper', :require => false |
| 29 | + gem 'master_manipulator', :require => false |
| 30 | + gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION']) |
32 | 31 | end |
33 | 32 |
|
| 33 | +gem 'facter', *location_for(ENV['FACTER_GEM_VERSION']) |
| 34 | +gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) |
34 | 35 |
|
35 | 36 |
|
36 | | -if facterversion = ENV['FACTER_GEM_VERSION'] |
37 | | - gem 'facter', facterversion, :require => false |
38 | | -else |
39 | | - gem 'facter', :require => false |
40 | | -end |
41 | | - |
42 | | -if puppetversion = ENV['PUPPET_GEM_VERSION'] |
43 | | - gem 'puppet', puppetversion, :require => false |
44 | | -else |
45 | | - gem 'puppet', :require => false |
| 37 | +if File.exists? "#{__FILE__}.local" |
| 38 | + eval(File.read("#{__FILE__}.local"), binding) |
46 | 39 | end |
47 | | - |
48 | | -# vim:ft=ruby |
0 commit comments