-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gemfile
43 lines (37 loc) · 1.23 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
source ENV['GEM_SOURCE'] || "https://rubygems.org"
def location_for(place, fake_version = nil)
if place =~ /^((?:git|https?)[:@][^#]*)#(.*)/
[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 'rspec', *location_for(ENV['RSPEC_GEM_VERSION'] || '~> 3.0')
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'] || '~> 4.0')
gem 'pry', :group => :development
if RUBY_VERSION =~ /^1\./
gem 'rake', '10.5.0' # still supports 1.8
else
gem 'rake'
end
# json_pure 2.0.2 added a requirement on ruby >= 2. We pin to json_pure 2.0.1
# if using ruby 1.9; older ruby versions do not support puppets that require
# these gems.
if RUBY_VERSION =~ /^1\.9/
gem 'json_pure', '<=2.0.1'
# rubocop 0.42.0 requires ruby >=2; 1.8 is not supported
gem 'rubocop', '0.41.2' if RUBY_VERSION =~ /^1\.9/
elsif RUBY_VERSION =~ /^1\.8/
gem 'json_pure', '< 2.0.0'
else
gem 'rubocop'
gem 'rubocop-rspec', '~> 1.6' if RUBY_VERSION >= '2.3.0'
end
if ENV['COVERAGE'] == 'yes'
gem 'coveralls', :require => false
end
if File.exist?('Gemfile.local')
eval_gemfile('Gemfile.local')
end