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

JRuby 9.1.7.0 produces a warning from rubygems, ignore it #370

Merged
merged 2 commits into from
Mar 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/rspec/support/spec/shell_out.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ def strip_known_warnings(input)
l =~ %r{bundler/source/rubygems} ||
# Ignore bundler + rubygems warning.
l =~ %r{site_ruby/\d\.\d\.\d/rubygems} ||
l =~ %r{jruby-\d\.\d\.\d\.\d/lib/ruby/stdlib/rubygems} ||
# This is required for windows for some reason
l =~ %r{lib/bundler/rubygems} ||
# This is a JRuby file that generates warnings on 9.0.3.0
l =~ %r{lib/ruby/stdlib/jar}
l =~ %r{lib/ruby/stdlib/jar} ||
# This is a JRuby file that generates warnings on 9.1.7.0
l =~ %r{org/jruby/RubyKernel\.java} ||
# Remove blank lines
l == "" || l.nil?
end.join("\n")
end

Expand Down