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

allow setting tilt version via env var

This commit is contained in:
Konstantin Haase 2011-04-13 13:52:05 +02:00
parent 730eb45566
commit 33cde76d37

10
Gemfile
View file

@ -7,6 +7,7 @@
# If you have issues with a gem: `bundle install --without-coffee-script`. # If you have issues with a gem: `bundle install --without-coffee-script`.
RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
TILT_REPO = "git://github.com/rtomayko/tilt.git"
source :rubygems unless ENV['QUICK'] source :rubygems unless ENV['QUICK']
gemspec gemspec
@ -14,6 +15,15 @@ gemspec
gem 'rake' gem 'rake'
gem 'rack-test', '>= 0.5.6' 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 'haml', '>= 3.0', :group => 'haml'
gem 'builder', :group => 'builder' gem 'builder', :group => 'builder'
gem 'erubis', :group => 'erubis' gem 'erubis', :group => 'erubis'