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
|
|
|
|
source :rubygems unless ENV['QUICK']
|
2011-02-18 04:26:42 -05:00
|
|
|
|
|
|
|
gem 'rake'
|
|
|
|
gem 'rack-test', '>= 0.5.6'
|
2011-06-09 07:46:30 -04:00
|
|
|
gem 'ci_reporter', :group => :ci
|
2011-02-18 04:26:42 -05:00
|
|
|
|
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"
|
|
|
|
repos = { 'tilt' => github % "rtomayko/tilt", 'rack' => github % "rack/rack" }
|
|
|
|
%w[tilt rack].each do |lib|
|
|
|
|
dep = (ENV[lib] || 'stable').sub "#{lib}-", ''
|
2011-05-03 06:30:37 -04:00
|
|
|
dep = nil if dep == 'stable'
|
2011-05-11 03:38:11 -04:00
|
|
|
dep = {:git => repos[lib], :branch => dep} if dep and dep !~ /(\d+\.)+\d+/
|
2011-05-03 03:11:15 -04:00
|
|
|
gem lib, dep
|
2011-04-13 07:52:05 -04:00
|
|
|
end
|
|
|
|
|
2011-06-16 05:11:09 -04:00
|
|
|
gem 'haml', '>= 3.0'
|
|
|
|
gem 'sass'
|
|
|
|
gem 'builder'
|
|
|
|
gem 'erubis'
|
|
|
|
gem 'less', '~> 1.0'
|
|
|
|
gem 'liquid' unless RUBY_ENGINE == 'maglev'
|
|
|
|
gem 'slim'
|
|
|
|
gem 'RedCloth' if RUBY_VERSION < "1.9.3" and not RUBY_ENGINE.start_with? 'ma'
|
|
|
|
gem 'coffee-script', '>= 2.0' unless RUBY_ENGINE == 'maglev'
|
|
|
|
gem 'rdoc'
|
|
|
|
gem 'kramdown'
|
|
|
|
gem 'maruku'
|
|
|
|
gem 'creole'
|
2011-02-18 04:26:42 -05:00
|
|
|
|
2011-07-21 08:00:40 -04:00
|
|
|
if RUBY_ENGINE == 'jruby'
|
|
|
|
gem 'nokogiri', '!= 1.5.0'
|
|
|
|
elsif RUBY_ENGINE != 'maglev'
|
|
|
|
gem 'nokogiri'
|
|
|
|
end
|
2011-05-20 08:17:59 -04:00
|
|
|
|
2011-08-01 04:36:11 -04:00
|
|
|
unless RUBY_ENGINE == 'jruby' && JRUBY_VERSION < "1.6.1"
|
2011-05-17 05:40:14 -04:00
|
|
|
# C extensions
|
2011-06-16 05:11:09 -04:00
|
|
|
gem 'rdiscount'
|
|
|
|
gem 'redcarpet'
|
2011-06-05 10:13:55 -04:00
|
|
|
|
|
|
|
## bluecloth is broken
|
2011-06-16 05:11:09 -04:00
|
|
|
#gem 'bluecloth'
|
2011-02-18 04:26:42 -05:00
|
|
|
end
|
|
|
|
|
2011-06-16 04:06:44 -04:00
|
|
|
if RUBY_ENGINE == 'maglev'
|
2011-06-16 05:11:09 -04:00
|
|
|
gem 'json'
|
|
|
|
gem 'markaby'
|
|
|
|
gem 'radius'
|
2011-06-16 04:06:44 -04:00
|
|
|
end
|
|
|
|
|
2011-02-18 04:26:42 -05:00
|
|
|
platforms :ruby_18, :jruby do
|
2011-06-16 05:11:09 -04:00
|
|
|
gem 'json'
|
|
|
|
gem 'markaby'
|
|
|
|
gem 'radius'
|
2011-02-26 09:48:14 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
platforms :mri_18 do
|
|
|
|
# bundler platforms are broken
|
2011-03-19 05:15:58 -04:00
|
|
|
next if RUBY_ENGINE != 'ruby' or RUBY_VERSION > "1.8"
|
2011-06-16 05:11:09 -04:00
|
|
|
gem 'rcov'
|
2011-02-26 09:48:14 -05:00
|
|
|
end
|