-
Notifications
You must be signed in to change notification settings - Fork 227
/
Gemfile
66 lines (56 loc) · 1.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
source ENV['GEM_SOURCE'] || "https://rubygems.org"
puppet_branch = ENV['PUPPET_VERSION'] || "latest"
oldest_supported_puppet = "4.0.0"
beaker_version = ENV['BEAKER_VERSION']
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
gem 'facter'
gem 'rake'
group :test do
# Add test-unit for ruby 2.2+ support (has been removed from stdlib)
gem 'test-unit'
# Pinning for Ruby 1.9.3 support
gem 'json_pure', '~> 1.8'
# Pinning for Ruby < 2.2.0 support
gem 'activesupport', '~> 4.2'
# addressable 2.5 requires public_suffix, which requires ruby 2.
gem 'addressable', '< 2.5.0'
# Pinning to work-around an incompatiblity with 2.14 in puppetlabs_spec_helper
gem 'rspec', '~> 3.1'
gem 'puppetlabs_spec_helper', '0.10.3', :require => false
# docker-api 1.32.0 requires ruby 2.0.0
gem 'docker-api', '1.31.0'
case puppet_branch
when "latest"
gem 'puppet', ">= #{oldest_supported_puppet}", :require => false
when "oldest"
gem 'puppet', oldest_supported_puppet, :require => false
else
gem 'puppet', :git => 'https://github.com/puppetlabs/puppet.git',
:branch => puppet_branch, :require => false
end
gem 'mocha', '~> 1.0'
end
# This is a workaround for a bug in bundler, where it likes to look at ruby
# version deps regardless of what groups you want or not. This lets us
# conditionally shortcut evaluation entirely.
if ENV['NO_ACCEPTANCE'] != 'true'
group :acceptance do
if beaker_version
#use the specified version
gem 'beaker', *location_for(beaker_version)
else
# use the pinned version
gem 'beaker', '~> 3.4'
end
end
gem 'beaker-hostgenerator', '0.8.2'
gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.2')
end