From 90e26b53e4c6e43201a848b51993a57fc4945cce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:47:50 +0000 Subject: [PATCH 1/3] build(deps-dev): bump rubocop-performance in /Library/Homebrew Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.20.1 to 1.20.2. - [Release notes](https://github.com/rubocop/rubocop-performance/releases) - [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.20.1...v1.20.2) --- updated-dependencies: - dependency-name: rubocop-performance dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index f4268bc276..95fb712e1c 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -113,7 +113,7 @@ GEM rubocop (~> 1.41) rubocop-factory_bot (2.25.1) rubocop (~> 1.41) - rubocop-performance (1.20.1) + rubocop-performance (1.20.2) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) rubocop-rails (2.23.1) @@ -181,8 +181,6 @@ GEM zeitwerk (2.6.12) PLATFORMS - aarch64-linux - arm-linux arm64-darwin x86_64-darwin x86_64-linux From 8aef4dc68fe4dbf75fa6c2b8d6b3982b793b6028 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:50:49 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- Library/Homebrew/Gemfile.lock | 2 ++ Library/Homebrew/vendor/bundle/bundler/setup.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 95fb712e1c..ab06c8ad8f 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -181,6 +181,8 @@ GEM zeitwerk (2.6.12) PLATFORMS + aarch64-linux + arm-linux arm64-darwin x86_64-darwin x86_64-linux diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index f1fa519a94..a2ee38acb9 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -101,7 +101,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.59.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-capybara-2.20.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-factory_bot-2.25.1/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.20.1/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.20.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.23.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.25.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.7.6/lib") From 2c013ad3613fde0da4000df5c689106794352917 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:54:30 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop-performance. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- ...0.1.rbi => rubocop-performance@1.20.2.rbi} | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-performance@1.20.1.rbi => rubocop-performance@1.20.2.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi index bec1117b9f..3ac231fe54 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi @@ -2708,50 +2708,63 @@ RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # send('do_something') # attr_accessor 'do_something' # instance_variable_get('@ivar') -# const_get("string_#{interpolation}") +# respond_to?("string_#{interpolation}") # # # good # send(:do_something) # attr_accessor :do_something # instance_variable_get(:@ivar) -# const_get(:"string_#{interpolation}") +# respond_to?(:"string_#{interpolation}") # -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#27 +# # good - these methods don't support namespaced symbols +# const_get("#{module_path}::Base") +# const_source_location("#{module_path}::Base") +# const_defined?("#{module_path}::Base") +# +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#33 class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#56 + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#64 def on_send(node); end private - # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#93 + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#105 def argument_replacement(node, value); end - # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#83 + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#95 def register_offense(argument, argument_value); end - # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#69 + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#89 + def string_argument_compatible?(argument, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#77 def string_arguments(node); end end -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#32 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#38 RuboCop::Cop::Performance::StringIdentifierArgument::COMMAND_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#30 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#43 +RuboCop::Cop::Performance::StringIdentifierArgument::INTERPOLATION_IGNORE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#36 RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#38 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#46 RuboCop::Cop::Performance::StringIdentifierArgument::MULTIPLE_ARGUMENTS_METHODS = T.let(T.unsafe(nil), Array) # NOTE: `attr` method is not included in this list as it can cause false positives in Nokogiri API. # And `attr` may not be used because `Style/Attr` registers an offense. # https://github.com/rubocop/rubocop-performance/issues/278 # -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#46 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#54 RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#37 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#45 RuboCop::Cop::Performance::StringIdentifierArgument::TWO_ARGUMENTS_METHOD = T.let(T.unsafe(nil), Symbol) # Identifies unnecessary use of a regex where `String#include?` would suffice.