From e07c50f8268f2691c784928e4734c2f19046ad06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:25:54 +0000 Subject: [PATCH 1/3] build(deps-dev): bump rubocop-capybara in /Library/Homebrew Bumps [rubocop-capybara](https://github.com/rubocop/rubocop-capybara) from 2.19.0 to 2.20.0. - [Release notes](https://github.com/rubocop/rubocop-capybara/releases) - [Changelog](https://github.com/rubocop/rubocop-capybara/blob/main/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-capybara/compare/v2.19.0...v2.20.0) --- updated-dependencies: - dependency-name: rubocop-capybara dependency-type: indirect update-type: version-update:semver-minor ... 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 f604f7c004..1c8de10746 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -109,7 +109,7 @@ GEM unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-capybara (2.19.0) + rubocop-capybara (2.20.0) rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) @@ -181,8 +181,6 @@ GEM zeitwerk (2.6.12) PLATFORMS - aarch64-linux - arm-linux arm64-darwin x86_64-darwin x86_64-linux From 586cd922941e3c5cecc25a20cfcfb1d4f6b0f32c Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:28:52 +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 1c8de10746..c7044bd23c 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 3b1191e335..4090f02dc4 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -99,7 +99,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.5.0/lib") $:.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.19.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.24.0/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-rails-2.23.1/lib") From 106f68187aba69c5b6b6a0477e1d45059d172d10 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:34:54 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop-capybara. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- ...2.19.0.rbi => rubocop-capybara@2.20.0.rbi} | 212 ++++++++++++------ .../sorbet/rbi/hidden-definitions/hidden.rbi | 1 + 2 files changed, 148 insertions(+), 65 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-capybara@2.19.0.rbi => rubocop-capybara@2.20.0.rbi} (91%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi similarity index 91% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi index a670221330..58bd00f91a 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi @@ -195,17 +195,16 @@ RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_OPTIONS = T.let(T.unsafe(nil), Ha # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#35 RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_PSEUDO_CLASSES = T.let(T.unsafe(nil), Array) -# Checks for click button or link style. +# Checks for methods of button or link clicks. # -# @example EnforcedStyle: strict (default) -# # bad -# click_link_or_button('foo') -# click_on('foo') +# By default, prefer to use `click_link_or_button` or `click_on`. +# These methods offer a weaker coupling between the test and HTML, +# allowing for a more faithful reflection of how the user behaves. # -# # good -# click_link('foo') -# click_button('foo') -# @example EnforcedStyle: link_or_button +# You can set `EnforcedStyle: strict` to prefer the use of +# `click_link` and `click_button`, but this is a deprecated setting. +# +# @example EnforcedStyle: link_or_button (default) # # bad # click_link('foo') # click_button('foo') @@ -213,50 +212,101 @@ RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_PSEUDO_CLASSES = T.let(T.unsafe(n # # good # click_link_or_button('foo') # click_on('foo') +# @example EnforcedStyle: strict +# # bad +# click_link_or_button('foo') +# click_on('foo') # -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#26 +# # good +# click_link('foo') +# click_button('foo') +# +# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#33 class RuboCop::Cop::Capybara::ClickLinkOrButtonStyle < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#37 + # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#44 def on_send(node); end private # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#62 + # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#69 def link_or_button_method?(node); end # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#45 + # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#52 def offense?(node); end - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#50 + # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#57 def offense_message(node); end # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#58 + # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#65 def strict_method?(node); end end -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#34 +# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#41 RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::CLICK_LINK_OR_BUTTON = T.let(T.unsafe(nil), Array) -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#31 +# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#38 RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::MSG_CLICK_LINK_OR_BUTTON = T.let(T.unsafe(nil), String) -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#29 +# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#36 RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::MSG_STRICT = T.let(T.unsafe(nil), String) -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#35 +# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#42 RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#33 +# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#40 RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::STRICT_METHODS = T.let(T.unsafe(nil), Array) +# Css selector parser. +# +# @api private +# +# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#8 +class RuboCop::Cop::Capybara::CssAttributesParser + # @api private + # @return [CssAttributesParser] a new instance of CssAttributesParser + # + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#9 + def initialize(selector); end + + # @api private + # @return [Array] + # + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#18 + def parse; end + + private + + # @api private + # @example + # normalize_value('true') # => true + # normalize_value('false') # => false + # normalize_value(nil) # => nil + # normalize_value("foo") # => "'foo'" + # @param value [String] + # @return [Boolean, String] + # + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#61 + def normalize_value(value); end + + # @api private + # + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#42 + def on_bracket_end; end + + # @api private + # + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#33 + def on_bracket_start; end +end + # Helps parsing css selector. # # @api private @@ -280,10 +330,11 @@ module RuboCop::Cop::Capybara::CssSelector # attributes('a[foo-bar_baz]') # => {"foo-bar_baz=>nil} # attributes('button[foo][bar=baz]') # => {"foo"=>nil, "bar"=>"'baz'"} # attributes('table[foo=bar]') # => {"foo"=>"'bar'"} + # attributes('[foo="bar[baz][qux]"]') # => {"foo"=>"'bar[baz][qux]'"} # @param selector [String] # @return [Array] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#58 + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#59 def attributes(selector); end # @api private @@ -326,21 +377,9 @@ module RuboCop::Cop::Capybara::CssSelector # @param selector [String] # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#88 + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#82 def multiple_selectors?(selector); end - # @api private - # @example - # normalize_value('true') # => true - # normalize_value('false') # => false - # normalize_value(nil) # => nil - # normalize_value("foo") # => "'foo'" - # @param value [String] - # @return [Boolean, String] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#100 - def normalize_value(value); end - # @api private # @example # pseudo_classes('button:not([disabled])') # => ['not()'] @@ -348,7 +387,7 @@ module RuboCop::Cop::Capybara::CssSelector # @param selector [String] # @return [Array] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#74 + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#68 def pseudo_classes(selector); end class << self @@ -367,10 +406,11 @@ module RuboCop::Cop::Capybara::CssSelector # attributes('a[foo-bar_baz]') # => {"foo-bar_baz=>nil} # attributes('button[foo][bar=baz]') # => {"foo"=>nil, "bar"=>"'baz'"} # attributes('table[foo=bar]') # => {"foo"=>"'bar'"} + # attributes('[foo="bar[baz][qux]"]') # => {"foo"=>"'bar[baz][qux]'"} # @param selector [String] # @return [Array] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#58 + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#59 def attributes(selector); end # @api private @@ -413,21 +453,9 @@ module RuboCop::Cop::Capybara::CssSelector # @param selector [String] # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#88 + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#82 def multiple_selectors?(selector); end - # @api private - # @example - # normalize_value('true') # => true - # normalize_value('false') # => false - # normalize_value(nil) # => nil - # normalize_value("foo") # => "'foo'" - # @param value [String] - # @return [Boolean, String] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#100 - def normalize_value(value); end - # @api private # @example # pseudo_classes('button:not([disabled])') # => ['not()'] @@ -435,7 +463,7 @@ module RuboCop::Cop::Capybara::CssSelector # @param selector [String] # @return [Array] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#74 + # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#68 def pseudo_classes(selector); end end end @@ -571,15 +599,7 @@ RuboCop::Cop::Capybara::MatchStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # Enforces use of `have_no_*` or `not_to` for negated expectations. # -# @example EnforcedStyle: not_to (default) -# # bad -# expect(page).to have_no_selector -# expect(page).to have_no_css('a') -# -# # good -# expect(page).not_to have_selector -# expect(page).not_to have_css('a') -# @example EnforcedStyle: have_no +# @example EnforcedStyle: have_no (default) # # bad # expect(page).not_to have_selector # expect(page).not_to have_css('a') @@ -587,6 +607,14 @@ RuboCop::Cop::Capybara::MatchStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # good # expect(page).to have_no_selector # expect(page).to have_no_css('a') +# @example EnforcedStyle: not_to +# # bad +# expect(page).to have_no_selector +# expect(page).to have_no_css('a') +# +# # good +# expect(page).not_to have_selector +# expect(page).not_to have_css('a') # # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#26 class RuboCop::Cop::Capybara::NegationMatcher < ::RuboCop::Cop::Base @@ -872,6 +900,57 @@ end # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#244 RuboCop::Cop::Capybara::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for redundant `within find(...)` calls. +# +# @example +# # bad +# within find('foo.bar') do +# # ... +# end +# +# # good +# within 'foo.bar' do +# # ... +# end +# +# # bad +# within find_by_id('foo') do +# # ... +# end +# +# # good +# within '#foo' do +# # ... +# end +# +# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#29 +class RuboCop::Cop::Capybara::RedundantWithinFind < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#41 + def on_send(node); end + + # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#36 + def within_find(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#51 + def msg(node); end + + # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#55 + def replaced(node); end +end + +# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#33 +RuboCop::Cop::Capybara::RedundantWithinFind::FIND_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#31 +RuboCop::Cop::Capybara::RedundantWithinFind::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#32 +RuboCop::Cop::Capybara::RedundantWithinFind::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for there is a more specific actions offered by Capybara. # # @example @@ -1037,28 +1116,31 @@ class RuboCop::Cop::Capybara::SpecificMatcher < ::RuboCop::Cop::Base # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#41 def first_argument(param0 = T.unsafe(nil)); end - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#45 + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#50 def on_send(node); end + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#46 + def text_with_regexp?(param0); end + private - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#80 + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#86 def good_matcher(node, matcher); end - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#74 + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#80 def message(node, matcher); end # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#62 + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#67 def replaceable?(node, arg, matcher); end # @return [Boolean] # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#68 + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#74 def replaceable_attributes?(selector); end - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#57 + # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#62 def specific_matcher(arg); end end diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index ef8845dfb8..bb89632607 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -9076,6 +9076,7 @@ module RuboCop::AST::NodePattern::Sets SET_ON_INTEL_ON_ARM = ::T.let(nil, ::T.untyped) SET_OR_NEWER_OR_OLDER = ::T.let(nil, ::T.untyped) SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped) + SET_TEXT_EXACT_TEXT = ::T.let(nil, ::T.untyped) SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped) SET____ETC_5 = ::T.let(nil, ::T.untyped) end