Skip to content

Commit

Permalink
do not use git version in Gemfile if env vars for tilt or rack is not…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
rkh committed May 11, 2011
1 parent 27b1008 commit 5a899b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos = { 'tilt' => github % "rtomayko/tilt", 'rack' => github % "rack/rack" }
%w[tilt rack].each do |lib| %w[tilt rack].each do |lib|
dep = (ENV[lib] || 'stable').sub "#{lib}-", '' dep = (ENV[lib] || 'stable').sub "#{lib}-", ''
dep = nil if dep == 'stable' dep = nil if dep == 'stable'
dep = {:git => repos[lib], :branch => dep} unless dep =~ /(\d+\.)+\d+/ dep = {:git => repos[lib], :branch => dep} if dep and dep !~ /(\d+\.)+\d+/
gem lib, dep gem lib, dep
end end


Expand Down

0 comments on commit 5a899b2

Please sign in to comment.