Merge pull request #18970 from Homebrew/dependabot/bundler/Library/Homebrew/warning-1.5.0

build(deps): bump warning from 1.4.0 to 1.5.0 in /Library/Homebrew
This commit is contained in:
Patrick Linnane 2024-12-20 19:53:59 +00:00 committed by GitHub
commit 5fca774920
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 13 deletions

View File

@ -140,7 +140,7 @@ GEM
unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4) unicode-emoji (4.0.4)
vernier (1.5.0) vernier (1.5.0)
warning (1.4.0) warning (1.5.0)
yard (0.9.37) yard (0.9.37)
yard-sorbet (0.9.0) yard-sorbet (0.9.0)
sorbet-runtime sorbet-runtime

View File

@ -29,17 +29,17 @@ module Warning::Processor
# end # end
# # Previous warning state restored when block exists # # Previous warning state restored when block exists
# #
# source://warning//lib/warning.rb#49 # source://warning//lib/warning.rb#50
def clear; end def clear; end
# Deduplicate warnings, suppress warning messages if the same warning message # Deduplicate warnings, suppress warning messages if the same warning message
# has already occurred. Note that this can lead to unbounded memory use # has already occurred. Note that this can lead to unbounded memory use
# if unique warnings are generated. # if unique warnings are generated.
# #
# source://warning//lib/warning.rb#80 # source://warning//lib/warning.rb#81
def dedup; end def dedup; end
# source://warning//lib/warning.rb#84 # source://warning//lib/warning.rb#85
def freeze; end def freeze; end
# Ignore any warning messages matching the given regexp, if they # Ignore any warning messages matching the given regexp, if they
@ -50,6 +50,8 @@ module Warning::Processor
# :arg_prefix :: Ignore warnings when using * or & as an argument prefix # :arg_prefix :: Ignore warnings when using * or & as an argument prefix
# :ambiguous_slash :: Ignore warnings for things like <tt>method /regexp/</tt> # :ambiguous_slash :: Ignore warnings for things like <tt>method /regexp/</tt>
# :bignum :: Ignore warnings when referencing the ::Bignum constant. # :bignum :: Ignore warnings when referencing the ::Bignum constant.
# :default_gem_removal :: Ignore warnings that a gem will be removed from the default gems
# in a future Ruby version.
# :fixnum :: Ignore warnings when referencing the ::Fixnum constant. # :fixnum :: Ignore warnings when referencing the ::Fixnum constant.
# :keyword_separation :: Ignore warnings related to keyword argument separation. # :keyword_separation :: Ignore warnings related to keyword argument separation.
# :method_redefined :: Ignore warnings when defining a method in a class/module where a # :method_redefined :: Ignore warnings when defining a method in a class/module where a
@ -82,7 +84,7 @@ module Warning::Processor
# # Ignore all uninitialized instance variable and method redefined warnings in current file # # Ignore all uninitialized instance variable and method redefined warnings in current file
# Warning.ignore([:missing_ivar, :method_redefined], __FILE__) # Warning.ignore([:missing_ivar, :method_redefined], __FILE__)
# #
# source://warning//lib/warning.rb#129 # source://warning//lib/warning.rb#132
def ignore(regexp, path = T.unsafe(nil)); end def ignore(regexp, path = T.unsafe(nil)); end
# Handle all warnings starting with the given path, instead of # Handle all warnings starting with the given path, instead of
@ -126,26 +128,26 @@ module Warning::Processor
# #
# Warning.process(__FILE__, :missing_ivar=>:backtrace, :keyword_separation=>:raise) # Warning.process(__FILE__, :missing_ivar=>:backtrace, :keyword_separation=>:raise)
# #
# source://warning//lib/warning.rb#180 # source://warning//lib/warning.rb#183
def process(path = T.unsafe(nil), actions = T.unsafe(nil), &block); end def process(path = T.unsafe(nil), actions = T.unsafe(nil), &block); end
# source://warning//lib/warning.rb#221 # source://warning//lib/warning.rb#224
def warn(str, category: T.unsafe(nil)); end def warn(str, category: T.unsafe(nil)); end
private private
# Convert the given Regexp, Symbol, or Array of Symbols into a Regexp. # Convert the given Regexp, Symbol, or Array of Symbols into a Regexp.
# #
# source://warning//lib/warning.rb#273 # source://warning//lib/warning.rb#276
def convert_regexp(regexp); end def convert_regexp(regexp); end
# source://warning//lib/warning.rb#286 # source://warning//lib/warning.rb#289
def synchronize(&block); end def synchronize(&block); end
end end
# Map of action symbols to procs that return the symbol # Map of action symbols to procs that return the symbol
# #
# source://warning//lib/warning.rb#27 # source://warning//lib/warning.rb#28
Warning::Processor::ACTION_PROC_MAP = T.let(T.unsafe(nil), Hash) Warning::Processor::ACTION_PROC_MAP = T.let(T.unsafe(nil), Hash)
# Map of symbols to regexps for warning messages to ignore. # Map of symbols to regexps for warning messages to ignore.

