brew vendor-gems: commit updates.
This commit is contained in:
parent
9e73df4958
commit
62b3ee1dcb
@ -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/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-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-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-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/rubocop-sorbet-0.6.11/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-3.0.0/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-3.0.0/lib")
|
||||||
|
|||||||
@ -69,15 +69,15 @@ module RuboCop
|
|||||||
def followed_by_render?(flash_node)
|
def followed_by_render?(flash_node)
|
||||||
flash_assigment_node = find_ancestor(flash_node, type: :send)
|
flash_assigment_node = find_ancestor(flash_node, type: :send)
|
||||||
context = flash_assigment_node
|
context = flash_assigment_node
|
||||||
if (if_node = context.each_ancestor(:if).first)
|
if (node = context.each_ancestor(:if, :rescue).first)
|
||||||
context = if_node
|
context = node
|
||||||
elsif context.right_siblings.empty?
|
elsif context.right_siblings.empty?
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
context = context.right_siblings
|
context = context.right_siblings
|
||||||
|
|
||||||
context.compact.any? do |node|
|
context.compact.any? do |render_candidate|
|
||||||
render?(node)
|
render?(render_candidate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ module RuboCop
|
|||||||
class I18nLocaleTexts < Base
|
class I18nLocaleTexts < Base
|
||||||
MSG = 'Move locale texts to the locale files in the `config/locales` directory.'
|
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
|
def_node_search :validation_message, <<~PATTERN
|
||||||
(pair (sym :message) $str)
|
(pair (sym :message) $str)
|
||||||
@ -94,7 +94,7 @@ module RuboCop
|
|||||||
add_offense(text_node)
|
add_offense(text_node)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
when :redirect_to
|
when :redirect_to, :redirect_back
|
||||||
text_node = redirect_to_flash(node).to_a.last
|
text_node = redirect_to_flash(node).to_a.last
|
||||||
when :[]=
|
when :[]=
|
||||||
text_node = flash_assignment?(node)
|
text_node = flash_assignment?(node)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user