brew vendor-gems: commit updates.

This commit is contained in:
BrewTestBot 2022-12-26 18:09:21 +00:00
parent 9e73df4958
commit 62b3ee1dcb
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
139 changed files with 62 additions and 20 deletions

View File

@ -106,7 +106,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.3.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.40.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.15.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.17.3/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.17.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.16.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.6.11/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-3.0.0/lib")

View File

@ -69,15 +69,15 @@ module RuboCop
def followed_by_render?(flash_node)
flash_assigment_node = find_ancestor(flash_node, type: :send)
context = flash_assigment_node
if (if_node = context.each_ancestor(:if).first)
context = if_node
if (node = context.each_ancestor(:if, :rescue).first)
context = node
elsif context.right_siblings.empty?
return true
end
context = context.right_siblings
context.compact.any? do |node|
render?(node)
context.compact.any? do |render_candidate|
render?(render_candidate)
end
end

View File

@ -69,7 +69,7 @@ module RuboCop
class I18nLocaleTexts < Base
MSG = 'Move locale texts to the locale files in the `config/locales` directory.'
RESTRICT_ON_SEND = %i[validates redirect_to []= mail].freeze
RESTRICT_ON_SEND = %i[validates redirect_to redirect_back []= mail].freeze
def_node_search :validation_message, <<~PATTERN
(pair (sym :message) $str)
@ -94,7 +94,7 @@ module RuboCop
add_offense(text_node)
end
return
when :redirect_to
when :redirect_to, :redirect_back
text_node = redirect_to_flash(node).to_a.last
when :[]=
text_node = flash_assignment?(node)

Some files were not shown because too many files have changed in this diff Show More