@@ -27,12 +27,18 @@ Gem::Specification.new do |s|
2727 # Nokogiri's version dependent on the Ruby version, even though we would
2828 # have liked to constrain Ruby 1.8.7 to install only the 1.5.x versions.
2929 if defined? ( JRUBY_VERSION )
30- if JRUBY_VERSION < '9.2.0 .0'
30+ if JRUBY_VERSION < '9.1.7 .0'
3131 s . add_runtime_dependency ( 'nokogiri' , '>= 1.8.2' , '<= 1.8.5' )
3232 s . add_runtime_dependency ( 'jruby-openssl' , '>= 0.9.8' )
3333 s . add_runtime_dependency ( 'json' , '< 2.3.0' )
34+ elsif JRUBY_VERSION < '9.2.0.0'
35+ s . add_runtime_dependency ( 'nokogiri' , '>= 1.9.1' , '< 1.10.0' )
36+ elsif JRUBY_VERSION < '9.3.2.0'
37+ s . add_runtime_dependency ( 'nokogiri' , '>= 1.11.4' )
38+ s . add_runtime_dependency ( 'rexml' )
3439 else
35- s . add_runtime_dependency ( 'nokogiri' , '>= 1.8.2' )
40+ s . add_runtime_dependency ( 'nokogiri' , '>= 1.13.10' )
41+ s . add_runtime_dependency ( 'rexml' )
3642 end
3743 elsif RUBY_VERSION < '1.9'
3844 s . add_runtime_dependency ( 'uuid' )
@@ -42,8 +48,14 @@ Gem::Specification.new do |s|
4248 s . add_runtime_dependency ( 'json' , '< 2.3.0' )
4349 elsif RUBY_VERSION < '2.3'
4450 s . add_runtime_dependency ( 'nokogiri' , '>= 1.9.1' , '< 1.10.0' )
51+ elsif RUBY_VERSION < '2.5'
52+ s . add_runtime_dependency ( 'nokogiri' , '>= 1.10.10' , '< 1.11.0' )
53+ s . add_runtime_dependency ( 'rexml' )
54+ elsif RUBY_VERSION < '2.6'
55+ s . add_runtime_dependency ( 'nokogiri' , '>= 1.11.4' )
56+ s . add_runtime_dependency ( 'rexml' )
4557 else
46- s . add_runtime_dependency ( 'nokogiri' , '>= 1.10.5 ' )
58+ s . add_runtime_dependency ( 'nokogiri' , '>= 1.13.10 ' )
4759 s . add_runtime_dependency ( 'rexml' )
4860 end
4961
@@ -57,10 +69,10 @@ Gem::Specification.new do |s|
5769 s . add_development_dependency ( 'minitest' , '~> 5.5' )
5870 s . add_development_dependency ( 'mocha' , '~> 0.14' )
5971
60- if RUBY_VERSION < '3.2 '
72+ if RUBY_VERSION < '2.0 '
6173 s . add_development_dependency ( 'rake' , '~> 10' )
6274 else
63- s . add_development_dependency ( 'rake' , '~> 12' )
75+ s . add_development_dependency ( 'rake' , '>= 12.3.3 ' )
6476 end
6577
6678 s . add_development_dependency ( 'shoulda' , '~> 2.11' )
0 commit comments