Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

indentation

  • Loading branch information...
commit f66868499351ab3e5cc3eeb617d360cf4ac2a3dc 1 parent 470d5cd
Konstantin Haase rkh authored
Showing with 6 additions and 8 deletions.
  1. +6 −8 Gemfile
14 Gemfile
View
@@ -17,15 +17,13 @@ gem 'ci_reporter', :group => :ci
# 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' => github % "rtomayko/tilt", 'rack' => github % "rack/rack"}
+
%w[tilt rack].each do |lib|
- dep = case ENV[lib] || 'stable'
- when 'stable'
- nil
- when /(\d+\.)+\d+/
- "~> " + ENV[lib].sub("#{lib}-", '')
- else
- {:git => repos[lib], :branch => dep}
+ dep = case ENV[lib]
+ when 'stable', nil then nil
+ when /(\d+\.)+\d+/ then "~> " + ENV[lib].sub("#{lib}-", '')
+ else {:git => repos[lib], :branch => dep}
end
gem lib, dep
end
Please sign in to comment.
Something went wrong with that request. Please try again.