summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index 526b83bf..781acbaf 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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