2011-02-18 09:26:42 +00:00
|
|
|
# Why use bundler?
|
2011-02-26 16:06:11 +00:00
|
|
|
# Well, not all development dependencies install on all rubies. Moreover, `gem
|
2011-02-18 09:26:42 +00: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 13:05:02 +00:00
|
|
|
# If you have issues with a gem: `bundle install --without-coffee-script`.
|
2011-02-18 09:26:42 +00:00
|
|
|
|
2011-02-21 10:54:26 +00:00
|
|
|
RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
|
|
|
|
source :rubygems unless ENV['QUICK']
|
2011-09-02 20:54:49 +00:00
|
|
|
gemspec
|
2011-02-18 09:26:42 +00:00
|
|
|
|
|
|
|
gem 'rake'
|
|
|
|
gem 'rack-test', '>= 0.5.6'
|
2011-06-09 11:46:30 +00:00
|
|
|
gem 'ci_reporter', :group => :ci
|
2011-02-18 09:26:42 +00:00
|
|
|
|
2011-04-13 11:52:05 +00:00
|
|
|
# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
|
|
|
|
# Used by the CI.
|
2011-05-03 07:11:15 +00:00
|
|
|
github = "git://github.com/%s.git"
|
2011-10-30 16:41:54 +00:00
|
|
|
repos = {'tilt' => github % "rtomayko/tilt", 'rack' => github % "rack/rack"}
|
|
|
|
|
2011-05-03 07:11:15 +00:00
|
|
|
%w[tilt rack].each do |lib|
|
2011-10-30 16:41:54 +00: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-11 03:21:41 +00:00
|
|
|
end
|
2011-05-03 07:11:15 +00:00
|
|
|
gem lib, dep
|
2011-04-13 11:52:05 +00:00
|
|
|
end
|
|
|
|
|
2011-06-16 09:11:09 +00:00
|
|
|
gem 'haml', '>= 3.0'
|
2012-03-11 12:10:50 +00:00
|
|
|
gem 'sass' if RUBY_VERSION < "2.0"
|
2011-06-16 09:11:09 +00:00
|
|
|
gem 'builder'
|
|
|
|
gem 'erubis'
|
2012-03-15 09:17:03 +00:00
|
|
|
gem 'liquid' unless RUBY_ENGINE == 'rbx' and RUBY_VERSION > '1.9'
|
2011-09-01 17:29:07 +00:00
|
|
|
gem 'slim', '~> 1.0'
|
2011-09-02 21:10:24 +00:00
|
|
|
gem 'temple', '!= 0.3.3'
|
2011-08-11 23:37:04 +00:00
|
|
|
gem 'coffee-script', '>= 2.0'
|
2011-06-16 09:11:09 +00:00
|
|
|
gem 'rdoc'
|
|
|
|
gem 'kramdown'
|
|
|
|
gem 'maruku'
|
|
|
|
gem 'creole'
|
2011-10-30 16:42:17 +00:00
|
|
|
gem 'markaby'
|
|
|
|
gem 'radius'
|
2012-06-05 13:16:07 +00:00
|
|
|
gem 'wlang', '>= 2.0.1'
|
2012-06-06 17:04:52 +00:00
|
|
|
gem 'rabl' unless RUBY_ENGINE == 'jruby'
|
2011-02-18 09:26:42 +00:00
|
|
|
|
2011-07-21 12:00:40 +00:00
|
|
|
if RUBY_ENGINE == 'jruby'
|
|
|
|
gem 'nokogiri', '!= 1.5.0'
|
2011-08-18 07:38:38 +00:00
|
|
|
gem 'jruby-openssl'
|
2012-05-13 20:32:18 +00:00
|
|
|
gem 'trinidad'
|
2011-09-20 18:43:10 +00:00
|
|
|
else
|
2012-03-08 06:41:46 +00:00
|
|
|
gem 'yajl-ruby'
|
2011-07-21 12:00:40 +00:00
|
|
|
gem 'nokogiri'
|
2012-03-10 16:34:34 +00:00
|
|
|
gem 'thin'
|
2011-07-21 12:00:40 +00:00
|
|
|
end
|
2011-05-20 12:17:59 +00:00
|
|
|
|
2012-03-18 10:47:22 +00:00
|
|
|
if RUBY_ENGINE == "ruby" and RUBY_VERSION > '1.9'
|
2011-10-07 04:47:06 +00:00
|
|
|
gem 'less', '~> 2.0'
|
|
|
|
else
|
|
|
|
gem 'less', '~> 1.0'
|
|
|
|
end
|
|
|
|
|
2012-01-18 11:51:01 +00:00
|
|
|
if RUBY_ENGINE != 'jruby' or not ENV['TRAVIS']
|
2011-05-17 09:40:14 +00:00
|
|
|
# C extensions
|
2011-06-16 09:11:09 +00:00
|
|
|
gem 'rdiscount'
|
2012-03-07 21:17:58 +00:00
|
|
|
platforms(:ruby_18) do
|
|
|
|
gem 'redcarpet'
|
|
|
|
gem 'mongrel'
|
|
|
|
end
|
2011-11-01 00:01:37 +00:00
|
|
|
gem 'RedCloth' unless RUBY_ENGINE == "macruby"
|
2012-03-18 12:25:35 +00:00
|
|
|
gem 'puma'
|
2011-06-05 14:13:55 +00:00
|
|
|
|
|
|
|
## bluecloth is broken
|
2011-06-16 09:11:09 +00:00
|
|
|
#gem 'bluecloth'
|
2011-02-18 09:26:42 +00:00
|
|
|
end
|
|
|
|
|
2012-05-13 18:59:49 +00:00
|
|
|
gem 'net-http-server'
|
|
|
|
|
2011-09-20 18:43:10 +00:00
|
|
|
platforms :ruby_18, :jruby do
|
2012-03-07 15:25:59 +00:00
|
|
|
gem 'json' unless RUBY_VERSION > '1.9' # is there a jruby but 1.8 only selector?
|
2011-02-26 14:48:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
platforms :mri_18 do
|
|
|
|
# bundler platforms are broken
|
2011-03-19 09:15:58 +00:00
|
|
|
next if RUBY_ENGINE != 'ruby' or RUBY_VERSION > "1.8"
|
2011-06-16 09:11:09 +00:00
|
|
|
gem 'rcov'
|
2011-02-26 14:48:14 +00:00
|
|
|
end
|