Skip to content

Commit

Permalink
try yet another way to suppress warnings in Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Feb 6, 2025
1 parent 37cd2c0 commit 5a577de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ignore-gem-warnings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Warning
module Processor
def warn str
super unless str.start_with?(*Gem.path)
super unless str.start_with?(*Gem.path) || (str.include? 'Pattern matching is experimental')
end
end

Expand Down

0 comments on commit 5a577de

Please sign in to comment.