diff options
Diffstat (limited to 'Gemfile')
| -rw-r--r-- | Gemfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -16,8 +16,10 @@ group :development do gem 'pygments.rb', ENV['PYGMENTS_VERSION'] if ENV.key? 'PYGMENTS_VERSION' # rouge is needed for testing source highlighting; Asciidoctor supports rouge >= 2 gem 'rouge', (ENV.fetch 'ROUGE_VERSION', '~> 3.0') - if Gem.win_platform? && (Gem::Version.new RUBY_VERSION) >= (Gem::Version.new '2.6.0') - gem 'nokogiri', '~> 1.13.0' + if RUBY_ENGINE == 'truffleruby' || (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.5.0') + gem 'nokogiri', '~> 1.10.0' + elsif (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.6.0') + gem 'nokogiri', '~> 1.12.0' end end |
