forked from echocat/puppet-graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
24 lines (21 loc) · 966 Bytes
/
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
source ENV['GEM_SOURCE'] || "https://rubygems.org"
def location_for(place, version = nil)
if place =~ /^((?:git|https?)[:@][^#]*)#(.*)/
[version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, version, { :require => false }].compact
end
end
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'] || '~> 4')
gem 'facter', *location_for(ENV['FACTER_GEM_VERSION'] || '~> 2')
gem 'puppetlabs_spec_helper', '>= 0.1.0', :require => false
gem 'puppet-lint', '>= 0.3.2', :require => false
gem 'rspec-puppet', '>= 2.3.2', :require => false
gem 'rspec-puppet-facts', :require => false
gem 'metadata-json-lint', :require => false
gem 'rake', '< 11.0.0' # rubi <1.9 versus rake 11.0.0 workaround
if File.exists? "#{__FILE__}.local"
eval(File.read("#{__FILE__}.local"), binding)
end