View File

@ -114,4 +114,4 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.16.5/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.16.5/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/vernier-1.5.0") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/vernier-1.5.0")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/vernier-1.5.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/vernier-1.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/warning-1.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/warning-1.5.0/lib")

View File

@ -4,9 +4,10 @@ module Warning
module Processor module Processor
# Map of symbols to regexps for warning messages to ignore. # Map of symbols to regexps for warning messages to ignore.
IGNORE_MAP = { IGNORE_MAP = {
ambiguous_slash: /: warning: ambiguous first argument; put parentheses or a space even after [`']\/' operator\n\z|: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after [`']\/' operator\n\z/, ambiguous_slash: /: warning: ambiguous first argument; put parentheses or a space even after [`']\/' operator\n\z|: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after [`']\/' operator\n\z|ambiguous `\/`; wrap regexp in parentheses or add a space after `\/` operator\n\z/,
arg_prefix: /: warning: [`'][&\*]' interpreted as argument prefix\n\z/, arg_prefix: /: warning: ([`'][&\*]'||ambiguous `[\*&]` has been) interpreted as( an)? argument prefix\n\z/,
bignum: /: warning: constant ::Bignum is deprecated\n\z/, bignum: /: warning: constant ::Bignum is deprecated\n\z/,
default_gem_removal: /: warning: .+? was loaded from the standard library, but will no longer be part of the default gems starting from Ruby [\d.]+\./,
fixnum: /: warning: constant ::Fixnum is deprecated\n\z/, fixnum: /: warning: constant ::Fixnum is deprecated\n\z/,
ignored_block: /: warning: the block passed to '.+' defined at .+:\d+ may be ignored\n\z/, ignored_block: /: warning: the block passed to '.+' defined at .+:\d+ may be ignored\n\z/,
method_redefined: /: warning: method redefined; discarding old .+\n\z|: warning: previous definition of .+ was here\n\z/, method_redefined: /: warning: method redefined; discarding old .+\n\z|: warning: previous definition of .+ was here\n\z/,
@ -95,6 +96,8 @@ module Warning
# :arg_prefix :: Ignore warnings when using * or & as an argument prefix # :arg_prefix :: Ignore warnings when using * or & as an argument prefix
# :ambiguous_slash :: Ignore warnings for things like <tt>method /regexp/</tt> # :ambiguous_slash :: Ignore warnings for things like <tt>method /regexp/</tt>
# :bignum :: Ignore warnings when referencing the ::Bignum constant. # :bignum :: Ignore warnings when referencing the ::Bignum constant.
# :default_gem_removal :: Ignore warnings that a gem will be removed from the default gems
# in a future Ruby version.
# :fixnum :: Ignore warnings when referencing the ::Fixnum constant. # :fixnum :: Ignore warnings when referencing the ::Fixnum constant.
# :keyword_separation :: Ignore warnings related to keyword argument separation. # :keyword_separation :: Ignore warnings related to keyword argument separation.
# :method_redefined :: Ignore warnings when defining a method in a class/module where a # :method_redefined :: Ignore warnings when defining a method in a class/module where a