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

72 lines
2.4 KiB
Text
Raw Normal View History

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.
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'
dep = {:git => repos[lib], :branch => dep} if dep and dep !~ /(\d+\.)+\d+/
gem lib, dep
2011-04-13 07:52:05 -04:00
end
2011-02-18 04:26:42 -05:00
gem 'haml', '>= 3.0', :group => 'haml'
2011-04-26 06:32:19 -04:00
gem 'sass', :group => 'sass'
2011-02-18 04:26:42 -05:00
gem 'builder', :group => 'builder'
gem 'erubis', :group => 'erubis'
2011-06-04 03:32:48 -04:00
gem 'less', '~> 1.0', :group => 'less'
gem 'liquid', :group => 'liquid' unless RUBY_ENGINE == 'maglev'
2011-02-18 04:26:42 -05:00
gem 'slim', :group => 'slim'
2011-05-20 08:17:59 -04:00
gem 'RedCloth', :group => 'redcloth' if RUBY_VERSION < "1.9.3" and not RUBY_ENGINE.start_with? 'ma'
gem 'coffee-script', '>= 2.0', :group => 'coffee-script' unless RUBY_ENGINE == 'maglev'
2011-02-26 11:06:11 -05:00
gem 'rdoc', :group => 'rdoc'
2011-04-15 05:00:07 -04:00
gem 'kramdown', :group => 'kramdown'
gem 'maruku', :group => 'maruku'
2011-04-15 05:51:35 -04:00
gem 'creole', :group => 'creole'
2011-02-18 04:26:42 -05:00
2011-05-20 08:17:59 -04:00
gem 'nokogiri', :group => 'nokogiri' if RUBY_ENGINE != 'maglev'
#nokogiri_options = {:group => 'nokogiri'}
#nokogiri_options[:git] = "https://github.com/MagLev/nokogiri.git" if RUBY_ENGINE == 'maglev'
#gem 'nokogiri', nokogiri_options if RUBY_ENGINE != 'maglev'
unless RUBY_ENGINE == 'jruby' && JRUBY_VERSION < "1.6.1"
# C extensions
2011-02-18 04:26:42 -05:00
gem 'rdiscount', :group => 'rdiscount'
gem 'redcarpet', :group => 'redcarpet'
## bluecloth is broken
#gem 'bluecloth', :group => 'bluecloth'
2011-02-18 04:26:42 -05:00
end
if RUBY_ENGINE == 'maglev'
gem 'json', :group => 'coffee-script'
gem 'markaby', :group => 'markaby'
gem 'radius', :group => 'radius'
end
2011-02-18 04:26:42 -05:00
platforms :ruby_18, :jruby do
gem 'json', :group => 'coffee-script'
gem 'markaby', :group => 'markaby'
gem 'radius', :group => 'radius'
end
platforms :mri_18 do
# bundler platforms are broken
next if RUBY_ENGINE != 'ruby' or RUBY_VERSION > "1.8"
gem 'rcov', :group => 'rcov'
end