source ENV['GEM_SOURCE'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/'

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

gem 'beaker', *location_for(ENV['BEAKER_VERSION'] || '~> 6')
gem 'beaker-pe', '~> 3.6'
gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'] || '~> 2')
gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 1.0')
gem 'rototiller', '~> 1'
gem 'beaker-qa-i18n'
