beaker-vmpooler/Gemfile
Spencer McElmurry ddae40bade (maint) Add option for BEAKER_HOSTS file to be pregenerated in acceptance tests
Before, the host configuration was hard-coded. Added an option
to specify an ENV var in order to use a different string or a
pregenerated hostfile.

This also allows us to use abs in production, so that has been added
to the Gemfile
2017-11-28 08:41:42 -08:00

28 lines
733 B
Ruby

source ENV['GEM_SOURCE'] || "https://rubygems.org"
gemspec
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
# We don't put beaker in as a test dependency because we
# don't want to create a transitive dependency
group :acceptance_testing do
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 3.0')
gem "beaker-abs", *location_for(ENV['ABS_VERSION'] || '~> 0.3.0')
end
if File.exists? "#{__FILE__}.local"
eval(File.read("#{__FILE__}.local"), binding)
end