Skip to content

Commit 9b10ea7

Browse files
committed
Add more tests for JRuby and adjust its dependencies
1 parent 75f9c98 commit 9b10ea7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-20.04, macos-latest]
12-
ruby-version: [2.1.9, 2.2.10, 2.3.8, 2.4.6, 2.5.8, 2.6.6, 2.7.2, 3.0.1, '3.1', '3.2', jruby-9.1.17.0, jruby-9.2.17.0, truffleruby]
12+
ruby-version: [2.1.9, 2.2.10, 2.3.8, 2.4.6, 2.5.8, 2.6.6, 2.7.2, 3.0.1, 3.1, 3.2, jruby-9.1.17.0, jruby-9.2.17.0, jruby-9.3.2.0, jruby-9.4.0.0, truffleruby]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v2

ruby-saml.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ 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')
3438
else
3539
s.add_runtime_dependency('nokogiri', '>= 1.13.10')
3640
end

0 commit comments

Comments
 (0)