From e961c8c4eb915ed28a91c52ae59d100f28f1a87d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:21:41 +0000 Subject: [PATCH 1/3] build(deps-dev): bump rubocop-rspec in /Library/Homebrew Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/rubocop/rubocop-rspec/releases) - [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: rubocop-rspec dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index fdb67a369f03e..c993430046542 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -89,7 +89,7 @@ GEM rubocop-performance (1.22.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rspec (3.1.0) + rubocop-rspec (3.2.0) rubocop (~> 1.61) rubocop-sorbet (0.8.6) rubocop (>= 1) From 6f9ad46720a65cd75a58fae23b48b6adc9fb46f9 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 28 Oct 2024 19:56:26 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- Library/Homebrew/Gemfile.lock | 1 + Library/Homebrew/vendor/bundle/bundler/setup.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index c993430046542..2665fae53f8cf 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -146,6 +146,7 @@ GEM 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 bba1d383b268c..f319d53b3d180 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -47,8 +47,8 @@ def self.extension_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/elftools-1.3.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/erubi-1.13.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/hana-1.3.7/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/json-2.7.3") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/json-2.7.3/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/json-2.7.4") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/json-2.7.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/regexp_parser-2.9.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simpleidn-0.2.3/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/json_schemer-2.3.0/lib") @@ -91,7 +91,7 @@ def self.extension_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.67.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.22.1/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.1.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.2.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.8.6/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-lsp-0.20.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-4.1.0/lib") From 075fc0f6ad7cbe6c4e29a58d0f2f667c8c0651ac Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 28 Oct 2024 19:56:35 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop-rspec. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- ...spec@3.1.0.rbi => rubocop-rspec@3.2.0.rbi} | 69 +++++++++++-------- 1 file changed, 39 insertions(+), 30 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rspec@3.1.0.rbi => rubocop-rspec@3.2.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.1.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.2.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.1.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.2.0.rbi index 5219e8f1f2be5..e21b66846f1cb 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.1.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@3.2.0.rbi @@ -489,10 +489,10 @@ class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#133 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#134 def autocorrect(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#141 def autocorrect_compound(corrector, node); end # @return [Boolean] @@ -500,28 +500,28 @@ class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#120 def compound_expectations?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#150 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#151 def insert_operator(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#124 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#125 def message(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#128 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#129 def message_compound(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#174 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#175 def negated_matcher; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#178 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#179 def preferred_method; end # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#105 def register_offense(node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#163 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#164 def remove_by_zero(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#159 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#160 def replace_node(node, change_node); end end @@ -713,6 +713,9 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # include `if`, `unless`, `for`, `before`, `after`, or `during`. # They may consist of multiple words if desired. # +# If both `Prefixes` and `AllowedPatterns` are empty, this cop will always +# report an offense. So you need to set at least one of them. +# # This cop can be customized allowed context description pattern # with `AllowedPatterns`. By default, there are no checking by pattern. # @@ -754,41 +757,42 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # end # @see http://www.betterspecs.org/#contexts # -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#58 +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#61 class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::AllowedPattern - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#64 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#69 def context_wording(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#73 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#79 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#83 def allowed_patterns; end - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#87 - def bad_pattern?(node); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#93 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#91 def description(context); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#101 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#107 def expect_patterns; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#83 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#99 + def message; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#87 def prefix_regexes; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#117 def prefixes; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#61 -RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#65 +RuboCop::Cop::RSpec::ContextWording::MSG_ALWAYS = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#64 +RuboCop::Cop::RSpec::ContextWording::MSG_MATCH = T.let(T.unsafe(nil), String) # Check that the first argument to the top-level describe is a constant. # @@ -4010,7 +4014,7 @@ class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop/1.66.1/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.67.0/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#93 @@ -4125,7 +4129,7 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Variable - # source://rubocop/1.66.1/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.67.0/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 @@ -4467,7 +4471,7 @@ end class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop/1.66.1/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.67.0/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#107 @@ -6958,7 +6962,7 @@ class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#26 def expect_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#37 def on_block(node); end # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#30 @@ -6966,12 +6970,17 @@ class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#46 def check_expect(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#50 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#59 + def inside_example?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#52 def void?(expect); end end