forked from puppetlabs-toy-chest/puppetlabs-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
53 lines (46 loc) · 1.45 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
source ENV['GEM_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
is_ruby18 = RUBY_VERSION.start_with? '1.8'
group :development, :test do
gem 'rake', :require => false
if is_ruby18
gem 'rspec', "~> 3.1.0", :require => false
end
gem 'rspec-puppet', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'pry', :require => false
gem 'simplecov', :require => false
gem 'metadata-json-lint', :require => false
end
beaker_version = ENV['BEAKER_VERSION']
group :system_tests do
gem 'serverspec', :require => false
if beaker_version
gem 'beaker', *location_for(beaker_version)
else
gem 'beaker', :require => false
end
gem 'beaker-rspec', :require => false
end
facter_version = ENV['FACTER_GEM_VERSION']
if facter_version
gem 'facter', *location_for(facter_version)
else
gem 'facter', :require => false
end
puppet_version = ENV['PUPPET_GEM_VERSION']
if puppet_version
gem 'puppet', *location_for(puppet_version)
else
gem 'puppet', :require => false
end
# vim:ft=ruby