2011-02-18 04:26:42 -05:00
|
|
|
# Why use bundler?
|
2011-02-26 11:06:11 -05:00
|
|
|
# Well, not all development dependencies install on all rubies. Moreover, `gem
|
2011-02-18 04:26:42 -05:00
|
|
|
# install sinatra --development` doesn't work, as it will also try to install
|
|
|
|
# development dependencies of our dependencies, and those are not conflict free.
|
|
|
|
# So, here we are, `bundle install`.
|
|
|
|
#
|
2011-02-21 08:05:02 -05:00
|
|
|
# If you have issues with a gem: `bundle install --without-coffee-script`.
|
2011-02-18 04:26:42 -05:00
|
|
|
|
2011-02-21 05:54:26 -05:00
|
|
|
RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
|
2013-03-07 20:43:46 -05:00
|
|
|
source 'https://rubygems.org' unless ENV['QUICK']
|
2011-09-02 16:54:49 -04:00
|
|
|
gemspec
|
2011-02-18 04:26:42 -05:00
|
|
|
|
|
|
|
gem 'rake'
|
|
|
|
gem 'rack-test', '>= 0.5.6'
|
|
|
|
|
2011-04-13 07:52:05 -04:00
|
|
|
# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
|
|
|
|
# Used by the CI.
|
2011-05-03 03:11:15 -04:00
|
|
|
github = "git://github.com/%s.git"
|
2011-10-30 12:41:54 -04:00
|
|
|
repos = {'tilt' => github % "rtomayko/tilt", 'rack' => github % "rack/rack"}
|
|
|
|
|
2011-05-03 03:11:15 -04:00
|
|
|
%w[tilt rack].each do |lib|
|
2011-10-30 12:41:54 -04:00
|
|
|
dep = case ENV[lib]
|
|
|
|
when 'stable', nil then nil
|
|
|
|
when /(\d+\.)+\d+/ then "~> " + ENV[lib].sub("#{lib}-", '')
|
|
|
|
else {:git => repos[lib], :branch => dep}
|
2011-10-10 23:21:41 -04:00
|
|
|
end
|
2011-05-03 03:11:15 -04:00
|
|
|
gem lib, dep
|
2011-04-13 07:52:05 -04:00
|
|
|
end
|
|
|
|
|
2011-07-21 08:00:40 -04:00
|
|
|
if RUBY_ENGINE == 'jruby'
|
|
|
|
gem 'nokogiri', '!= 1.5.0'
|
2011-08-18 03:38:38 -04:00
|
|
|
gem 'jruby-openssl'
|
2012-05-13 16:32:18 -04:00
|
|
|
gem 'trinidad'
|
2011-07-21 08:00:40 -04:00
|
|
|
end
|
2011-05-20 08:17:59 -04:00
|
|
|
|
2013-12-27 05:20:50 -05:00
|
|
|
if RUBY_ENGINE == "ruby" and RUBY_VERSION > '1.9.2'
|
2011-10-07 00:47:06 -04:00
|
|
|
gem 'less', '~> 2.0'
|
2013-12-27 05:20:50 -05:00
|
|
|
gem 'therubyracer'
|
|
|
|
gem 'redcarpet'
|
|
|
|
gem 'wlang', '>= 2.0.1'
|
|
|
|
gem 'bluecloth'
|
|
|
|
gem 'rdiscount'
|
|
|
|
gem 'RedCloth'
|
2012-03-18 08:25:35 -04:00
|
|
|
gem 'puma'
|
2013-12-27 05:20:50 -05:00
|
|
|
gem 'net-http-server'
|
|
|
|
gem 'yajl-ruby'
|
|
|
|
gem 'nokogiri'
|
|
|
|
gem 'thin'
|
|
|
|
gem 'slim', '~> 1.0'
|
|
|
|
gem 'coffee-script', '>= 2.0'
|
|
|
|
gem 'rdoc'
|
|
|
|
gem 'kramdown'
|
|
|
|
gem 'maruku'
|
|
|
|
gem 'creole'
|
|
|
|
gem 'markaby'
|
|
|
|
gem 'radius'
|
|
|
|
gem 'liquid'
|
|
|
|
gem 'stylus'
|
|
|
|
gem 'rabl'
|
|
|
|
gem 'builder'
|
|
|
|
gem 'erubis'
|
|
|
|
gem 'haml', '>= 3.0'
|
2014-02-17 10:36:53 -05:00
|
|
|
gem 'sass'
|
2011-02-18 04:26:42 -05:00
|
|
|
end
|
|
|
|
|
2013-12-27 05:20:50 -05:00
|
|
|
if RUBY_ENGINE == "rbx"
|
|
|
|
gem 'json'
|
|
|
|
gem 'rubysl'
|
|
|
|
gem 'rubysl-test-unit'
|
|
|
|
end
|
2012-05-13 14:59:49 -04:00
|
|
|
|
2011-09-20 14:43:10 -04:00
|
|
|
platforms :ruby_18, :jruby do
|
2012-03-07 10:25:59 -05:00
|
|
|
gem 'json' unless RUBY_VERSION > '1.9' # is there a jruby but 1.8 only selector?
|
2011-02-26 09:48:14 -05:00
|
|
|
end
|