Sha256: 1716818a028bc6a31d34fa4d7be594d17fcdd1ef826583776d37987564a09a25

Contents?: true

Size: 754 Bytes

Versions: 1

Compression:

Stored size: 754 Bytes

Contents

source ENV['GEM_SOURCE'] || "https://rubygems.org"

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

if (beaker_version = ENV['BEAKER_VERSION'])
  gem 'beaker', *location_for(beaker_version)
end

case ENV['BEAKER_HYPERVISOR']
when 'docker'
  gem 'beaker-docker'
when 'vagrant', 'vagrant_libvirt'
  gem 'beaker-vagrant'
when 'vmpooler'
  gem 'beaker-vmpooler', '~> 1.3'
end

group :release do
  gem 'github_changelog_generator', '>= 1.16.4', require: false if RUBY_VERSION >= '2.5'
end

gemspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beaker-rspec-7.1.0 Gemfile