Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 9761ca4

Browse files
committed
Ripper is supported on 9.1.17.0 according to test suite
1 parent e955555 commit 9761ca4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/rspec/support/ruby_features.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ def supports_taint?
111111
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
112112
# Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
113113
# or cannot parse source including `:if`.
114-
# Ripper on JRuby 9.x.x.x < 9.2.1.0 can't handle keyword arguments.
115-
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.2.0.0'))
114+
# Ripper on JRuby 9.x.x.x < 9.1.17.0 can't handle keyword arguments
115+
# Neither can JRuby 9.2, e.g. < 9.2.1.0
116+
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.1.16.0'))
117+
ripper_requirements.push(!Ruby.jruby_version.between?('9.1.999.0', '9.1.999.0'))
116118
end
117119

118120
if ripper_requirements.all?

0 commit comments

Comments
 (0)