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

Commit 22a634f

Browse files
committed
Mark JRuby 9.1.9.0 or later as a Ripper supported environment
* https://travis-ci.org/rspec/rspec-support/jobs/262898547 * jruby/jruby#4562
1 parent a971d7d commit 22a634f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rspec/support/ruby_features.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def supports_exception_cause?
8080

8181
if Ruby.jruby?
8282
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
83-
# Ripper on JRuby 9.0.0.0.rc1 or later reports wrong line number
83+
# Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
8484
# or cannot parse source including `:if`.
85-
ripper_requirements.push(Ruby.jruby_version < '9.0.0.0.rc1')
85+
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.1.8.0'))
8686
end
8787

8888
if ripper_requirements.all?

0 commit comments

Comments
 (0)