1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Use :github tag in Gemfile.

This commit is contained in:
Damir Svrtan 2014-06-21 12:09:15 +02:00
parent 2697cedb37
commit a00d35b239

View file

@ -15,14 +15,13 @@ gem 'rack-test', '>= 0.6.2'
# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
# Used by the CI.
github = "git://github.com/%s.git"
repos = {'tilt' => github % "rtomayko/tilt", 'rack' => github % "rack/rack"}
repos = {'tilt' => "rtomayko/tilt", 'rack' => "rack/rack"}
%w[tilt rack].each do |lib|
dep = case ENV[lib]
when 'stable', nil then nil
when /(\d+\.)+\d+/ then "~> " + ENV[lib].sub("#{lib}-", '')
else {:git => repos[lib], :branch => dep}
else {:github => repos[lib], :branch => dep}
end
gem lib, dep
end