Merge pull request #17361 from Homebrew/dependabot/bundler/Library/Homebrew/warning-1.4.0

build(deps): bump warning from 1.3.0 to 1.4.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2024-05-24 19:26:08 +01:00 committed by GitHub
commit 545f17e3b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 19 additions and 17 deletions

View File

@ -154,7 +154,7 @@ GEM
thor (1.3.1) thor (1.3.1)
unicode-display_width (2.5.0) unicode-display_width (2.5.0)
vernier (1.0.1) vernier (1.0.1)
warning (1.3.0) warning (1.4.0)
yard (0.9.36) yard (0.9.36)
yard-sorbet (0.8.1) yard-sorbet (0.8.1)
sorbet-runtime (>= 0.5) sorbet-runtime (>= 0.5)

View File

@ -4,6 +4,7 @@
# This is an autogenerated file for types exported from the `warning` gem. # This is an autogenerated file for types exported from the `warning` gem.
# Please instead update this file by running `bin/tapioca gem warning`. # Please instead update this file by running `bin/tapioca gem warning`.
# source://warning//lib/warning.rb#3 # source://warning//lib/warning.rb#3
module Warning module Warning
extend ::Warning extend ::Warning
@ -28,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#48 # source://warning//lib/warning.rb#49
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#79 # source://warning//lib/warning.rb#80
def dedup; end def dedup; end
# source://warning//lib/warning.rb#83 # source://warning//lib/warning.rb#84
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
@ -81,7 +82,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#128 # source://warning//lib/warning.rb#129
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
@ -114,7 +115,7 @@ module Warning::Processor
# /instance variable @\w+ not initialized/ => proc do |warning| # /instance variable @\w+ not initialized/ => proc do |warning|
# LOGGER.warning(warning) # LOGGER.warning(warning)
# end, # end,
# /global variable `\$\w+' not initialized/ => proc do |warning| # /global variable [`']\$\w+' not initialized/ => proc do |warning|
# LOGGER.error(warning) # LOGGER.error(warning)
# end # end
# ) # )
@ -125,26 +126,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#179 # source://warning//lib/warning.rb#180
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#220 # source://warning//lib/warning.rb#221
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#272 # source://warning//lib/warning.rb#273
def convert_regexp(regexp); end def convert_regexp(regexp); end
# source://warning//lib/warning.rb#285 # source://warning//lib/warning.rb#286
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#26 # source://warning//lib/warning.rb#27
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

@ -121,4 +121,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.14.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.14.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/vernier-1.0.1") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/vernier-1.0.1")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/vernier-1.0.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/vernier-1.0.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/warning-1.3.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/warning-1.4.0/lib")

View File

@ -4,18 +4,19 @@ 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/,
arg_prefix: /: warning: `[&\*]' interpreted as argument prefix\n\z/, arg_prefix: /: warning: [`'][&\*]' interpreted as argument prefix\n\z/,
bignum: /: warning: constant ::Bignum is deprecated\n\z/, bignum: /: warning: constant ::Bignum is deprecated\n\z/,
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/,
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/,
missing_gvar: /: warning: global variable `\$.+' not initialized\n\z/, missing_gvar: /: warning: global variable [`']\$.+' not initialized\n\z/,
missing_ivar: /: warning: instance variable @.+ not initialized\n\z/, missing_ivar: /: warning: instance variable @.+ not initialized\n\z/,
not_reached: /: warning: statement not reached\n\z/, not_reached: /: warning: statement not reached\n\z/,
shadow: /: warning: shadowing outer local variable - \w+\n\z/, shadow: /: warning: shadowing outer local variable - \w+\n\z/,
unused_var: /: warning: assigned but unused variable - \w+\n\z/, unused_var: /: warning: assigned but unused variable - \w+\n\z/,
useless_operator: /: warning: possibly useless use of [><!=]+ in void context\n\z/, useless_operator: /: warning: possibly useless use of [><!=]+ in void context\n\z/,
keyword_separation: /: warning: (?:Using the last argument (?:for `.+' )?as keyword parameters is deprecated; maybe \*\* should be added to the call|Passing the keyword argument (?:for `.+' )?as the last hash parameter is deprecated|Splitting the last argument (?:for `.+' )?into positional and keyword parameters is deprecated|The called method (?:`.+' )?is defined here)\n\z/, keyword_separation: /: warning: (?:Using the last argument (?:for [`'].+' )?as keyword parameters is deprecated; maybe \*\* should be added to the call|Passing the keyword argument (?:for [`'].+' )?as the last hash parameter is deprecated|Splitting the last argument (?:for [`'].+' )?into positional and keyword parameters is deprecated|The called method (?:[`'].+' )?is defined here)\n\z/,
safe: /: warning: (?:rb_safe_level_2_warning|rb_safe_level|rb_set_safe_level_force|rb_set_safe_level|rb_secure|rb_insecure_operation|rb_check_safe_obj|\$SAFE) will (?:be removed|become a normal global variable) in Ruby 3\.0\n\z/, safe: /: warning: (?:rb_safe_level_2_warning|rb_safe_level|rb_set_safe_level_force|rb_set_safe_level|rb_secure|rb_insecure_operation|rb_check_safe_obj|\$SAFE) will (?:be removed|become a normal global variable) in Ruby 3\.0\n\z/,
taint: /: warning: (?:rb_error_untrusted|rb_check_trusted|Pathname#taint|Pathname#untaint|rb_env_path_tainted|Object#tainted\?|Object#taint|Object#untaint|Object#untrusted\?|Object#untrust|Object#trust|rb_obj_infect|rb_tainted_str_new|rb_tainted_str_new_cstr) is deprecated and will be removed in Ruby 3\.2\.?\n\z/, taint: /: warning: (?:rb_error_untrusted|rb_check_trusted|Pathname#taint|Pathname#untaint|rb_env_path_tainted|Object#tainted\?|Object#taint|Object#untaint|Object#untrusted\?|Object#untrust|Object#trust|rb_obj_infect|rb_tainted_str_new|rb_tainted_str_new_cstr) is deprecated and will be removed in Ruby 3\.2\.?\n\z/,
mismatched_indentations: /: warning: mismatched indentations at '.+' with '.+' at \d+\n\z/, mismatched_indentations: /: warning: mismatched indentations at '.+' with '.+' at \d+\n\z/,
@ -166,7 +167,7 @@ module Warning
# /instance variable @\w+ not initialized/ => proc do |warning| # /instance variable @\w+ not initialized/ => proc do |warning|
# LOGGER.warning(warning) # LOGGER.warning(warning)
# end, # end,
# /global variable `\$\w+' not initialized/ => proc do |warning| # /global variable [`']\$\w+' not initialized/ => proc do |warning|
# LOGGER.error(warning) # LOGGER.error(warning)
# end # end
# ) # )