1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
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
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 2.8')
gem 'rake', "~> 10.1"
if File.exists? "#{__FILE__}.local"
eval(File.read("#{__FILE__}.local"), binding)
end
|