Permalink
Browse files

allow setting tilt version via env var

  • Loading branch information...
1 parent 904b280 commit 1c1fa17b57b940ba3b9aa7114bd148f538516c0b @rkh rkh committed Apr 13, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 Gemfile
View
10 Gemfile
@@ -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'

0 comments on commit 1c1fa17

Please sign in to comment.