1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/sinatra-contrib/Gemfile
Samuel Williams 2ccd0dc29d
Allow running with Rack 3. (#1811)
* Allow running with Rack 3.

* Pull in `rack-session` gem if needed.

* Try again.

* Use separate gemfiles for testing.

* Better test titles.

* Fix dependency on rack-test.

* Add rackup gem.

* Fix server registration.

* Update rack version constraints

Co-authored-by: Jordan Owens <jkowens@gmail.com>
2022-12-23 14:58:28 -05:00

41 lines
963 B
Ruby

# frozen_string_literal: true
source 'https://rubygems.org'
gemspec
gem 'rack-protection', path: '../rack-protection'
gem 'sinatra', path: '..'
group :development, :test do
platform :jruby do
gem 'json'
gem 'rdoc'
gem 'therubyrhino'
gem 'jar-dependencies', '= 0.4.1' # Gem::LoadError with jar-dependencies 0.4.2
end
platform :jruby, :ruby do
gem 'hamlit', '>= 3'
gem 'liquid', '~> 2.6.x'
gem 'slim'
end
platform :ruby do
gem 'execjs', '2.0.0'
gem 'nokogiri', '1.13.6'
gem 'redcarpet', '3.5.1'
gem 'yajl-ruby'
end
gem 'multi_json'
end
# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
# Used by the CI.
repos = { 'tilt' => 'rtomayko/tilt', 'rack' => 'rack/rack' }
%w[tilt rack].each do |lib|
dep = (ENV[lib] || 'stable').sub "#{lib}-", ''
dep = nil if dep == 'stable'
dep = { github: repos[lib], branch: dep } if dep && dep !~ (/(\d+\.?)+(\d+)?/)
gem lib, dep if dep
end