Skip to content

Commit

Permalink
allow setting tilt version via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Apr 13, 2011
1 parent 730eb45 commit 33cde76
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Gemfile
Expand Up @@ -7,13 +7,23 @@
# If you have issues with a gem: `bundle install --without-coffee-script`.

RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
TILT_REPO = "git://github.com/rtomayko/tilt.git"

source :rubygems unless ENV['QUICK']
gemspec

gem 'rake'
gem 'rack-test', '>= 0.5.6'

# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
# Used by the CI.
tilt = ENV['tilt'].dup || 'stable'
tilt.sub! 'tilt-', ''
if tilt != 'stable'
tilt = {:git => TILT_REPO, :branch => tilt} unless tilt =~ /(\d+\.)+\d+/
gem 'tilt', tilt
end

gem 'haml', '>= 3.0', :group => 'haml'
gem 'builder', :group => 'builder'
gem 'erubis', :group => 'erubis'
Expand Down

0 comments on commit 33cde76

Please sign in to comment.