Use Bundler "platforms" in Gemfile

This changes the Gemfile to make room for other engines.

I tried to make it pass on JRuby first.
This commit is contained in:
Olle Jonsson 2022-02-24 17:42:18 +01:00
parent 8a170a5ebf
commit e168cb5d49
1 changed files with 33 additions and 44 deletions

77
Gemfile
View File

@ -6,7 +6,6 @@
# #
# If you have issues with a gem: `bundle install --without-coffee-script`. # If you have issues with a gem: `bundle install --without-coffee-script`.
RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
source 'https://rubygems.org' source 'https://rubygems.org'
gemspec gemspec
@ -21,49 +20,39 @@ gem "sinatra-contrib", path: "sinatra-contrib"
gem "twitter-text", "1.14.7" gem "twitter-text", "1.14.7"
if RUBY_ENGINE == 'jruby'
gem 'nokogiri', '!= 1.5.0'
gem 'puma'
end
if RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'ruby' gem "activesupport", "~> 5.1.6", platforms: [ :jruby, :mri ]
gem "activesupport", "~> 5.1.6"
end
if RUBY_ENGINE == "ruby" gem 'redcarpet', platforms: [ :mri ]
gem 'redcarpet' gem 'wlang', '>= 3.0.1'
gem 'wlang', '>= 3.0.1' gem 'bluecloth', platforms: [ :mri ]
gem 'bluecloth' gem 'rdiscount', platforms: [ :mri ]
gem 'rdiscount' gem 'RedCloth', platforms: [ :mri ]
gem 'RedCloth' gem 'puma', platforms: [ :jruby, :mri ]
gem 'puma' gem 'yajl-ruby', platforms: [ :mri ]
gem 'yajl-ruby' gem 'nokogiri', '> 1.5.0', platforms: [ :jruby, :mri ]
gem 'nokogiri' gem 'rainbows', platforms: [ :mri ]
gem 'rainbows' gem 'eventmachine'
gem 'eventmachine' gem 'slim', '~> 2.0'
gem 'slim', '~> 2.0' gem 'coffee-script', '>= 2.0'
gem 'coffee-script', '>= 2.0' gem 'rdoc'
gem 'rdoc' gem 'kramdown'
gem 'kramdown' gem 'maruku'
gem 'maruku' gem 'creole'
gem 'creole' gem 'wikicloth'
gem 'wikicloth' gem 'markaby'
gem 'markaby' gem 'radius'
gem 'radius' gem 'asciidoctor'
gem 'asciidoctor' gem 'liquid'
gem 'liquid' gem 'rabl'
gem 'rabl' gem 'builder'
gem 'builder' gem 'erubi'
gem 'erubi' gem 'erubis'
gem 'erubis' gem 'haml', '>= 3.0'
gem 'haml', '>= 3.0' gem 'sass'
gem 'sass' gem 'celluloid', '~> 0.16.0'
gem 'celluloid', '~> 0.16.0' gem 'commonmarker', '~> 0.20.0', platforms: [ :mri ]
gem 'commonmarker', '~> 0.20.0' gem 'pandoc-ruby', '~> 2.0.2'
gem 'pandoc-ruby', '~> 2.0.2' gem 'simplecov', require: false
gem 'simplecov', require: false
end
platforms :jruby do gem 'json', platforms: [ :jruby, :mri ]
gem 'json'
end