module-puppetlabs-mysql/Gemfile

57 lines
1.5 KiB
Text
Raw Normal View History

2014-06-26 02:23:29 +02:00
source ENV['GEM_SOURCE'] || "https://rubygems.org"
2015-05-06 23:30:59 +02:00
def location_for(place, fake_version = nil)
if place =~ /^(git[:@][^#]*)#(.*)/
2015-05-06 23:30:59 +02:00
[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
group :development, :unit_tests do
# rspec-core 3.1.7 is the last version to support ruby 1.8
if RUBY_VERSION < '1.9'
gem 'rspec-core', '3.1.7'
2015-11-20 19:34:59 +01:00
else
# newer version required to avoid BKR-537
gem 'rspec-core', '>= 3.4'
2015-11-20 19:34:59 +01:00
end
2013-07-06 00:19:02 +02:00
gem 'puppetlabs_spec_helper', :require => false
gem 'simplecov', :require => false
gem 'json', :require => false
gem 'metadata-json-lint', :require => false
gem 'rspec-puppet-facts', :require => false
end
group :system_tests do
2015-05-06 23:32:49 +02:00
if beaker_version = ENV['BEAKER_VERSION']
gem 'beaker', *location_for(beaker_version)
end
2015-05-06 23:30:59 +02:00
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
gem 'beaker-rspec', *location_for(beaker_rspec_version)
else
gem 'beaker-rspec', :require => false
end
gem 'serverspec', :require => false
gem 'beaker-puppet_install_helper', :require => false
end
2015-05-06 23:30:59 +02:00
if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion, :require => false
else
gem 'facter', :require => false
end
if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', :require => false
end
# vim:ft=ruby