From c37601f585e7a4da0bb7507a1e803eeac6bcb8df Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 19 Nov 2022 23:03:23 +0000 Subject: [PATCH 01/33] dev-cmd/bump-{cask,formula}-pr: `args.message` is before the default - I was wondering why `brew bump` PRs have descriptions with both commands, like: ``` Created with `brew bump`. --- Created by `brew bump-formula-pr`. ``` - Then I read the code and realised that "append" was the wrong word for the `--message` arg description. --- Library/Homebrew/dev-cmd/bump-cask-pr.rb | 2 +- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index 0cd05870e3..0d433dba23 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -41,7 +41,7 @@ module Homebrew flag "--version=", description: "Specify the new for the cask." flag "--message=", - description: "Append to the default pull request message." + description: "Prepend to the default pull request message." flag "--url=", description: "Specify the for the new download." flag "--sha256=", diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index e9f87bc454..c713bcdd44 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -60,7 +60,7 @@ module Homebrew "that `--version=0` can be used to delete an existing version override from a " \ "formula if it has become redundant." flag "--message=", - description: "Append to the default pull request message." + description: "Prepend to the default pull request message." flag "--url=", description: "Specify the for the new download. If a is specified, the " \ "checksum of the new download should also be specified." From 70553455b83484a95dd27d9e31c0d5722f2b7e97 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 10 Nov 2022 23:48:05 +0000 Subject: [PATCH 02/33] rubocop_todo: `dependency.rb` no longer has empty blocks --- Library/Homebrew/.rubocop_todo.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/.rubocop_todo.yml b/Library/Homebrew/.rubocop_todo.yml index 249ddfbd94..71ae61f19e 100644 --- a/Library/Homebrew/.rubocop_todo.yml +++ b/Library/Homebrew/.rubocop_todo.yml @@ -27,7 +27,6 @@ Style/Documentation: Lint/EmptyBlock: Exclude: - - "dependency.rb" - "dev-cmd/extract.rb" - "test/cache_store_spec.rb" - "test/checksum_verification_spec.rb" From 5beebf2238aa4d6941e8e075751761c240184cad Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 10 Nov 2022 23:51:52 +0000 Subject: [PATCH 03/33] rubocop_todo: Clean up file paths that no longer exist --- Library/Homebrew/.rubocop_todo.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Library/Homebrew/.rubocop_todo.yml b/Library/Homebrew/.rubocop_todo.yml index 71ae61f19e..bcb1247506 100644 --- a/Library/Homebrew/.rubocop_todo.yml +++ b/Library/Homebrew/.rubocop_todo.yml @@ -11,8 +11,6 @@ Style/Documentation: - "default_prefix.rb" - "global.rb" - "keg_relocate.rb" - - "os/linux/global.rb" - - "os/mac/global.rb" - "os/mac/keg.rb" - "reinstall.rb" - "software_spec.rb" From 9013ca2a226e54722d8e55b0281f9689aedff30e Mon Sep 17 00:00:00 2001 From: Ian Gregory Date: Sun, 20 Nov 2022 16:22:18 -0500 Subject: [PATCH 04/33] Prevent `brew casks` from finding formulae at tap root --- Library/Homebrew/cmd/casks.sh | 2 +- Library/Homebrew/cmd/formulae.sh | 2 +- Library/Homebrew/items.sh | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/cmd/casks.sh b/Library/Homebrew/cmd/casks.sh index aa3a75cf2b..b39285b1de 100644 --- a/Library/Homebrew/cmd/casks.sh +++ b/Library/Homebrew/cmd/casks.sh @@ -8,5 +8,5 @@ source "${HOMEBREW_LIBRARY}/Homebrew/items.sh" homebrew-casks() { - homebrew-items 'Formula' 's|/Casks/|/|' '^homebrew/cask' + homebrew-items '*/Casks/*\.rb' '' 's|/Casks/|/|' '^homebrew/cask' } diff --git a/Library/Homebrew/cmd/formulae.sh b/Library/Homebrew/cmd/formulae.sh index ccf04ea076..649af45c9e 100644 --- a/Library/Homebrew/cmd/formulae.sh +++ b/Library/Homebrew/cmd/formulae.sh @@ -8,5 +8,5 @@ source "${HOMEBREW_LIBRARY}/Homebrew/items.sh" homebrew-formulae() { - homebrew-items 'Casks' 's|/Formula/|/|' '^homebrew/core' + homebrew-items '*\.rb' 'Casks' 's|/Formula/|/|' '^homebrew/core' } diff --git a/Library/Homebrew/items.sh b/Library/Homebrew/items.sh index 838ef5f6e2..4a65589731 100644 --- a/Library/Homebrew/items.sh +++ b/Library/Homebrew/items.sh @@ -1,9 +1,10 @@ homebrew-items() { local items local sed_extended_regex_flag - local find_filter="$1" - local sed_filter="$2" - local grep_filter="$3" + local find_include_filter="$1" + local find_exclude_filter="$2" + local sed_filter="$3" + local grep_filter="$4" # HOMEBREW_MACOS is set by brew.sh # shellcheck disable=SC2154 @@ -19,14 +20,14 @@ homebrew-items() { items="$( find "${HOMEBREW_REPOSITORY}/Library/Taps" \ -type d \( \ - -name "${find_filter}" -o \ + -name "${find_exclude_filter}" -o \ -name cmd -o \ -name .github -o \ -name lib -o \ -name spec -o \ -name vendor \ \) \ - -prune -false -o -name '*\.rb' | + -prune -false -o -path "${find_include_filter}" | sed "${sed_extended_regex_flag}" \ -e 's/\.rb//g' \ -e 's_.*/Taps/(.*)/(home|linux)brew-_\1/_' \ From 59f372a776f63e4430d0b66e05b5063d08b2d717 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 21 Nov 2022 14:31:02 +0000 Subject: [PATCH 05/33] Update manpage and completions. Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow. --- completions/fish/brew.fish | 4 ++-- completions/zsh/_brew | 4 ++-- docs/Manpage.md | 4 ++-- manpages/brew.1 | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 66d8e5fbba..39fb714946 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -408,7 +408,7 @@ __fish_brew_complete_arg 'bump-cask-pr' -l dry-run -d 'Print what would be done __fish_brew_complete_arg 'bump-cask-pr' -l force -d 'Ignore duplicate open PRs' __fish_brew_complete_arg 'bump-cask-pr' -l fork-org -d 'Use the specified GitHub organization for forking' __fish_brew_complete_arg 'bump-cask-pr' -l help -d 'Show this message' -__fish_brew_complete_arg 'bump-cask-pr' -l message -d 'Append message to the default pull request message' +__fish_brew_complete_arg 'bump-cask-pr' -l message -d 'Prepend message to the default pull request message' __fish_brew_complete_arg 'bump-cask-pr' -l no-audit -d 'Don\'t run `brew audit` before opening the PR' __fish_brew_complete_arg 'bump-cask-pr' -l no-browse -d 'Print the pull request URL instead of opening in a browser' __fish_brew_complete_arg 'bump-cask-pr' -l no-fork -d 'Don\'t try to fork the repository' @@ -430,7 +430,7 @@ __fish_brew_complete_arg 'bump-formula-pr' -l dry-run -d 'Print what would be do __fish_brew_complete_arg 'bump-formula-pr' -l force -d 'Ignore duplicate open PRs. Remove all mirrors if `--mirror` was not specified' __fish_brew_complete_arg 'bump-formula-pr' -l fork-org -d 'Use the specified GitHub organization for forking' __fish_brew_complete_arg 'bump-formula-pr' -l help -d 'Show this message' -__fish_brew_complete_arg 'bump-formula-pr' -l message -d 'Append message to the default pull request message' +__fish_brew_complete_arg 'bump-formula-pr' -l message -d 'Prepend message to the default pull request message' __fish_brew_complete_arg 'bump-formula-pr' -l mirror -d 'Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added' __fish_brew_complete_arg 'bump-formula-pr' -l no-audit -d 'Don\'t run `brew audit` before opening the PR' __fish_brew_complete_arg 'bump-formula-pr' -l no-browse -d 'Print the pull request URL instead of opening in a browser' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 2094818fd9..0ae301c17b 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -506,7 +506,7 @@ _brew_bump_cask_pr() { '--force[Ignore duplicate open PRs]' \ '--fork-org[Use the specified GitHub organization for forking]' \ '--help[Show this message]' \ - '--message[Append message to the default pull request message]' \ + '--message[Prepend message to the default pull request message]' \ '(--online)--no-audit[Don'\''t run `brew audit` before opening the PR]' \ '--no-browse[Print the pull request URL instead of opening in a browser]' \ '--no-fork[Don'\''t try to fork the repository]' \ @@ -531,7 +531,7 @@ _brew_bump_formula_pr() { '--force[Ignore duplicate open PRs. Remove all mirrors if `--mirror` was not specified]' \ '--fork-org[Use the specified GitHub organization for forking]' \ '--help[Show this message]' \ - '--message[Append message to the default pull request message]' \ + '--message[Prepend message to the default pull request message]' \ '--mirror[Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added]' \ '(--strict --online)--no-audit[Don'\''t run `brew audit` before opening the PR]' \ '--no-browse[Print the pull request URL instead of opening in a browser]' \ diff --git a/docs/Manpage.md b/docs/Manpage.md index da7421b042..17a564e242 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -1004,7 +1004,7 @@ supplied by the user. * `--version`: Specify the new *`version`* for the cask. * `--message`: - Append *`message`* to the default pull request message. + Prepend *`message`* to the default pull request message. * `--url`: Specify the *`URL`* for the new download. * `--sha256`: @@ -1056,7 +1056,7 @@ nor vice versa. It must use whichever style specification the formula already us * `--version`: Use the specified *`version`* to override the value parsed from the URL or tag. Note that `--version=0` can be used to delete an existing version override from a formula if it has become redundant. * `--message`: - Append *`message`* to the default pull request message. + Prepend *`message`* to the default pull request message. * `--url`: Specify the *`URL`* for the new download. If a *`URL`* is specified, the *`SHA-256`* checksum of the new download should also be specified. * `--sha256`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 7212127819..79a11c3537 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -1437,7 +1437,7 @@ Specify the new \fIversion\fR for the cask\. . .TP \fB\-\-message\fR -Append \fImessage\fR to the default pull request message\. +Prepend \fImessage\fR to the default pull request message\. . .TP \fB\-\-url\fR @@ -1516,7 +1516,7 @@ Use the specified \fIversion\fR to override the value parsed from the URL or tag . .TP \fB\-\-message\fR -Append \fImessage\fR to the default pull request message\. +Prepend \fImessage\fR to the default pull request message\. . .TP \fB\-\-url\fR From fd1ebc4e8932add96cca47656816f65592a0d305 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:05:14 +0000 Subject: [PATCH 06/33] build(deps): bump rubocop-rails in /Library/Homebrew Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.17.2 to 2.17.3. - [Release notes](https://github.com/rubocop/rubocop-rails/releases) - [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.17.2...v2.17.3) --- updated-dependencies: - dependency-name: rubocop-rails dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index c10871b034..476cb60fec 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -92,7 +92,7 @@ GEM method_source (~> 1.0) public_suffix (5.0.0) racc (1.6.0) - rack (3.0.0) + rack (3.0.1) rainbow (3.1.1) rbi (0.0.14) ast @@ -147,7 +147,7 @@ GEM rubocop-performance (1.15.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.17.2) + rubocop-rails (2.17.3) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) From 400ecadbc9d51f8cbf40c6e02439394d547ddb1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:05:40 +0000 Subject: [PATCH 07/33] build(deps): bump rack from 3.0.0 to 3.0.1 in /Library/Homebrew Bumps [rack](https://github.com/rack/rack) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/rack/rack/releases) - [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md) - [Commits](https://github.com/rack/rack/compare/3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: rack dependency-type: indirect update-type: version-update:semver-patch ... 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 c10871b034..35d238c00a 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -92,7 +92,7 @@ GEM method_source (~> 1.0) public_suffix (5.0.0) racc (1.6.0) - rack (3.0.0) + rack (3.0.1) rainbow (3.1.1) rbi (0.0.14) ast From e1bf39a18051da8631dd8fc7c590bc09f7ea2bb6 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:09:07 +0000 Subject: [PATCH 08/33] brew vendor-gems: commit updates. --- .../Homebrew/vendor/bundle/bundler/setup.rb | 4 +- .../{rack-3.0.0 => rack-3.0.1}/lib/rack.rb | 0 .../lib/rack/auth/abstract/handler.rb | 0 .../lib/rack/auth/abstract/request.rb | 0 .../lib/rack/auth/basic.rb | 0 .../lib/rack/auth/digest.rb | 0 .../lib/rack/auth/digest/md5.rb | 0 .../lib/rack/auth/digest/nonce.rb | 0 .../lib/rack/auth/digest/params.rb | 0 .../lib/rack/auth/digest/request.rb | 0 .../lib/rack/body_proxy.rb | 0 .../lib/rack/builder.rb | 0 .../lib/rack/cascade.rb | 0 .../lib/rack/chunked.rb | 0 .../lib/rack/common_logger.rb | 0 .../lib/rack/conditional_get.rb | 0 .../lib/rack/config.rb | 0 .../lib/rack/constants.rb | 0 .../lib/rack/content_length.rb | 0 .../lib/rack/content_type.rb | 0 .../lib/rack/deflater.rb | 0 .../lib/rack/directory.rb | 0 .../lib/rack/etag.rb | 0 .../lib/rack/events.rb | 0 .../lib/rack/file.rb | 0 .../lib/rack/files.rb | 0 .../lib/rack/head.rb | 0 .../lib/rack/headers.rb | 0 .../lib/rack/lint.rb | 8 +- .../lib/rack/lock.rb | 0 .../lib/rack/logger.rb | 0 .../lib/rack/media_type.rb | 0 .../lib/rack/method_override.rb | 2 +- .../lib/rack/mime.rb | 0 .../lib/rack/mock.rb | 0 .../lib/rack/mock_request.rb | 0 .../lib/rack/mock_response.rb | 0 .../lib/rack/multipart.rb | 0 .../lib/rack/multipart/generator.rb | 0 .../lib/rack/multipart/parser.rb | 0 .../lib/rack/multipart/uploaded_file.rb | 0 .../lib/rack/null_logger.rb | 0 .../lib/rack/query_parser.rb | 0 .../lib/rack/recursive.rb | 0 .../lib/rack/reloader.rb | 0 .../lib/rack/request.rb | 0 .../lib/rack/response.rb | 0 .../lib/rack/rewindable_input.rb | 0 .../lib/rack/runtime.rb | 0 .../lib/rack/sendfile.rb | 0 .../lib/rack/show_exceptions.rb | 0 .../lib/rack/show_status.rb | 0 .../lib/rack/static.rb | 0 .../lib/rack/tempfile_reaper.rb | 0 .../lib/rack/urlmap.rb | 0 .../lib/rack/utils.rb | 0 .../lib/rack/version.rb | 2 +- .../rubocop/cop/rails/to_s_with_argument.rb | 41 ---------- .../config/default.yml | 2 +- .../config/obsoletion.yml | 0 .../lib/rubocop-rails.rb | 0 .../rubocop/cop/mixin/active_record_helper.rb | 4 +- .../mixin/active_record_migrations_helper.rb | 0 .../cop/mixin/class_send_node_helper.rb | 0 .../rubocop/cop/mixin/enforce_superclass.rb | 0 .../lib/rubocop/cop/mixin/index_method.rb | 2 +- .../rubocop/cop/mixin/migrations_helper.rb | 2 +- .../rubocop/cop/mixin/target_rails_version.rb | 0 .../action_controller_flash_before_render.rb | 11 ++- .../cop/rails/action_controller_test_case.rb | 2 +- .../lib/rubocop/cop/rails/action_filter.rb | 0 .../lib/rubocop/cop/rails/action_order.rb | 42 +++++++++- .../cop/rails/active_record_aliases.rb | 0 .../rails/active_record_callbacks_order.rb | 0 .../cop/rails/active_record_override.rb | 0 .../cop/rails/active_support_aliases.rb | 0 .../cop/rails/active_support_on_load.rb | 0 .../lib/rubocop/cop/rails/add_column_index.rb | 0 .../cop/rails/after_commit_override.rb | 0 .../cop/rails/application_controller.rb | 2 +- .../lib/rubocop/cop/rails/application_job.rb | 2 +- .../rubocop/cop/rails/application_mailer.rb | 2 +- .../rubocop/cop/rails/application_record.rb | 2 +- .../lib/rubocop/cop/rails/arel_star.rb | 0 .../lib/rubocop/cop/rails/assert_not.rb | 0 .../rails/attribute_default_block_value.rb | 0 .../lib/rubocop/cop/rails/belongs_to.rb | 0 .../lib/rubocop/cop/rails/blank.rb | 0 .../rubocop/cop/rails/bulk_change_table.rb | 0 .../lib/rubocop/cop/rails/compact_blank.rb | 0 .../lib/rubocop/cop/rails/content_tag.rb | 2 +- .../cop/rails/create_table_with_timestamps.rb | 0 .../lib/rubocop/cop/rails/date.rb | 0 .../lib/rubocop/cop/rails/default_scope.rb | 0 .../lib/rubocop/cop/rails/delegate.rb | 0 .../rubocop/cop/rails/delegate_allow_blank.rb | 0 .../deprecated_active_model_errors_methods.rb | 0 .../rubocop/cop/rails/dot_separated_keys.rb | 2 +- .../cop/rails/duplicate_association.rb | 0 .../lib/rubocop/cop/rails/duplicate_scope.rb | 0 .../rubocop/cop/rails/duration_arithmetic.rb | 4 +- .../lib/rubocop/cop/rails/dynamic_find_by.rb | 22 ++++-- .../cop/rails/eager_evaluation_log_message.rb | 0 .../lib/rubocop/cop/rails/enum_hash.rb | 0 .../lib/rubocop/cop/rails/enum_uniqueness.rb | 0 .../cop/rails/environment_comparison.rb | 0 .../cop/rails/environment_variable_access.rb | 0 .../lib/rubocop/cop/rails/exit.rb | 0 .../rubocop/cop/rails/expanded_date_range.rb | 0 .../lib/rubocop/cop/rails/file_path.rb | 6 +- .../lib/rubocop/cop/rails/find_by.rb | 0 .../lib/rubocop/cop/rails/find_by_id.rb | 0 .../lib/rubocop/cop/rails/find_each.rb | 0 .../lib/rubocop/cop/rails/freeze_time.rb | 12 +-- .../cop/rails/has_and_belongs_to_many.rb | 0 .../rails/has_many_or_has_one_dependent.rb | 2 +- .../cop/rails/helper_instance_variable.rb | 2 +- .../cop/rails/http_positional_arguments.rb | 0 .../lib/rubocop/cop/rails/http_status.rb | 0 .../lib/rubocop/cop/rails/i18n_lazy_lookup.rb | 2 + .../cop/rails/i18n_locale_assignment.rb | 0 .../rubocop/cop/rails/i18n_locale_texts.rb | 0 .../cop/rails/ignored_columns_assignment.rb | 0 .../ignored_skip_action_filter_option.rb | 0 .../lib/rubocop/cop/rails/index_by.rb | 2 +- .../lib/rubocop/cop/rails/index_with.rb | 2 +- .../lib/rubocop/cop/rails/inquiry.rb | 0 .../lib/rubocop/cop/rails/inverse_of.rb | 0 .../rails/lexically_scoped_action_filter.rb | 0 .../lib/rubocop/cop/rails/link_to_blank.rb | 0 .../lib/rubocop/cop/rails/mailer_name.rb | 6 +- .../lib/rubocop/cop/rails/match_route.rb | 0 .../rubocop/cop/rails/migration_class_name.rb | 2 +- .../lib/rubocop/cop/rails/negate_include.rb | 0 .../lib/rubocop/cop/rails/not_null_column.rb | 0 .../lib/rubocop/cop/rails/order_by_id.rb | 0 .../lib/rubocop/cop/rails/output.rb | 2 +- .../lib/rubocop/cop/rails/output_safety.rb | 0 .../lib/rubocop/cop/rails/pick.rb | 0 .../lib/rubocop/cop/rails/pluck.rb | 0 .../lib/rubocop/cop/rails/pluck_id.rb | 0 .../lib/rubocop/cop/rails/pluck_in_where.rb | 0 .../cop/rails/pluralization_grammar.rb | 0 .../lib/rubocop/cop/rails/presence.rb | 0 .../lib/rubocop/cop/rails/present.rb | 0 .../lib/rubocop/cop/rails/rake_environment.rb | 0 .../rubocop/cop/rails/read_write_attribute.rb | 0 .../rubocop/cop/rails/redundant_allow_nil.rb | 0 .../cop/rails/redundant_foreign_key.rb | 0 ...ndant_presence_validation_on_belongs_to.rb | 0 .../redundant_receiver_in_with_options.rb | 0 .../cop/rails/redundant_travel_back.rb | 0 .../cop/rails/reflection_class_name.rb | 0 .../lib/rubocop/cop/rails/refute_methods.rb | 0 .../cop/rails/relative_date_constant.rb | 0 .../lib/rubocop/cop/rails/render_inline.rb | 0 .../rubocop/cop/rails/render_plain_text.rb | 0 .../lib/rubocop/cop/rails/request_referer.rb | 0 .../rubocop/cop/rails/require_dependency.rb | 2 +- .../rubocop/cop/rails/reversible_migration.rb | 0 .../reversible_migration_method_definition.rb | 0 .../lib/rubocop/cop/rails/root_join_chain.rb | 0 .../cop/rails/root_pathname_methods.rb | 25 ++++-- .../lib/rubocop/cop/rails/root_public_path.rb | 0 .../lib/rubocop/cop/rails/safe_navigation.rb | 0 .../cop/rails/safe_navigation_with_blank.rb | 0 .../lib/rubocop/cop/rails/save_bang.rb | 0 .../lib/rubocop/cop/rails/schema_comment.rb | 0 .../lib/rubocop/cop/rails/scope_args.rb | 0 .../lib/rubocop/cop/rails/short_i18n.rb | 2 +- .../cop/rails/skips_model_validations.rb | 2 +- .../cop/rails/squished_sql_heredocs.rb | 0 .../lib/rubocop/cop/rails/strip_heredoc.rb | 0 .../cop/rails/table_name_assignment.rb | 0 .../lib/rubocop/cop/rails/time_zone.rb | 0 .../rubocop/cop/rails/time_zone_assignment.rb | 2 +- .../lib/rubocop/cop/rails/to_formatted_s.rb | 0 .../rubocop/cop/rails/to_s_with_argument.rb | 78 +++++++++++++++++++ .../top_level_hash_with_indifferent_access.rb | 0 .../cop/rails/transaction_exit_statement.rb | 0 .../rubocop/cop/rails/uniq_before_pluck.rb | 0 .../rails/unique_validation_without_index.rb | 0 .../lib/rubocop/cop/rails/unknown_env.rb | 0 .../cop/rails/unused_ignored_columns.rb | 0 .../lib/rubocop/cop/rails/validation.rb | 0 .../lib/rubocop/cop/rails/where_equals.rb | 0 .../lib/rubocop/cop/rails/where_exists.rb | 0 .../lib/rubocop/cop/rails/where_missing.rb | 0 .../lib/rubocop/cop/rails/where_not.rb | 0 .../where_not_with_multiple_conditions.rb | 0 .../lib/rubocop/cop/rails_cops.rb | 0 .../lib/rubocop/rails.rb | 0 .../lib/rubocop/rails/inject.rb | 0 .../lib/rubocop/rails/schema_loader.rb | 0 .../lib/rubocop/rails/schema_loader/schema.rb | 0 .../lib/rubocop/rails/version.rb | 2 +- 196 files changed, 209 insertions(+), 102 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/abstract/handler.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/abstract/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/basic.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/md5.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/nonce.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/params.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/body_proxy.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/builder.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/cascade.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/chunked.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/common_logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/conditional_get.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/config.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/constants.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/content_length.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/content_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/deflater.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/directory.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/etag.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/events.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/file.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/files.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/head.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/headers.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/lint.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/lock.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/media_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/method_override.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock_request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock_response.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart/generator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart/parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart/uploaded_file.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/null_logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/query_parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/recursive.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/reloader.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/response.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/rewindable_input.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/runtime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/sendfile.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/show_exceptions.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/show_status.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/static.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/tempfile_reaper.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/urlmap.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/version.rb (97%) delete mode 100644 Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/to_s_with_argument.rb rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/config/default.yml (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/config/obsoletion.yml (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop-rails.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/active_record_helper.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/active_record_migrations_helper.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/class_send_node_helper.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/enforce_superclass.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/index_method.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/migrations_helper.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/mixin/target_rails_version.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/action_controller_flash_before_render.rb (89%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/action_controller_test_case.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/action_filter.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/action_order.rb (60%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/active_record_aliases.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/active_record_callbacks_order.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/active_record_override.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/active_support_aliases.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/active_support_on_load.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/add_column_index.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/after_commit_override.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/application_controller.rb (92%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/application_job.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/application_mailer.rb (93%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/application_record.rb (93%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/arel_star.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/assert_not.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/attribute_default_block_value.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/belongs_to.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/blank.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/bulk_change_table.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/compact_blank.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/content_tag.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/create_table_with_timestamps.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/date.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/default_scope.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/delegate.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/delegate_allow_blank.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/dot_separated_keys.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/duplicate_association.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/duplicate_scope.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/duration_arithmetic.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/dynamic_find_by.rb (86%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/eager_evaluation_log_message.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/enum_hash.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/enum_uniqueness.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/environment_comparison.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/environment_variable_access.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/exit.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/expanded_date_range.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/file_path.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/find_by.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/find_by_id.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/find_each.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/freeze_time.rb (86%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/has_and_belongs_to_many.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/helper_instance_variable.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/http_positional_arguments.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/http_status.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/i18n_lazy_lookup.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/i18n_locale_assignment.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/i18n_locale_texts.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/ignored_columns_assignment.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/index_by.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/index_with.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/inquiry.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/inverse_of.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/link_to_blank.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/mailer_name.rb (92%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/match_route.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/migration_class_name.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/negate_include.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/not_null_column.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/order_by_id.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/output.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/output_safety.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/pick.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/pluck.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/pluck_id.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/pluck_in_where.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/pluralization_grammar.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/presence.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/present.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/rake_environment.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/read_write_attribute.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/redundant_allow_nil.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/redundant_foreign_key.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/redundant_travel_back.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/reflection_class_name.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/refute_methods.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/relative_date_constant.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/render_inline.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/render_plain_text.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/request_referer.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/require_dependency.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/reversible_migration.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/reversible_migration_method_definition.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/root_join_chain.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/root_pathname_methods.rb (88%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/root_public_path.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/safe_navigation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/safe_navigation_with_blank.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/save_bang.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/schema_comment.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/scope_args.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/short_i18n.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/skips_model_validations.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/squished_sql_heredocs.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/strip_heredoc.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/table_name_assignment.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/time_zone.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/time_zone_assignment.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/to_formatted_s.rb (100%) create mode 100644 Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/to_s_with_argument.rb rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/top_level_hash_with_indifferent_access.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/transaction_exit_statement.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/uniq_before_pluck.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/unique_validation_without_index.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/unknown_env.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/unused_ignored_columns.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/validation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/where_equals.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/where_exists.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/where_missing.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/where_not.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/cop/rails_cops.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/rails.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/rails/inject.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/rails/schema_loader.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/rails/schema_loader/schema.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-rails-2.17.2 => rubocop-rails-2.17.3}/lib/rubocop/rails/version.rb (90%) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 5d03dc173c..ebdb030d81 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -83,7 +83,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.6.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/pry-0.14.1/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rack-3.0.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rack-3.0.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unparser-0.6.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rbi-0.0.14/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/rdiscount-2.2.7") @@ -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.35.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.2/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-rspec-2.15.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") diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/handler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/handler.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/handler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/handler.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/basic.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/basic.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/basic.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/basic.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/md5.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/md5.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/md5.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/md5.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/nonce.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/nonce.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/nonce.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/nonce.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/params.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/params.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/params.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/params.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/body_proxy.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/body_proxy.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/body_proxy.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/body_proxy.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/builder.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/builder.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/builder.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/builder.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/cascade.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/cascade.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/cascade.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/cascade.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/chunked.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/chunked.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/chunked.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/chunked.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/common_logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/common_logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/common_logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/common_logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/conditional_get.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/conditional_get.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/conditional_get.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/conditional_get.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/config.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/config.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/config.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/config.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/constants.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/constants.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/constants.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/constants.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_length.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_length.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_length.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_length.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_type.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_type.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/deflater.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/deflater.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/deflater.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/deflater.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/directory.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/directory.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/directory.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/directory.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/etag.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/etag.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/etag.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/etag.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/events.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/events.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/events.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/events.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/file.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/file.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/file.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/file.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/files.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/files.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/files.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/files.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/head.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/head.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/head.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/head.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/headers.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/headers.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/headers.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/headers.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lint.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lint.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lint.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lint.rb index 42878879a8..75eed20869 100755 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lint.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lint.rb @@ -817,8 +817,14 @@ module Rack verify_to_path end + BODY_METHODS = {to_ary: true, each: true, call: true, to_path: true} + + def to_path + @body.to_path + end + def respond_to?(name, *) - if name == :to_ary + if BODY_METHODS.key?(name) @body.respond_to?(name) else super diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lock.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lock.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lock.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lock.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/media_type.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/media_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/media_type.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/media_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/method_override.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/method_override.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/method_override.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/method_override.rb index cf7fcf75df..61df3fc5e6 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/method_override.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/method_override.rb @@ -46,7 +46,7 @@ module Rack end def method_override_param(req) - req.POST[METHOD_OVERRIDE_PARAM_KEY] + req.POST[METHOD_OVERRIDE_PARAM_KEY] if req.form_data? || req.parseable_data? rescue Utils::InvalidParameterError, Utils::ParameterTypeError req.get_header(RACK_ERRORS).puts "Invalid or incomplete POST params" rescue EOFError diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mime.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mime.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_response.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_response.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_response.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_response.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/generator.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/generator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/generator.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/generator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/uploaded_file.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/uploaded_file.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/uploaded_file.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/uploaded_file.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/null_logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/null_logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/null_logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/null_logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/query_parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/query_parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/query_parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/query_parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/recursive.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/recursive.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/recursive.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/recursive.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/reloader.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/reloader.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/reloader.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/reloader.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/response.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/response.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/response.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/response.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/rewindable_input.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/rewindable_input.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/rewindable_input.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/rewindable_input.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/runtime.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/runtime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/runtime.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/runtime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/sendfile.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/sendfile.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/sendfile.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/sendfile.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_exceptions.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_exceptions.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_exceptions.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_exceptions.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_status.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_status.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_status.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_status.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/static.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/static.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/static.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/static.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/tempfile_reaper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/tempfile_reaper.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/tempfile_reaper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/tempfile_reaper.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/urlmap.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/urlmap.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/urlmap.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/urlmap.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/utils.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/utils.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/version.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/version.rb index 782eb98114..cd73e2e1e0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/version.rb @@ -25,7 +25,7 @@ module Rack VERSION end - RELEASE = "3.0.0" + RELEASE = "3.0.1" # Return the Rack release as a dotted string. def self.release diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/to_s_with_argument.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/to_s_with_argument.rb deleted file mode 100644 index cf04752b6f..0000000000 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/to_s_with_argument.rb +++ /dev/null @@ -1,41 +0,0 @@ -# frozen_string_literal: true - -module RuboCop - module Cop - module Rails - # Identifies passing any argument to `#to_s`. - # - # @safety - # This cop is marked as unsafe because it may detect `#to_s` calls - # that are not related to Active Support implementation. - # - # @example - # - # # bad - # obj.to_s(:delimited) - # - # # good - # obj.to_formatted_s(:delimited) - # - class ToSWithArgument < Base - extend AutoCorrector - extend TargetRailsVersion - - MSG = 'Use `to_formatted_s` instead.' - - RESTRICT_ON_SEND = %i[to_s].freeze - - minimum_target_rails_version 7.0 - - def on_send(node) - return if node.arguments.empty? - - add_offense(node.loc.selector) do |corrector| - corrector.replace(node.loc.selector, 'to_formatted_s') - end - end - alias on_csend on_send - end - end - end -end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/config/default.yml b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/config/default.yml similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/config/default.yml rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/config/default.yml index 6dba7eb9dd..b4c8d28d44 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/config/default.yml +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/config/default.yml @@ -540,7 +540,7 @@ Rails/I18nLazyLookup: Enabled: pending VersionAdded: '2.14' Include: - - 'controllers/**/*' + - 'app/controllers/**/*.rb' Rails/I18nLocaleAssignment: Description: 'Prefer the usage of `I18n.with_locale` instead of manually updating `I18n.locale` value.' diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/config/obsoletion.yml b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/config/obsoletion.yml similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/config/obsoletion.yml rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/config/obsoletion.yml diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop-rails.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop-rails.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop-rails.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop-rails.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/active_record_helper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/active_record_helper.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/active_record_helper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/active_record_helper.rb index 4e776f90bd..ca5cfd6ab4 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/active_record_helper.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/active_record_helper.rb @@ -10,8 +10,8 @@ module RuboCop def_node_matcher :active_record?, <<~PATTERN { - (const nil? :ApplicationRecord) - (const (const nil? :ActiveRecord) :Base) + (const {nil? cbase} :ApplicationRecord) + (const (const {nil? cbase} :ActiveRecord) :Base) } PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/active_record_migrations_helper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/active_record_migrations_helper.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/active_record_migrations_helper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/active_record_migrations_helper.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/class_send_node_helper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/class_send_node_helper.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/class_send_node_helper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/class_send_node_helper.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/enforce_superclass.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/enforce_superclass.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/enforce_superclass.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/enforce_superclass.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/index_method.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/index_method.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/index_method.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/index_method.rb index 5cc2009486..d00edb6619 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/index_method.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/index_method.rb @@ -134,7 +134,7 @@ module RuboCop end def self.from_hash_brackets_map(node, match) - new(match, node.children.last, 'Hash['.length, ']'.length) + new(match, node.children.last, "#{node.receiver.source}[".length, ']'.length) end def strip_prefix_and_suffix(node, corrector) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/migrations_helper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/migrations_helper.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/migrations_helper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/migrations_helper.rb index 8784a6d98c..76dedda41f 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/migrations_helper.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/migrations_helper.rb @@ -8,7 +8,7 @@ module RuboCop def_node_matcher :migration_class?, <<~PATTERN (class - (const nil? _) + (const {nil? cbase} _) (send (const (const {nil? cbase} :ActiveRecord) :Migration) :[] diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/target_rails_version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/target_rails_version.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/mixin/target_rails_version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/mixin/target_rails_version.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_controller_flash_before_render.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_controller_flash_before_render.rb similarity index 89% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_controller_flash_before_render.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_controller_flash_before_render.rb index e101de4b3d..2e45be2ba9 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_controller_flash_before_render.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_controller_flash_before_render.rb @@ -43,8 +43,8 @@ module RuboCop def_node_search :action_controller?, <<~PATTERN { - (const nil? :ApplicationController) - (const (const nil? :ActionController) :Base) + (const {nil? cbase} :ApplicationController) + (const (const {nil? cbase} :ActionController) :Base) } PATTERN @@ -69,9 +69,12 @@ module RuboCop def followed_by_render?(flash_node) flash_assigment_node = find_ancestor(flash_node, type: :send) context = flash_assigment_node - context = context.parent if context.parent.if_type? + if (if_node = context.each_ancestor(:if).first) + context = if_node + elsif context.right_siblings.empty? + return true + end context = context.right_siblings - return true if context.empty? context.compact.any? do |node| render?(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_controller_test_case.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_controller_test_case.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_controller_test_case.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_controller_test_case.rb index 92959c771c..6ea52cdc21 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_controller_test_case.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_controller_test_case.rb @@ -30,7 +30,7 @@ module RuboCop def_node_matcher :action_controller_test_case?, <<~PATTERN (class - (const nil? _) + (const {nil? cbase} _) (const (const {nil? cbase} :ActionController) :TestCase) _) PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_filter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_filter.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_filter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_filter.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_order.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_order.rb similarity index 60% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_order.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_order.rb index 1d2aef4682..99fa9071db 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/action_order.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/action_order.rb @@ -6,7 +6,8 @@ module RuboCop # Enforces consistent ordering of the standard Rails RESTful controller actions. # # The cop is configurable and can enforce any ordering of the standard actions. - # All other methods are ignored. + # All other methods are ignored. So, the actions specified in `ExpectedOrder` should be + # defined before actions not specified. # # [source,yaml] # ---- @@ -35,6 +36,7 @@ module RuboCop extend AutoCorrector include VisibilityHelp include DefNode + include RangeHelp MSG = 'Action `%s` should appear before `%s`.' @@ -71,10 +73,44 @@ module RuboCop current: current.method_name ) add_offense(current, message: message) do |corrector| - corrector.replace(current, previous.source) - corrector.replace(previous, current.source) + current = correction_target(current) + previous = correction_target(previous) + + swap_range(corrector, current, previous) end end + + def correction_target(def_node) + range_with_comments_and_lines(def_node.each_ancestor(:if).first || def_node) + end + + def add_range(range1, range2) + range1.with( + begin_pos: [range1.begin_pos, range2.begin_pos].min, + end_pos: [range1.end_pos, range2.end_pos].max + ) + end + + def range_with_comments(node) + ranges = [ + node, + *processed_source.ast_with_comments[node] + ].map do |element| + element.location.expression + end + ranges.reduce do |result, range| + add_range(result, range) + end + end + + def range_with_comments_and_lines(node) + range_by_whole_lines(range_with_comments(node), include_final_newline: true) + end + + def swap_range(corrector, range1, range2) + corrector.insert_before(range2, range1.source) + corrector.remove(range1) + end end end end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_record_aliases.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_record_aliases.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_record_aliases.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_record_aliases.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_record_callbacks_order.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_record_callbacks_order.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_record_callbacks_order.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_record_callbacks_order.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_record_override.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_record_override.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_record_override.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_record_override.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_support_aliases.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_support_aliases.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_support_aliases.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_support_aliases.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_support_on_load.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_support_on_load.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/active_support_on_load.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/active_support_on_load.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/add_column_index.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/add_column_index.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/add_column_index.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/add_column_index.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/after_commit_override.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/after_commit_override.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/after_commit_override.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/after_commit_override.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_controller.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_controller.rb similarity index 92% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_controller.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_controller.rb index 6e67472256..d65fa3d8f7 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_controller.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_controller.rb @@ -25,7 +25,7 @@ module RuboCop MSG = 'Controllers should subclass `ApplicationController`.' SUPERCLASS = 'ApplicationController' - BASE_PATTERN = '(const (const nil? :ActionController) :Base)' + BASE_PATTERN = '(const (const {nil? cbase} :ActionController) :Base)' # rubocop:disable Layout/ClassStructure include RuboCop::Cop::EnforceSuperclass diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_job.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_job.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_job.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_job.rb index d02e32b253..6d55d9786a 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_job.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_job.rb @@ -28,7 +28,7 @@ module RuboCop MSG = 'Jobs should subclass `ApplicationJob`.' SUPERCLASS = 'ApplicationJob' - BASE_PATTERN = '(const (const nil? :ActiveJob) :Base)' + BASE_PATTERN = '(const (const {nil? cbase} :ActiveJob) :Base)' # rubocop:disable Layout/ClassStructure include RuboCop::Cop::EnforceSuperclass diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_mailer.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_mailer.rb similarity index 93% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_mailer.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_mailer.rb index c8638da9f2..256dc0385c 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_mailer.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_mailer.rb @@ -28,7 +28,7 @@ module RuboCop MSG = 'Mailers should subclass `ApplicationMailer`.' SUPERCLASS = 'ApplicationMailer' - BASE_PATTERN = '(const (const nil? :ActionMailer) :Base)' + BASE_PATTERN = '(const (const {nil? cbase} :ActionMailer) :Base)' # rubocop:disable Layout/ClassStructure include RuboCop::Cop::EnforceSuperclass diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_record.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_record.rb similarity index 93% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_record.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_record.rb index ebd46b179f..91ee5e2aaf 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/application_record.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/application_record.rb @@ -29,7 +29,7 @@ module RuboCop MSG = 'Models should subclass `ApplicationRecord`.' SUPERCLASS = 'ApplicationRecord' - BASE_PATTERN = '(const (const nil? :ActiveRecord) :Base)' + BASE_PATTERN = '(const (const {nil? cbase} :ActiveRecord) :Base)' # rubocop:disable Layout/ClassStructure include RuboCop::Cop::EnforceSuperclass diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/arel_star.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/arel_star.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/arel_star.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/arel_star.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/assert_not.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/assert_not.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/assert_not.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/assert_not.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/attribute_default_block_value.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/attribute_default_block_value.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/attribute_default_block_value.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/attribute_default_block_value.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/belongs_to.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/belongs_to.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/belongs_to.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/belongs_to.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/blank.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/blank.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/blank.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/blank.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/bulk_change_table.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/bulk_change_table.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/bulk_change_table.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/bulk_change_table.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/compact_blank.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/compact_blank.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/compact_blank.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/compact_blank.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/content_tag.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/content_tag.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/content_tag.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/content_tag.rb index 7376b09d8b..b93269b6ad 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/content_tag.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/content_tag.rb @@ -81,7 +81,7 @@ module RuboCop def allowed_name?(argument) return false unless argument.str_type? || argument.sym_type? - !/^[a-zA-Z\-][a-zA-Z\-0-9]*$/.match?(argument.value) + !/^[a-zA-Z-][a-zA-Z\-0-9]*$/.match?(argument.value) end def correction_range(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/create_table_with_timestamps.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/create_table_with_timestamps.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/create_table_with_timestamps.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/create_table_with_timestamps.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/date.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/date.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/date.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/date.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/default_scope.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/default_scope.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/default_scope.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/default_scope.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/delegate.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/delegate.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/delegate.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/delegate.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/delegate_allow_blank.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/delegate_allow_blank.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/delegate_allow_blank.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/delegate_allow_blank.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/dot_separated_keys.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/dot_separated_keys.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/dot_separated_keys.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/dot_separated_keys.rb index 73d8da171c..6121695199 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/dot_separated_keys.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/dot_separated_keys.rb @@ -24,7 +24,7 @@ module RuboCop TRANSLATE_METHODS = %i[translate t].freeze def_node_matcher :translate_with_scope?, <<~PATTERN - (send {nil? (const nil? :I18n)} {:translate :t} ${sym_type? str_type?} + (send {nil? (const {nil? cbase} :I18n)} {:translate :t} ${sym_type? str_type?} (hash <$(pair (sym :scope) ${array_type? sym_type?}) ...>) ) PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duplicate_association.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duplicate_association.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duplicate_association.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duplicate_association.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duplicate_scope.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duplicate_scope.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duplicate_scope.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duplicate_scope.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duration_arithmetic.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duration_arithmetic.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duration_arithmetic.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duration_arithmetic.rb index 47f2ab0b73..ddaf0fac55 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/duration_arithmetic.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/duration_arithmetic.rb @@ -70,8 +70,8 @@ module RuboCop # @return [Boolean] true if matches def_node_matcher :time_current?, <<~PATTERN { - (send (const _ :Time) :current) - (send (send (const _ :Time) :zone) :now) + (send (const {nil? cbase} :Time) :current) + (send (send (const {nil? cbase} :Time) :zone) :now) } PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/dynamic_find_by.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/dynamic_find_by.rb similarity index 86% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/dynamic_find_by.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/dynamic_find_by.rb index f1f7b21f36..027bb32fd6 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/dynamic_find_by.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/dynamic_find_by.rb @@ -53,7 +53,7 @@ module RuboCop method_name = node.method_name static_name = static_method_name(method_name) return unless static_name - return if node.arguments.any? { |argument| IGNORED_ARGUMENT_TYPES.include?(argument.type) } + return unless dynamic_find_by_arguments?(node) message = format(MSG, static_name: static_name, method: method_name) add_offense(node, message: message) do |corrector| @@ -65,12 +65,8 @@ module RuboCop private def autocorrect(corrector, node) - keywords = column_keywords(node.method_name) - - return if keywords.size != node.arguments.size - autocorrect_method_name(corrector, node) - autocorrect_argument_keywords(corrector, node, keywords) + autocorrect_argument_keywords(corrector, node, column_keywords(node.method_name)) end def allowed_invocation?(node) @@ -120,6 +116,20 @@ module RuboCop match[2] ? 'find_by!' : 'find_by' end + + def dynamic_find_by_arguments?(node) + dynamic_find_by_arguments_count?(node) && dynamic_find_by_arguments_type?(node) + end + + def dynamic_find_by_arguments_count?(node) + column_keywords(node.method_name).size == node.arguments.size + end + + def dynamic_find_by_arguments_type?(node) + node.arguments.none? do |argument| + IGNORED_ARGUMENT_TYPES.include?(argument.type) + end + end end end end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/eager_evaluation_log_message.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/eager_evaluation_log_message.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/eager_evaluation_log_message.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/eager_evaluation_log_message.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/enum_hash.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/enum_hash.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/enum_hash.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/enum_hash.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/enum_uniqueness.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/enum_uniqueness.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/enum_uniqueness.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/enum_uniqueness.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/environment_comparison.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/environment_comparison.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/environment_comparison.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/environment_comparison.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/environment_variable_access.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/environment_variable_access.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/environment_variable_access.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/environment_variable_access.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/exit.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/exit.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/exit.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/exit.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/expanded_date_range.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/expanded_date_range.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/expanded_date_range.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/expanded_date_range.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/file_path.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/file_path.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/file_path.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/file_path.rb index 80b9e49a6c..8afb72dbdb 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/file_path.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/file_path.rb @@ -34,15 +34,15 @@ module RuboCop RESTRICT_ON_SEND = %i[join].freeze def_node_matcher :file_join_nodes?, <<~PATTERN - (send (const nil? :File) :join ...) + (send (const {nil? cbase} :File) :join ...) PATTERN def_node_search :rails_root_nodes?, <<~PATTERN - (send (const nil? :Rails) :root) + (send (const {nil? cbase} :Rails) :root) PATTERN def_node_matcher :rails_root_join_nodes?, <<~PATTERN - (send (send (const nil? :Rails) :root) :join ...) + (send #rails_root_nodes? :join ...) PATTERN def on_dstr(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/find_by.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/find_by.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/find_by.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/find_by.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/find_by_id.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/find_by_id.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/find_by_id.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/find_by_id.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/find_each.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/find_each.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/find_each.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/find_each.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/freeze_time.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/freeze_time.rb similarity index 86% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/freeze_time.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/freeze_time.rb index 57afdacebc..fff5b37a4e 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/freeze_time.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/freeze_time.rb @@ -29,17 +29,17 @@ module RuboCop MSG = 'Use `freeze_time` instead of `travel_to`.' NOW_METHODS = %i[now new current].freeze - CONV_METHODS = %i[to_time in_time_zone].freeze + CONVERT_METHODS = %i[to_time in_time_zone].freeze RESTRICT_ON_SEND = %i[travel_to].freeze # @!method time_now?(node) def_node_matcher :time_now?, <<~PATTERN - (const nil? {:Time :DateTime}) + (const {nil? cbase} {:Time :DateTime}) PATTERN # @!method zoned_time_now?(node) def_node_matcher :zoned_time_now?, <<~PATTERN - (send (const nil? :Time) :zone) + (send (const {nil? cbase} :Time) :zone) PATTERN def on_send(node) @@ -63,9 +63,11 @@ module RuboCop end def current_time_with_convert?(node, method_name) - return false unless CONV_METHODS.include?(method_name) + return false unless CONVERT_METHODS.include?(method_name) + + child_node, child_method_name, time_argument = *node.children + return if time_argument - child_node, child_method_name = *node.children current_time?(child_node, child_method_name) end end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/has_and_belongs_to_many.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/has_and_belongs_to_many.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/has_and_belongs_to_many.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/has_and_belongs_to_many.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb index df752f52b1..9491d47eb0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb @@ -37,7 +37,7 @@ module RuboCop RESTRICT_ON_SEND = %i[has_many has_one].freeze def_node_search :active_resource_class?, <<~PATTERN - (const (const nil? :ActiveResource) :Base) + (const (const {nil? cbase} :ActiveResource) :Base) PATTERN def_node_matcher :association_without_options?, <<~PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/helper_instance_variable.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/helper_instance_variable.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/helper_instance_variable.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/helper_instance_variable.rb index d390b414fa..92b327c308 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/helper_instance_variable.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/helper_instance_variable.rb @@ -37,7 +37,7 @@ module RuboCop def_node_matcher :form_builder_class?, <<~PATTERN (const (const - (const nil? :ActionView) :Helpers) :FormBuilder) + (const {nil? cbase} :ActionView) :Helpers) :FormBuilder) PATTERN def on_ivar(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/http_positional_arguments.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/http_positional_arguments.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/http_positional_arguments.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/http_positional_arguments.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/http_status.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/http_status.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/http_status.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/http_status.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_lazy_lookup.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_lazy_lookup.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_lazy_lookup.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_lazy_lookup.rb index 9cc3709058..9053397255 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_lazy_lookup.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_lazy_lookup.rb @@ -34,6 +34,8 @@ module RuboCop MSG = 'Use "lazy" lookup for the text used in controllers.' + RESTRICT_ON_SEND = %i[translate t].freeze + def_node_matcher :translate_call?, <<~PATTERN (send nil? {:translate :t} ${sym_type? str_type?} ...) PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_locale_assignment.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_locale_assignment.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_locale_assignment.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_locale_assignment.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_locale_texts.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_locale_texts.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/i18n_locale_texts.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/i18n_locale_texts.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/ignored_columns_assignment.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/ignored_columns_assignment.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/ignored_columns_assignment.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/ignored_columns_assignment.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/index_by.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/index_by.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/index_by.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/index_by.rb index 5de9a56f8e..646cf8ebda 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/index_by.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/index_by.rb @@ -46,7 +46,7 @@ module RuboCop def_node_matcher :on_bad_hash_brackets_map, <<~PATTERN (send - (const _ :Hash) + (const {nil? cbase} :Hash) :[] (block (call _ {:map :collect}) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/index_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/index_with.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/index_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/index_with.rb index 2ef1b9fc70..90cc3be458 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/index_with.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/index_with.rb @@ -49,7 +49,7 @@ module RuboCop def_node_matcher :on_bad_hash_brackets_map, <<~PATTERN (send - (const _ :Hash) + (const {nil? cbase} :Hash) :[] (block (call _ {:map :collect}) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/inquiry.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/inquiry.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/inquiry.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/inquiry.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/inverse_of.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/inverse_of.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/inverse_of.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/inverse_of.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/link_to_blank.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/link_to_blank.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/link_to_blank.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/link_to_blank.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/mailer_name.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/mailer_name.rb similarity index 92% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/mailer_name.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/mailer_name.rb index e50ca97513..43abab7bda 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/mailer_name.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/mailer_name.rb @@ -34,8 +34,8 @@ module RuboCop def_node_matcher :mailer_base_class?, <<~PATTERN { - (const (const nil? :ActionMailer) :Base) - (const nil? :ApplicationMailer) + (const (const {nil? cbase} :ActionMailer) :Base) + (const {nil? cbase} :ApplicationMailer) } PATTERN @@ -44,7 +44,7 @@ module RuboCop PATTERN def_node_matcher :class_new_definition?, <<~PATTERN - (send (const nil? :Class) :new #mailer_base_class?) + (send (const {nil? cbase} :Class) :new #mailer_base_class?) PATTERN def on_class(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/match_route.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/match_route.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/match_route.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/match_route.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/migration_class_name.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/migration_class_name.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/migration_class_name.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/migration_class_name.rb index d204d450b4..1e895accde 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/migration_class_name.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/migration_class_name.rb @@ -29,7 +29,7 @@ module RuboCop basename = basename_without_timestamp_and_suffix(processed_source.file_path) - class_identifier = node.identifier + class_identifier = node.identifier.location.name camelized_basename = camelize(basename) return if class_identifier.source.casecmp(camelized_basename).zero? diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/negate_include.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/negate_include.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/negate_include.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/negate_include.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/not_null_column.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/not_null_column.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/not_null_column.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/not_null_column.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/order_by_id.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/order_by_id.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/order_by_id.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/order_by_id.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/output.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/output.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/output.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/output.rb index 9f87c9a7a8..dba0a57dbe 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/output.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/output.rb @@ -32,7 +32,7 @@ module RuboCop (send { (gvar #match_gvar?) - {(const nil? :STDOUT) (const nil? :STDERR)} + (const {nil? cbase} {:STDOUT :STDERR}) } {:binwrite :syswrite :write :write_nonblock} ...) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/output_safety.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/output_safety.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/output_safety.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/output_safety.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pick.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pick.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pick.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pick.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluck.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluck.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluck.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluck.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluck_id.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluck_id.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluck_id.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluck_id.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluck_in_where.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluck_in_where.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluck_in_where.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluck_in_where.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluralization_grammar.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluralization_grammar.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/pluralization_grammar.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/pluralization_grammar.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/presence.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/presence.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/presence.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/presence.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/present.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/present.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/present.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/present.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/rake_environment.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/rake_environment.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/rake_environment.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/rake_environment.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/read_write_attribute.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/read_write_attribute.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/read_write_attribute.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/read_write_attribute.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_allow_nil.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_allow_nil.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_allow_nil.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_allow_nil.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_foreign_key.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_foreign_key.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_foreign_key.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_foreign_key.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_travel_back.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_travel_back.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/redundant_travel_back.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/redundant_travel_back.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/reflection_class_name.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/reflection_class_name.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/reflection_class_name.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/reflection_class_name.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/refute_methods.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/refute_methods.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/refute_methods.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/refute_methods.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/relative_date_constant.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/relative_date_constant.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/relative_date_constant.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/relative_date_constant.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/render_inline.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/render_inline.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/render_inline.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/render_inline.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/render_plain_text.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/render_plain_text.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/render_plain_text.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/render_plain_text.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/request_referer.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/request_referer.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/request_referer.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/request_referer.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/require_dependency.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/require_dependency.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/require_dependency.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/require_dependency.rb index f6e444a4e6..58e6062758 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/require_dependency.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/require_dependency.rb @@ -26,7 +26,7 @@ module RuboCop RESTRICT_ON_SEND = %i[require_dependency].freeze def_node_matcher :require_dependency_call?, <<~PATTERN - (send {nil? (const _ :Kernel)} :require_dependency _) + (send {nil? (const {nil? cbase} :Kernel)} :require_dependency _) PATTERN def on_send(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/reversible_migration.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/reversible_migration.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/reversible_migration.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/reversible_migration.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/reversible_migration_method_definition.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/reversible_migration_method_definition.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/reversible_migration_method_definition.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/reversible_migration_method_definition.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_join_chain.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_join_chain.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_join_chain.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_join_chain.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_pathname_methods.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_pathname_methods.rb similarity index 88% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_pathname_methods.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_pathname_methods.rb index b3122be505..c526243979 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_pathname_methods.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_pathname_methods.rb @@ -163,12 +163,11 @@ module RuboCop def on_send(node) evidence(node) do |method, path, args, rails_root| add_offense(node, message: format(MSG, method: method, rails_root: rails_root.source)) do |corrector| - if dir_glob?(node) - replacement = build_path_glob(path, method) - else - replacement = "#{path.source}.#{method}" - replacement += "(#{args.map(&:source).join(', ')})" unless args.empty? - end + replacement = if dir_glob?(node) + build_path_glob_replacement(path, method) + else + build_path_replacement(path, method, args) + end corrector.replace(node, replacement) end @@ -184,7 +183,7 @@ module RuboCop yield(method, path, args, rails_root) end - def build_path_glob(path, method) + def build_path_glob_replacement(path, method) receiver = range_between(path.loc.expression.begin_pos, path.children.first.loc.selector.end_pos).source argument = if path.arguments.one? @@ -196,6 +195,18 @@ module RuboCop "#{receiver}.#{method}(#{argument})" end + def build_path_replacement(path, method, args) + path_replacement = path.source + if path.arguments? && !path.parenthesized_call? + path_replacement[' '] = '(' + path_replacement << ')' + end + + replacement = "#{path_replacement}.#{method}" + replacement += "(#{args.map(&:source).join(', ')})" unless args.empty? + replacement + end + def include_interpolation?(arguments) arguments.any? do |argument| argument.children.any? { |child| child.respond_to?(:begin_type?) && child.begin_type? } diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_public_path.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_public_path.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/root_public_path.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/root_public_path.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/safe_navigation.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/safe_navigation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/safe_navigation.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/safe_navigation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/safe_navigation_with_blank.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/safe_navigation_with_blank.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/safe_navigation_with_blank.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/safe_navigation_with_blank.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/save_bang.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/save_bang.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/save_bang.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/save_bang.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/schema_comment.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/schema_comment.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/schema_comment.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/schema_comment.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/scope_args.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/scope_args.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/scope_args.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/scope_args.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/short_i18n.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/short_i18n.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/short_i18n.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/short_i18n.rb index 35e02faf2d..dea14b8dd3 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/short_i18n.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/short_i18n.rb @@ -49,7 +49,7 @@ module RuboCop RESTRICT_ON_SEND = PREFERRED_METHODS.keys.freeze def_node_matcher :long_i18n?, <<~PATTERN - (send {nil? (const nil? :I18n)} ${:translate :localize} ...) + (send {nil? (const {nil? cbase} :I18n)} ${:translate :localize} ...) PATTERN def on_send(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/skips_model_validations.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/skips_model_validations.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/skips_model_validations.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/skips_model_validations.rb index cbc977eb95..de92ef30c5 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/skips_model_validations.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/skips_model_validations.rb @@ -57,7 +57,7 @@ module RuboCop def_node_matcher :good_touch?, <<~PATTERN { - (send (const nil? :FileUtils) :touch ...) + (send (const {nil? cbase} :FileUtils) :touch ...) (send _ :touch {true false}) } PATTERN diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/squished_sql_heredocs.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/squished_sql_heredocs.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/squished_sql_heredocs.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/squished_sql_heredocs.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/strip_heredoc.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/strip_heredoc.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/strip_heredoc.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/strip_heredoc.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/table_name_assignment.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/table_name_assignment.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/table_name_assignment.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/table_name_assignment.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/time_zone.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/time_zone.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/time_zone.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/time_zone.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/time_zone_assignment.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/time_zone_assignment.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/time_zone_assignment.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/time_zone_assignment.rb index 0cc54b5b9f..fe16fa3d22 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/time_zone_assignment.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/time_zone_assignment.rb @@ -23,7 +23,7 @@ module RuboCop RESTRICT_ON_SEND = %i[zone=].freeze def_node_matcher :time_zone_assignment?, <<~PATTERN - (send (const nil? :Time) :zone= ...) + (send (const {nil? cbase} :Time) :zone= ...) PATTERN def on_send(node) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/to_formatted_s.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/to_formatted_s.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/to_formatted_s.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/to_formatted_s.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/to_s_with_argument.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/to_s_with_argument.rb new file mode 100644 index 0000000000..d4aefab7d8 --- /dev/null +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/to_s_with_argument.rb @@ -0,0 +1,78 @@ +# frozen_string_literal: true + +module RuboCop + module Cop + module Rails + # Identifies passing any argument to `#to_s`. + # + # @safety + # This cop is marked as unsafe because it may detect `#to_s` calls + # that are not related to Active Support implementation. + # + # @example + # + # # bad + # obj.to_s(:delimited) + # + # # good + # obj.to_formatted_s(:delimited) + # + class ToSWithArgument < Base + extend AutoCorrector + extend TargetRailsVersion + + # These types are defined by the following files in ActiveSupport: + # lib/active_support/core_ext/array/conversions.rb + # lib/active_support/core_ext/date/conversions.rb + # lib/active_support/core_ext/date_time/conversions.rb + # lib/active_support/core_ext/numeric/conversions.rb + # lib/active_support/core_ext/range/conversions.rb + # lib/active_support/core_ext/time/conversions.rb + # lib/active_support/time_with_zone.rb + EXTENDED_FORMAT_TYPES = Set.new( + %i[ + currency + db + delimited + human + human_size + inspect + iso8601 + long + long_ordinal + nsec + number + percentage + phone + rfc822 + rounded + short + time + usec + ] + ) + + MSG = 'Use `to_formatted_s` instead.' + + RESTRICT_ON_SEND = %i[to_s].freeze + + minimum_target_rails_version 7.0 + + def on_send(node) + return unless rails_extended_to_s?(node) + + add_offense(node.loc.selector) do |corrector| + corrector.replace(node.loc.selector, 'to_formatted_s') + end + end + alias on_csend on_send + + private + + def rails_extended_to_s?(node) + node.first_argument&.sym_type? && EXTENDED_FORMAT_TYPES.include?(node.first_argument.value) + end + end + end + end +end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/top_level_hash_with_indifferent_access.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/top_level_hash_with_indifferent_access.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/top_level_hash_with_indifferent_access.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/top_level_hash_with_indifferent_access.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/transaction_exit_statement.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/transaction_exit_statement.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/transaction_exit_statement.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/transaction_exit_statement.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/uniq_before_pluck.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/uniq_before_pluck.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/uniq_before_pluck.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/uniq_before_pluck.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/unique_validation_without_index.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/unique_validation_without_index.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/unique_validation_without_index.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/unique_validation_without_index.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/unknown_env.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/unknown_env.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/unknown_env.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/unknown_env.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/unused_ignored_columns.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/unused_ignored_columns.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/unused_ignored_columns.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/unused_ignored_columns.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/validation.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/validation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/validation.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/validation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_equals.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_equals.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_equals.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_equals.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_exists.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_exists.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_exists.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_exists.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_missing.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_missing.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_missing.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_missing.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_not.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_not.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_not.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_not.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails_cops.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails_cops.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/cop/rails_cops.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/cop/rails_cops.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/inject.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/inject.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/inject.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/inject.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/schema_loader.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/schema_loader.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/schema_loader.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/schema_loader.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/schema_loader/schema.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/schema_loader/schema.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/schema_loader/schema.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/schema_loader/schema.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/version.rb similarity index 90% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/version.rb index c408f6914d..69b6c09beb 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.2/lib/rubocop/rails/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.17.3/lib/rubocop/rails/version.rb @@ -4,7 +4,7 @@ module RuboCop module Rails # This module holds the RuboCop Rails version information. module Version - STRING = '2.17.2' + STRING = '2.17.3' def self.document_version STRING.match('\d+\.\d+').to_s From 7d3a9d2e8ec99ddcb722b8d5637c6dffe6cbe1a1 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:11:24 +0000 Subject: [PATCH 09/33] brew vendor-gems: commit updates. --- Library/Homebrew/vendor/bundle/bundler/setup.rb | 2 +- .../2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack.rb | 0 .../lib/rack/auth/abstract/handler.rb | 0 .../lib/rack/auth/abstract/request.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/basic.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest.rb | 0 .../lib/rack/auth/digest/md5.rb | 0 .../lib/rack/auth/digest/nonce.rb | 0 .../lib/rack/auth/digest/params.rb | 0 .../lib/rack/auth/digest/request.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/body_proxy.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/builder.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/cascade.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/chunked.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/common_logger.rb | 0 .../lib/rack/conditional_get.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/config.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/constants.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/content_length.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/content_type.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/deflater.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/directory.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/etag.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/events.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/file.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/files.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/head.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/headers.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/lint.rb | 8 +++++++- .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/lock.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/logger.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/media_type.rb | 0 .../lib/rack/method_override.rb | 2 +- .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mime.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/mock_request.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/mock_response.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart.rb | 0 .../lib/rack/multipart/generator.rb | 0 .../lib/rack/multipart/parser.rb | 0 .../lib/rack/multipart/uploaded_file.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/null_logger.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/query_parser.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/recursive.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/reloader.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/request.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/response.rb | 0 .../lib/rack/rewindable_input.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/runtime.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/sendfile.rb | 0 .../lib/rack/show_exceptions.rb | 0 .../{rack-3.0.0 => rack-3.0.1}/lib/rack/show_status.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/static.rb | 0 .../lib/rack/tempfile_reaper.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/urlmap.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/utils.rb | 0 .../gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/version.rb | 2 +- 57 files changed, 10 insertions(+), 4 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/abstract/handler.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/abstract/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/basic.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/md5.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/nonce.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/params.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/auth/digest/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/body_proxy.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/builder.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/cascade.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/chunked.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/common_logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/conditional_get.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/config.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/constants.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/content_length.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/content_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/deflater.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/directory.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/etag.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/events.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/file.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/files.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/head.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/headers.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/lint.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/lock.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/media_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/method_override.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock_request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/mock_response.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart/generator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart/parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/multipart/uploaded_file.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/null_logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/query_parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/recursive.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/reloader.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/response.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/rewindable_input.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/runtime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/sendfile.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/show_exceptions.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/show_status.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/static.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/tempfile_reaper.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/urlmap.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.0 => rack-3.0.1}/lib/rack/version.rb (97%) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 5d03dc173c..926caa35a6 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -83,7 +83,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.6.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/pry-0.14.1/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rack-3.0.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rack-3.0.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unparser-0.6.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rbi-0.0.14/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/rdiscount-2.2.7") diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/handler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/handler.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/handler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/handler.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/abstract/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/abstract/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/basic.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/basic.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/basic.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/basic.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/md5.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/md5.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/md5.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/md5.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/nonce.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/nonce.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/nonce.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/nonce.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/params.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/params.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/params.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/params.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/auth/digest/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/auth/digest/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/body_proxy.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/body_proxy.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/body_proxy.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/body_proxy.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/builder.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/builder.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/builder.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/builder.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/cascade.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/cascade.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/cascade.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/cascade.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/chunked.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/chunked.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/chunked.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/chunked.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/common_logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/common_logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/common_logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/common_logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/conditional_get.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/conditional_get.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/conditional_get.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/conditional_get.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/config.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/config.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/config.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/config.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/constants.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/constants.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/constants.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/constants.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_length.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_length.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_length.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_length.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_type.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/content_type.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/content_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/deflater.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/deflater.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/deflater.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/deflater.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/directory.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/directory.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/directory.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/directory.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/etag.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/etag.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/etag.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/etag.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/events.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/events.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/events.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/events.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/file.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/file.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/file.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/file.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/files.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/files.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/files.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/files.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/head.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/head.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/head.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/head.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/headers.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/headers.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/headers.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/headers.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lint.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lint.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lint.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lint.rb index 42878879a8..75eed20869 100755 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lint.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lint.rb @@ -817,8 +817,14 @@ module Rack verify_to_path end + BODY_METHODS = {to_ary: true, each: true, call: true, to_path: true} + + def to_path + @body.to_path + end + def respond_to?(name, *) - if name == :to_ary + if BODY_METHODS.key?(name) @body.respond_to?(name) else super diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lock.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lock.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/lock.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/lock.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/media_type.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/media_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/media_type.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/media_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/method_override.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/method_override.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/method_override.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/method_override.rb index cf7fcf75df..61df3fc5e6 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/method_override.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/method_override.rb @@ -46,7 +46,7 @@ module Rack end def method_override_param(req) - req.POST[METHOD_OVERRIDE_PARAM_KEY] + req.POST[METHOD_OVERRIDE_PARAM_KEY] if req.form_data? || req.parseable_data? rescue Utils::InvalidParameterError, Utils::ParameterTypeError req.get_header(RACK_ERRORS).puts "Invalid or incomplete POST params" rescue EOFError diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mime.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mime.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_response.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_response.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/mock_response.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/mock_response.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/generator.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/generator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/generator.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/generator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/uploaded_file.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/uploaded_file.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/multipart/uploaded_file.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/multipart/uploaded_file.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/null_logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/null_logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/null_logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/null_logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/query_parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/query_parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/query_parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/query_parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/recursive.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/recursive.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/recursive.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/recursive.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/reloader.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/reloader.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/reloader.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/reloader.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/response.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/response.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/response.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/response.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/rewindable_input.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/rewindable_input.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/rewindable_input.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/rewindable_input.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/runtime.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/runtime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/runtime.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/runtime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/sendfile.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/sendfile.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/sendfile.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/sendfile.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_exceptions.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_exceptions.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_exceptions.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_exceptions.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_status.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_status.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/show_status.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/show_status.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/static.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/static.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/static.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/static.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/tempfile_reaper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/tempfile_reaper.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/tempfile_reaper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/tempfile_reaper.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/urlmap.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/urlmap.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/urlmap.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/urlmap.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/utils.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/utils.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/version.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/version.rb index 782eb98114..cd73e2e1e0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib/rack/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.1/lib/rack/version.rb @@ -25,7 +25,7 @@ module Rack VERSION end - RELEASE = "3.0.0" + RELEASE = "3.0.1" # Return the Rack release as a dotted string. def self.release From 6e215ecabafb958028d25795871b84f0f0faa2e5 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:14:15 +0000 Subject: [PATCH 10/33] Update RBI files for rubocop-rails. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. --- .../gems/{rack@3.0.0.rbi => rack@3.0.1.rbi} | 3 +++ ...ls@2.17.2.rbi => rubocop-rails@2.17.3.rbi} | 20 +++++++++++++++++-- .../sorbet/rbi/hidden-definitions/hidden.rbi | 1 + 3 files changed, 22 insertions(+), 2 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rack@3.0.0.rbi => rack@3.0.1.rbi} (99%) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rails@2.17.2.rbi => rubocop-rails@2.17.3.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rack@3.0.1.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rack@3.0.1.rbi index f1fb8f41b8..e546e208d8 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rack@3.0.1.rbi @@ -496,10 +496,13 @@ class Rack::Lint::Wrapper def respond_to?(name, *_arg1); end def response; end def to_ary; end + def to_path; end def verify_content_length(size); end def verify_to_path; end end +Rack::Lint::Wrapper::BODY_METHODS = T.let(T.unsafe(nil), Hash) + class Rack::Lint::Wrapper::ErrorWrapper def initialize(error); end diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.17.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.17.3.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.17.2.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.17.3.rbi index 48b08a346e..682ab89ae9 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.17.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.17.3.rbi @@ -178,6 +178,7 @@ RuboCop::Cop::Rails::ActionFilter::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array class RuboCop::Cop::Rails::ActionOrder < ::RuboCop::Cop::Base include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::DefNode + include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector def action_declarations(param0, param1); end @@ -186,9 +187,14 @@ class RuboCop::Cop::Rails::ActionOrder < ::RuboCop::Cop::Base private def actions; end + def add_range(range1, range2); end + def correction_target(def_node); end def expected_order; end def find_index(node); end + def range_with_comments(node); end + def range_with_comments_and_lines(node); end def register_offense(previous, current); end + def swap_range(corrector, range1, range2); end end RuboCop::Cop::Rails::ActionOrder::MSG = T.let(T.unsafe(nil), String) @@ -695,6 +701,9 @@ class RuboCop::Cop::Rails::DynamicFindBy < ::RuboCop::Cop::Base def autocorrect_argument_keywords(corrector, node, keywords); end def autocorrect_method_name(corrector, node); end def column_keywords(method); end + def dynamic_find_by_arguments?(node); end + def dynamic_find_by_arguments_count?(node); end + def dynamic_find_by_arguments_type?(node); end def static_method_name(method_name); end def whitelisted?(node); end end @@ -921,7 +930,7 @@ class RuboCop::Cop::Rails::FreezeTime < ::RuboCop::Cop::Base def current_time_with_convert?(node, method_name); end end -RuboCop::Cop::Rails::FreezeTime::CONV_METHODS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Rails::FreezeTime::CONVERT_METHODS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Rails::FreezeTime::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::FreezeTime::NOW_METHODS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Rails::FreezeTime::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) @@ -1061,6 +1070,7 @@ class RuboCop::Cop::Rails::I18nLazyLookup < ::RuboCop::Cop::Base end RuboCop::Cop::Rails::I18nLazyLookup::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::I18nLazyLookup::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Rails::I18nLocaleAssignment < ::RuboCop::Cop::Base def i18n_locale_assignment?(param0 = T.unsafe(nil)); end @@ -1775,7 +1785,8 @@ class RuboCop::Cop::Rails::RootPathnameMethods < ::RuboCop::Cop::Base private - def build_path_glob(path, method); end + def build_path_glob_replacement(path, method); end + def build_path_replacement(path, method, args); end def evidence(node); end def include_interpolation?(arguments); end def join_arguments(arguments); end @@ -2047,8 +2058,13 @@ class RuboCop::Cop::Rails::ToSWithArgument < ::RuboCop::Cop::Base def on_csend(node); end def on_send(node); end + + private + + def rails_extended_to_s?(node); end end +RuboCop::Cop::Rails::ToSWithArgument::EXTENDED_FORMAT_TYPES = T.let(T.unsafe(nil), Set) RuboCop::Cop::Rails::ToSWithArgument::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::ToSWithArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index cc423cba8d..e28a0e05db 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -6742,6 +6742,7 @@ module RuboCop::AST::NodePattern::Sets SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped) SET_ON_INTEL_ON_ARM = ::T.let(nil, ::T.untyped) SET_OR_NEWER_OR_OLDER = ::T.let(nil, ::T.untyped) + SET_STDOUT_STDERR = ::T.let(nil, ::T.untyped) SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped) SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped) SET____ETC_4 = ::T.let(nil, ::T.untyped) From 5ad0cd406ad71fc38944f67ec85c0776fc439b6e Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:19:32 +0000 Subject: [PATCH 11/33] Update RBI files for rack. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. --- .../sorbet/rbi/gems/{rack@3.0.0.rbi => rack@3.0.1.rbi} | 3 +++ 1 file changed, 3 insertions(+) rename Library/Homebrew/sorbet/rbi/gems/{rack@3.0.0.rbi => rack@3.0.1.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rack@3.0.1.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rack@3.0.1.rbi index f1fb8f41b8..e546e208d8 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rack@3.0.1.rbi @@ -496,10 +496,13 @@ class Rack::Lint::Wrapper def respond_to?(name, *_arg1); end def response; end def to_ary; end + def to_path; end def verify_content_length(size); end def verify_to_path; end end +Rack::Lint::Wrapper::BODY_METHODS = T.let(T.unsafe(nil), Hash) + class Rack::Lint::Wrapper::ErrorWrapper def initialize(error); end From 2f28b280589bdc447e8ac5bb577ecc4e33a85163 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 24 Nov 2022 14:15:10 +0800 Subject: [PATCH 12/33] workflows/doctor: use ephemeral runners This workflow hasn't been set up to run on our ephemeral runners. Let's fix that. --- .github/workflows/doctor.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doctor.yml b/.github/workflows/doctor.yml index 50409557e6..ece0b0e35e 100644 --- a/.github/workflows/doctor.yml +++ b/.github/workflows/doctor.yml @@ -18,9 +18,15 @@ jobs: tests: strategy: matrix: - version: ["12-arm64", "12", "11-arm64", "11", "10.15"] + include: + - runner: "13-arm64-${{github.run_id}}-${{github.run_attempt}}" + - runner: "12-arm64" + - runner: "12-${{github.run_id}}-${{github.run_attempt}}" + - runner: "11-arm64" + - runner: "11-${{github.run_id}}-${{github.run_attempt}}" + - runner: "10.15-${{github.run_id}}-${{github.run_attempt}}" fail-fast: false - runs-on: ${{ matrix.version }} + runs-on: ${{ matrix.runner }} env: PATH: "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" defaults: From 08e81aaf7ab52c0a02b849571ac6266eb0e17d0c Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 24 Nov 2022 21:45:16 +0800 Subject: [PATCH 13/33] Apply suggestions from code review Co-authored-by: Bo Anderson --- .github/workflows/doctor.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/doctor.yml b/.github/workflows/doctor.yml index ece0b0e35e..db7a03e368 100644 --- a/.github/workflows/doctor.yml +++ b/.github/workflows/doctor.yml @@ -18,13 +18,13 @@ jobs: tests: strategy: matrix: - include: - - runner: "13-arm64-${{github.run_id}}-${{github.run_attempt}}" - - runner: "12-arm64" - - runner: "12-${{github.run_id}}-${{github.run_attempt}}" - - runner: "11-arm64" - - runner: "11-${{github.run_id}}-${{github.run_attempt}}" - - runner: "10.15-${{github.run_id}}-${{github.run_attempt}}" + runner: + - "13-arm64-${{github.run_id}}-${{github.run_attempt}}" + - "12-arm64" + - "12-${{github.run_id}}-${{github.run_attempt}}" + - "11-arm64" + - "11-${{github.run_id}}-${{github.run_attempt}}" + - "10.15-${{github.run_id}}-${{github.run_attempt}}" fail-fast: false runs-on: ${{ matrix.runner }} env: From cf01a7f9856865342f85370fc5b48f0b30da6d93 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 24 Nov 2022 22:07:30 +0800 Subject: [PATCH 14/33] brew.sh: remove `HOMEBREW_CHANGE_ARCH_TO_ARM` We used to need this because the GitHub runner process was running under Rosetta. GitHub Actions has supported native M1 runners for a few months now, so I think it's time to remove this. --- .github/workflows/doctor.yml | 1 - Library/Homebrew/brew.sh | 27 +++++++-------------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/doctor.yml b/.github/workflows/doctor.yml index 50409557e6..51d30f5d7d 100644 --- a/.github/workflows/doctor.yml +++ b/.github/workflows/doctor.yml @@ -13,7 +13,6 @@ permissions: env: HOMEBREW_DEVELOPER: 1 HOMEBREW_NO_AUTO_UPDATE: 1 - HOMEBREW_CHANGE_ARCH_TO_ARM: 1 jobs: tests: strategy: diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 22ea354764..4ab5345058 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -13,26 +13,6 @@ case "${HOMEBREW_SYSTEM}" in Linux) HOMEBREW_LINUX="1" ;; esac -if [[ "${HOMEBREW_MACOS}" == "1" ]] && - [[ "$(sysctl -n hw.optional.arm64 2>/dev/null)" == "1" ]] -then - # used in vendor-install.sh - # shellcheck disable=SC2034 - HOMEBREW_PHYSICAL_PROCESSOR="arm64" - HOMEBREW_ROSETTA="$(sysctl -n sysctl.proc_translated)" - - # If we're running under macOS Rosetta 2, and it was requested by setting - # HOMEBREW_CHANGE_ARCH_TO_ARM (for example in CI), then we re-exec this - # same file under the native architecture - # These variables are set from the user environment. - # shellcheck disable=SC2154 - if [[ "${HOMEBREW_CHANGE_ARCH_TO_ARM}" == "1" ]] && - [[ "${HOMEBREW_ROSETTA}" == "1" ]] - then - exec arch -arm64e "${HOMEBREW_BREW_FILE}" "$@" - fi -fi - # Where we store built products; a Cellar in HOMEBREW_PREFIX (often /usr/local # for bottles) unless there's already a Cellar in HOMEBREW_REPOSITORY. # These variables are set by bin/brew @@ -442,6 +422,13 @@ then # Don't change this from Mac OS X to match what macOS itself does in Safari on 10.12 HOMEBREW_OS_USER_AGENT_VERSION="Mac OS X ${HOMEBREW_MACOS_VERSION}" + if [[ "$(sysctl -n hw.optional.arm64 2>/dev/null)" == "1" ]] + then + # used in vendor-install.sh + # shellcheck disable=SC2034 + HOMEBREW_PHYSICAL_PROCESSOR="arm64" + fi + # Intentionally set this variable by exploding another. # shellcheck disable=SC2086,SC2183 printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" ${HOMEBREW_MACOS_VERSION//./ } From 239743f39bdd8699abcb8d1652e7b2e8249fb1ec Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 24 Nov 2022 22:15:03 +0800 Subject: [PATCH 15/33] Fix `shellcheck` error --- Library/Homebrew/brew.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 4ab5345058..98373deac4 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -150,6 +150,8 @@ safe_cd() { } brew() { + # This variable is set by bin/brew + # shellcheck disable=SC2154 "${HOMEBREW_BREW_FILE}" "$@" } From 2c1572c44c856add58d582579c9087211313b03e Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 24 Nov 2022 22:44:56 +0800 Subject: [PATCH 16/33] workflows/doctor: skip unnecessary steps Based on discussion from #14172. --- .github/workflows/doctor.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doctor.yml b/.github/workflows/doctor.yml index db7a03e368..a8c2c325b5 100644 --- a/.github/workflows/doctor.yml +++ b/.github/workflows/doctor.yml @@ -38,8 +38,9 @@ jobs: uses: Homebrew/actions/setup-homebrew@master - run: brew test-bot --only-cleanup-before + if: !contains(matrix.runner, github.run_id) - - run: brew test-bot --only-setup + - run: brew doctor - run: brew test-bot --only-cleanup-after - if: always() + if: always() && !contains(matrix.runner, github.run_id) From d9ef4545282f0f98664594fb4991b9602a9f27ea Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Sat, 19 Nov 2022 17:06:01 -0500 Subject: [PATCH 17/33] CI: add docs.yml With fixes for Markdown syntax to allow tests to pass. --- .github/workflows/docs.yml | 67 +++++++++++++++++++ .github/workflows/tests.yml | 10 +-- docs/.mdl_style.rb | 1 + docs/Adding-Software-to-Homebrew.md | 2 +- docs/Brew-Test-Bot.md | 1 - docs/Common-Issues-for-Core-Contributors.md | 5 +- ...ecating-Disabling-and-Removing-Formulae.md | 2 +- docs/Homebrew-Governance-Archives.md | 3 +- docs/Homebrew-Leadership-Responsibilities.md | 6 +- docs/Homebrew-and-Python.md | 5 +- ...Homebrew-homebrew-core-Maintainer-Guide.md | 35 +++++----- docs/Maintainers-Avoiding-Burnout.md | 2 +- docs/Rakefile | 4 +- docs/governance/2021-agm-minutes.md | 3 +- docs/vale-styles/Homebrew/README.md | 2 + 15 files changed, 105 insertions(+), 43 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000000..64ba312816 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,67 @@ +name: Documentation CI + +on: + push: + branches: + - master + pull_request: + +permissions: + contents: read + +jobs: + linting: + if: github.repository == 'Homebrew/brew' + runs-on: ubuntu-22.04 + defaults: + run: + working-directory: docs + steps: + - name: Set up Homebrew + id: set-up-homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Install vale + run: brew install vale + + - name: Run vale for docs linting + run: vale . + + - name: Install Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.7" + bundler-cache: true + working-directory: docs + + - name: Check Markdown syntax + run: bundle exec rake lint + + - name: Build docs site + run: bundle exec rake build + + rubydoc: + if: github.repository == 'Homebrew/brew' + runs-on: ubuntu-22.04 + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/rubydoc/Gemfile + steps: + - name: Set up Homebrew + id: set-up-homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Checkout Homebrew/rubydoc.brew.sh + uses: actions/checkout@main + with: + repository: Homebrew/rubydoc.brew.sh + path: rubydoc + + - name: Install Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.7" + bundler-cache: true + + - name: Process rubydoc comments + working-directory: Library/Homebrew + run: bundle exec yard doc --plugin sorbet --no-output #--fail-on-warning diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 631848e3bb..cc3797d593 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,18 +37,13 @@ jobs: - name: Install Bundler RubyGems run: brew install-bundler-gems --groups=sorbet - - name: Install shellcheck - run: brew install shellcheck + - name: Install shellcheck and shfmt + run: brew install shellcheck shfmt - run: brew style --display-cop-names - run: brew typecheck - - name: Run vale for docs linting - run: | - brew install vale - vale docs/ - tap-syntax: name: tap syntax needs: syntax @@ -282,6 +277,7 @@ jobs: test-default-formula-linux: name: ${{ matrix.name }} + if: startsWith(github.repository, 'Homebrew/') runs-on: ${{ matrix.runs-on }} env: HOMEBREW_BOOTSNAP: 1 diff --git a/docs/.mdl_style.rb b/docs/.mdl_style.rb index 3466dc4ffd..d7a297fede 100644 --- a/docs/.mdl_style.rb +++ b/docs/.mdl_style.rb @@ -1,4 +1,5 @@ all +rule 'MD007', indent: 2 # Unordered list indentation rule 'MD026', punctuation: ',;:' # Trailing punctuation in header exclude_rule 'MD013' # Line length exclude_rule 'MD029' # Ordered list item prefix diff --git a/docs/Adding-Software-to-Homebrew.md b/docs/Adding-Software-to-Homebrew.md index 3f1322d23f..1c20531e7c 100644 --- a/docs/Adding-Software-to-Homebrew.md +++ b/docs/Adding-Software-to-Homebrew.md @@ -178,7 +178,7 @@ Other commonly used stanzas are: | ------------------ | ----------- | | `livecheck` | Ruby block describing how to find updates for this cask (see [`livecheck` Stanza Details](Cask-Cookbook.md#stanza-livecheck)) | `pkg` | relative path to a `.pkg` file containing the distribution (see [`pkg` Stanza Details](Cask-Cookbook.md#stanza-pkg)) -| `caveats` | a string or Ruby block providing the user with cask-specific information at install time (see [`caveats` Stanza Details](Cask-Cookbook.md#stanza-caveats)) +| `caveats` | string or Ruby block providing the user with cask-specific information at install time (see [`caveats` Stanza Details](Cask-Cookbook.md#stanza-caveats)) | `uninstall` | procedures to uninstall a cask; optional unless the `pkg` stanza is used (see [`uninstall` Stanza Details](Cask-Cookbook.md#stanza-uninstall)) | `zap` | additional procedures for a more complete uninstall, including configuration files and shared resources (see [`zap` Stanza Details](Cask-Cookbook.md#stanza-zap)) diff --git a/docs/Brew-Test-Bot.md b/docs/Brew-Test-Bot.md index e42e89892f..28d32ced95 100644 --- a/docs/Brew-Test-Bot.md +++ b/docs/Brew-Test-Bot.md @@ -32,4 +32,3 @@ A passed build looks like this: --- On failed or passed builds you can click the "Details" link to view the result in GitHub Actions. - diff --git a/docs/Common-Issues-for-Core-Contributors.md b/docs/Common-Issues-for-Core-Contributors.md index c7d8dba25c..5ef376ffcc 100644 --- a/docs/Common-Issues-for-Core-Contributors.md +++ b/docs/Common-Issues-for-Core-Contributors.md @@ -9,10 +9,12 @@ This is a page for maintainers to diagnose certain build errors. ### Bottle publishes failed but the commits are correct in the git history Follow these steps to fix this issue: + * Download and extract the bottle artifact. * `brew pr-upload --no-commit` in the bottle directory. Alternative instructions using `pr-pull`: + * `git reset --hard ` in homebrew/core to reset to the commit before before all the commits created by `brew pr-pull`. * `brew pr-pull ` to upload the right bottles. Add the `--warn-on-upload-failure` flag if the bottles have been partially uploaded and you're certain that the bottle checksums will match the checksums already present in the `bottle do` block of the formula. * `git reset --hard origin/master` to return to the latest commit and discard the commits made by `brew pr-pull`. @@ -21,5 +23,4 @@ Alternative instructions using `pr-pull`: The exact atom may be different. -This can be caused by passing the obsolete `-s` flag to the linker and can be -fixed like [this](https://github.com/Homebrew/homebrew-core/commit/c4ad981d788b21a406a6efe7748f2922986919a8). +This can be caused by passing the obsolete `-s` flag to the linker and can be fixed like [this](https://github.com/Homebrew/homebrew-core/commit/c4ad981d788b21a406a6efe7748f2922986919a8). diff --git a/docs/Deprecating-Disabling-and-Removing-Formulae.md b/docs/Deprecating-Disabling-and-Removing-Formulae.md index 8ce61a93a9..240cc72c63 100644 --- a/docs/Deprecating-Disabling-and-Removing-Formulae.md +++ b/docs/Deprecating-Disabling-and-Removing-Formulae.md @@ -49,7 +49,7 @@ The most common reasons for disabling a formula are: Formulae should not be disabled without a deprecation period of at least three months unless the circumstances are exceptional (e.g. the formula does not build on any supported macOS version or Linux). Popular formulae should have longer deprecation periods. The popularity of a formula should be based on our analytics data. -**Note: disabled formulae in `homebrew/core` will be automatically removed one year after their disable date**. +**Note: disabled formulae in `homebrew/core` will be automatically removed one year after their disable date.** To disable a formula, add a `disable!` call. This call should include a deprecation date (in the ISO 8601 format) and a deprecation reason: diff --git a/docs/Homebrew-Governance-Archives.md b/docs/Homebrew-Governance-Archives.md index ccf040b826..28441bc959 100644 --- a/docs/Homebrew-Governance-Archives.md +++ b/docs/Homebrew-Governance-Archives.md @@ -1,7 +1,8 @@ # Homebrew Governance Archives {% assign governance_pages = site.pages | where: "category", "governance-archives" %} +{% assign marker = "-" %} {% for item in governance_pages -%} -- [{{ item.title }}]({{ item.url }}) +{{ marker }} [{{ item.title }}]({{ item.url }}) {% endfor %} diff --git a/docs/Homebrew-Leadership-Responsibilities.md b/docs/Homebrew-Leadership-Responsibilities.md index 2dd0ea405a..d4a1dc6af6 100644 --- a/docs/Homebrew-Leadership-Responsibilities.md +++ b/docs/Homebrew-Leadership-Responsibilities.md @@ -21,7 +21,7 @@ - January: check membership, announce AGM votes - Ask for nominations for the for the PLC and project leader, and ask who is interested in serving on the TSC - - Create ballots for the elections on https://www.opavote.com + - Create ballots for the elections on - Ask the project leader and representatives of the PLC and TSC to prepare reports for the AGM - Ask for members interested in presenting lightning talks at the AGM - February: organise the annual general meeting (AGM) @@ -29,8 +29,8 @@ - Book a group dinner (which Homebrew pays for) and check for any dietary requirements - Ask someone to bring a conference/table microphone for people to be able to remotely participate in AGM - February after the AGM: - - Add the minutes of the AGM to https://github.com/Homebrew/homebrew-governance - - Create [issue in homebrew-governance](https://github.com/homebrew/homebrew-governance/issues) to ask members who did not vote in the election whether they wish to remain or step down as members + - Add the minutes of the AGM to + - Create [issue in Homebrew/brew](https://github.com/Homebrew/brew/issues?q=is%3Aissue+in%3Atitle+membership+) to ask members who did not vote in the election whether they wish to remain or step down as members - Members that are not maintainers should be a least one of: - An current or previously active maintainer, PLC/TSC member or Project Leader - A long-standing member of the Homebrew community (e.g. been submitting good bug reports for over two years) diff --git a/docs/Homebrew-and-Python.md b/docs/Homebrew-and-Python.md index da920d8688..5eb7bd7fe4 100644 --- a/docs/Homebrew-and-Python.md +++ b/docs/Homebrew-and-Python.md @@ -87,10 +87,9 @@ CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" pip install ## Virtualenv -**Warning!** When you `brew install` formulae that provide Python bindings, you should **not be in an active virtual environment**. +**Warning!** When you `brew install` formulae that provide Python bindings, you should **not be in an active virtual environment.** -Activate the virtualenv *after* you've brewed, or brew in a fresh terminal window. -This will ensure Python modules are installed into Homebrew's `site-packages` and *not* into that of the virtual environment. +Activate the virtualenv *after* you've brewed, or brew in a fresh terminal window. This will ensure Python modules are installed into Homebrew's `site-packages` and *not* into that of the virtual environment. Virtualenv has a `--system-site-packages` switch to allow "global" (i.e. Homebrew's) `site-packages` to be accessible from within the virtualenv. diff --git a/docs/Homebrew-homebrew-core-Maintainer-Guide.md b/docs/Homebrew-homebrew-core-Maintainer-Guide.md index dfe27fdd80..cb2a77484e 100644 --- a/docs/Homebrew-homebrew-core-Maintainer-Guide.md +++ b/docs/Homebrew-homebrew-core-Maintainer-Guide.md @@ -13,8 +13,7 @@ A detailed checklist can be found [below](#detailed-merge-checklist). This is al [pip](https://pip.pypa.io/en/stable/). - Ensure that any dependencies are accurate and minimal. We don't need to support every possible optional feature for the software. -- When bottles aren't required or affected, use the GitHub squash & merge workflow for a single-formula PR or rebase & merge workflow for a multiple-formulae PR. See the ["How to merge without bottles" section below](#how-to-merge-without-bottles) -for more details. +- When bottles aren't required or affected, use the GitHub squash & merge workflow for a single-formula PR or rebase & merge workflow for a multiple-formulae PR. See the ["How to merge without bottles" section below](#how-to-merge-without-bottles) for more details. - Use `brew pr-publish` or `brew pr-pull` otherwise, which adds messages to auto-close pull requests and pull bottles built by the Brew Test Bot. - Thank people for contributing. @@ -155,18 +154,18 @@ transparency for contributors in addition to the - bottle block is not removed Suggested reply: - ``` - Please keep bottle block in place, [@BrewTestBot](https://github.com/BrewTestBot) takes care of it. - ``` + + Please keep bottle block in place; [@BrewTestBot](https://github.com/BrewTestBot) takes care of it. + - is there a test block for other than checking version or printing help? Consider asking to add one - if CI failed - due to test block - paste relevant lines and add `test failure` label - due to build errors - paste relevant lines and add `build failure` label - due to other formulae needing revision bumps - suggest to use the following command: - ``` - # in this example PR is for `libuv` formula and `urbit` needs revision bump - brew bump-revision --message 'for libuv' urbit - ``` + + # in this example: PR is for `libuv` formula and `urbit` needs revision bump + brew bump-revision --message 'for libuv' urbit + - make sure it is one commit per revision bump - if CI is green and... - bottles need to be pulled, and... @@ -187,16 +186,14 @@ This error might pop up when parameters passed to `gcc` are in the wrong order. An example from `libmagic` formula: -``` -==> brew test libmagic --verbose -Testing libmagic -==> /usr/bin/gcc -I/home/linuxbrew/.linuxbrew/Cellar/libmagic/5.38/include -L/home/linuxbrew/.linuxbrew/Cellar/libmagic/5.38/lib -lmagic test.c -o test -/tmp/ccNeDVRt.o: In function `main': -test.c:(.text+0x15): undefined reference to `magic_open' -test.c:(.text+0x4a): undefined reference to `magic_load' -test.c:(.text+0x81): undefined reference to `magic_file' -collect2: error: ld returned 1 exit status -``` + ==> brew test libmagic --verbose + Testing libmagic + ==> /usr/bin/gcc -I/home/linuxbrew/.linuxbrew/Cellar/libmagic/5.38/include -L/home/linuxbrew/.linuxbrew/Cellar/libmagic/5.38/lib -lmagic test.c -o test + /tmp/ccNeDVRt.o: In function `main': + test.c:(.text+0x15): undefined reference to `magic_open' + test.c:(.text+0x4a): undefined reference to `magic_load' + test.c:(.text+0x81): undefined reference to `magic_file' + collect2: error: ld returned 1 exit status Solution: diff --git a/docs/Maintainers-Avoiding-Burnout.md b/docs/Maintainers-Avoiding-Burnout.md index 9a55338e5d..5ac9d8d5db 100644 --- a/docs/Maintainers-Avoiding-Burnout.md +++ b/docs/Maintainers-Avoiding-Burnout.md @@ -46,4 +46,4 @@ work to be done. --- -_Thanks to https://gist.github.com/ryanflorence/124070e7c4b3839d4573 which influenced this document_ +_Thanks to which influenced this document._ diff --git a/docs/Rakefile b/docs/Rakefile index 042dfa64d1..e28c12460d 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -8,8 +8,8 @@ task :build do end desc "Run Markdownlint to validate the Markdown style." -task lint: :build do - sh "mdl", "." +task :lint do + sh "mdl $(git ls-files '*.md' | grep -v 'Manpage.md')" end desc "Run HTMLProofer to validate the HTML output." diff --git a/docs/governance/2021-agm-minutes.md b/docs/governance/2021-agm-minutes.md index ac7bafefd8..8e3ea8b38e 100644 --- a/docs/governance/2021-agm-minutes.md +++ b/docs/governance/2021-agm-minutes.md @@ -31,7 +31,6 @@ Jonathan Chang and Issy Long are elected. - - 11:57–12:00 Election of the Project Leader Mike McQuaid elected by acclamation. @@ -49,7 +48,7 @@ - 12:55–13:00 Shaun Jackman - Speeding up install times / Git repo size - 13:10 Meeting adjourned -## Motions +## Resolutions ### Motion to adopt the voting system diff --git a/docs/vale-styles/Homebrew/README.md b/docs/vale-styles/Homebrew/README.md index a713f91d75..ce3e0c3ac7 100644 --- a/docs/vale-styles/Homebrew/README.md +++ b/docs/vale-styles/Homebrew/README.md @@ -1 +1,3 @@ +# Vale Styles + Based on Homebrew's [Prose Style Guidelines](http://docs.brew.sh/Prose-Style-Guidelines.html). From 5db5c6e99a4b00688f9fc772ed56d5aa603f41a4 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Sat, 26 Nov 2022 17:41:36 +0100 Subject: [PATCH 18/33] fix: allow running bin/brew with SHELLOPTS=nounset A similar fix is already present on line 6. --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 4725cb6d3d..5aa7de0ce7 100755 --- a/bin/brew +++ b/bin/brew @@ -21,7 +21,7 @@ fi # Fail fast with concise message when requesting unfiltered environment. # This is basically odisabled so can be removed at any major release afterwards # and definitely if this is still here in 2023. -if [ -n "${HOMEBREW_NO_ENV_FILTERING}" ] +if [ -n "${HOMEBREW_NO_ENV_FILTERING:-}" ] then echo "Error: HOMEBREW_NO_ENV_FILTERING was deprecated for over a year and has now been removed (because it breaks many things)!" >&2 exit 1 From 27dd46d6a9cf9478f1d42f3d8c424b5bfa30d46a Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 27 Nov 2022 09:06:56 +0000 Subject: [PATCH 19/33] bin/brew: add GITHUB_OUTPUT --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 4725cb6d3d..2b028feef3 100755 --- a/bin/brew +++ b/bin/brew @@ -131,7 +131,7 @@ ENV_VAR_NAMES=( HOME SHELL PATH TERM TERMINFO TERMINFO_DIRS COLUMNS DISPLAY LOGNAME USER CI SSH_AUTH_SOCK SUDO_ASKPASS http_proxy https_proxy ftp_proxy no_proxy all_proxy HTTPS_PROXY FTP_PROXY ALL_PROXY GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED - GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_ATTEMPT GITHUB_SHA GITHUB_HEAD_REF GITHUB_BASE_REF GITHUB_REF + GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_ATTEMPT GITHUB_SHA GITHUB_HEAD_REF GITHUB_BASE_REF GITHUB_REF GITHUB_OUTPUT ) # Filter all but the specific variables. for VAR in "${ENV_VAR_NAMES[@]}" "${!HOMEBREW_@}" From 4d4f476f7342b914a5e14ffced2f430cd51e9384 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Mon, 28 Nov 2022 19:31:28 +0100 Subject: [PATCH 20/33] set -u and fix follow up errors --- bin/brew | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/brew b/bin/brew index 5aa7de0ce7..f030a9822b 100755 --- a/bin/brew +++ b/bin/brew @@ -1,4 +1,5 @@ #!/bin/bash +set -u # Fail fast with concise message when not using bash # Single brackets is needed here for POSIX compatibility @@ -87,11 +88,11 @@ HOMEBREW_LIBRARY="${HOMEBREW_REPOSITORY}/Library" for VAR in BAT_THEME BROWSER DISPLAY EDITOR NO_COLOR TMUX DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR CODESPACES do # Skip if variable value is empty. - [[ -z "${!VAR}" ]] && continue + [[ -z "${!VAR:-}" ]] && continue VAR_NEW="HOMEBREW_${VAR}" # Skip if existing HOMEBREW_* variable is set. - [[ -n "${!VAR_NEW}" ]] && continue + [[ -n "${!VAR_NEW:-}" ]] && continue export "${VAR_NEW}"="${!VAR}" done unset VAR VAR_NEW @@ -113,7 +114,7 @@ fi # shellcheck disable=SC2154 # Set CI variable for Azure Pipelines and Jenkins # (Set by default on GitHub Actions, Circle and Travis CI) -if [[ -z "${CI}" ]] && [[ -n "${TF_BUILD}" || -n "${JENKINS_HOME}" ]] +if [[ -z "${CI:-}" ]] && [[ -n "${TF_BUILD:-}" || -n "${JENKINS_HOME:-}" ]] then export CI="1" fi @@ -137,7 +138,7 @@ ENV_VAR_NAMES=( for VAR in "${ENV_VAR_NAMES[@]}" "${!HOMEBREW_@}" do # Skip if variable value is empty. - [[ -z "${!VAR}" ]] && continue + [[ -z "${!VAR:-}" ]] && continue FILTERED_ENV+=("${VAR}=${!VAR}") done From 43c3c59ca471af5c9a524e5eaf0ade1fad6ba4d6 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Mon, 28 Nov 2022 19:34:20 +0100 Subject: [PATCH 21/33] fix one more --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index f030a9822b..9d055ac371 100755 --- a/bin/brew +++ b/bin/brew @@ -105,7 +105,7 @@ export HOMEBREW_LIBRARY # set from user environment # shellcheck disable=SC2154 # Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset. -if [[ -z "${HOMEBREW_EDITOR}" && -n "${VISUAL}" ]] +if [[ -z "${HOMEBREW_EDITOR:-}" && -n "${VISUAL}" ]] then export HOMEBREW_EDITOR="${VISUAL}" fi From a5b29a79e6aaa5bf2a903a97570feec1caf75940 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Mon, 28 Nov 2022 19:36:03 +0100 Subject: [PATCH 22/33] and another one --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 9d055ac371..86b2973657 100755 --- a/bin/brew +++ b/bin/brew @@ -105,7 +105,7 @@ export HOMEBREW_LIBRARY # set from user environment # shellcheck disable=SC2154 # Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset. -if [[ -z "${HOMEBREW_EDITOR:-}" && -n "${VISUAL}" ]] +if [[ -z "${HOMEBREW_EDITOR:-}" && -n "${VISUAL:-}" ]] then export HOMEBREW_EDITOR="${VISUAL}" fi From 3e0bb1778086b1627e620aea86edd6f93fa46be3 Mon Sep 17 00:00:00 2001 From: Kai Hoewelmeyer Date: Mon, 28 Nov 2022 19:54:30 +0100 Subject: [PATCH 23/33] please shellcheck --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 86b2973657..2da56eb7a5 100755 --- a/bin/brew +++ b/bin/brew @@ -22,7 +22,7 @@ fi # Fail fast with concise message when requesting unfiltered environment. # This is basically odisabled so can be removed at any major release afterwards # and definitely if this is still here in 2023. -if [ -n "${HOMEBREW_NO_ENV_FILTERING:-}" ] +if [[ -n "${HOMEBREW_NO_ENV_FILTERING:-}" ]] then echo "Error: HOMEBREW_NO_ENV_FILTERING was deprecated for over a year and has now been removed (because it breaks many things)!" >&2 exit 1 From 195381226e355d146892aaa64a9a27431cfbba43 Mon Sep 17 00:00:00 2001 From: Magnus Markling Date: Tue, 29 Nov 2022 08:02:36 +0100 Subject: [PATCH 24/33] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11dc51d447..67f91cfd87 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Features, usage and installation instructions are [summarised on the homepage](h 1. Type `brew formulae` for a list. 2. Or visit [formulae.brew.sh](https://formulae.brew.sh) to browse packages online. -3. Or use `brew search --desc ` to browse packages from the command line. +3. Or use `brew search --eval-all --desc ` to browse packages from the command line. ## More Documentation From 49bacd681eb77958da75897ec7bef1ac7f480653 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 29 Nov 2022 09:21:34 +0000 Subject: [PATCH 25/33] diagnostic: remove some checks. - Some of these are currently failing globally on GitHub Actions. - Some(/all?) of these predate our use of the macOS sandbox, environment filtering, PATH filtering and pushing users much harder to use bottles instead of building from source - I haven't seen a case for a long time where any of these actually debugged a user issue. If/when this happens: we can add a given check back. - This should allow us to dramatically reduce the amount of cleanup that `brew test-bot` needs to do on GitHub Actions. --- Library/Homebrew/diagnostic.rb | 74 ------------------- .../Homebrew/test/diagnostic_checks_spec.rb | 28 ------- 2 files changed, 102 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 3ba875be8d..5e0abe78b7 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -181,32 +181,6 @@ module Homebrew EOS end - # Anaconda installs multiple system & brew dupes, including OpenSSL, Python, - # sqlite, libpng, Qt, etc. Regularly breaks compile on Vim, MacVim and others. - # Is flagged as part of the *-config script checks below, but people seem - # to ignore those as warnings rather than extremely likely breakage. - def check_for_anaconda - return unless which("anaconda") - return unless which("python") - - anaconda_directory = which("anaconda").realpath.dirname - python_binary = Utils.popen_read(which("python"), "-c", "import sys; sys.stdout.write(sys.executable)") - python_directory = Pathname.new(python_binary).realpath.dirname - - # Only warn if Python lives with Anaconda, since is most problematic case. - return unless python_directory == anaconda_directory - - <<~EOS - Anaconda is known to frequently break Homebrew builds, including Vim and - MacVim, due to bundling many duplicates of system and Homebrew-provided - tools. - - If you encounter a build failure please temporarily remove Anaconda - from your $PATH and attempt the build again prior to reporting the - failure to us. Thanks! - EOS - end - def __check_stray_files(dir, pattern, allow_list, message) return unless File.directory?(dir) @@ -477,54 +451,6 @@ module Homebrew EOS end - def check_for_config_scripts - return unless HOMEBREW_CELLAR.exist? - - real_cellar = HOMEBREW_CELLAR.realpath - - scripts = [] - - allowlist = %W[ - /bin /sbin - /usr/bin /usr/sbin - /usr/X11/bin /usr/X11R6/bin /opt/X11/bin - #{HOMEBREW_PREFIX}/bin #{HOMEBREW_PREFIX}/sbin - /Applications/Server.app/Contents/ServerRoot/usr/bin - /Applications/Server.app/Contents/ServerRoot/usr/sbin - ] - if OS.mac? && Hardware::CPU.physical_cpu_arm64? - allowlist += %W[ - #{HOMEBREW_MACOS_ARM_DEFAULT_PREFIX}/bin - #{HOMEBREW_MACOS_ARM_DEFAULT_PREFIX}/sbin - #{HOMEBREW_DEFAULT_PREFIX}/bin - #{HOMEBREW_DEFAULT_PREFIX}/sbin - ] - end - allowlist.map!(&:downcase) - - paths.each do |p| - next if allowlist.include?(p.downcase) || !File.directory?(p) - - realpath = Pathname.new(p).realpath.to_s - next if realpath.start_with?(real_cellar.to_s, HOMEBREW_CELLAR.to_s) - - scripts += Dir.chdir(p) { Dir["*-config"] }.map { |c| File.join(p, c) } - end - - return if scripts.empty? - - inject_file_list scripts, <<~EOS - "config" scripts exist outside your system or Homebrew directories. - `./configure` scripts often look for *-config scripts to determine if - software packages are installed, and which additional flags to use when - compiling and linking. - - Having additional scripts in your path can confuse software installed via - Homebrew if the config script overrides a system or Homebrew-provided - script of the same name. We found the following "config" scripts: - EOS - end - def check_for_symlinked_cellar return unless HOMEBREW_CELLAR.exist? return unless HOMEBREW_CELLAR.symlink? diff --git a/Library/Homebrew/test/diagnostic_checks_spec.rb b/Library/Homebrew/test/diagnostic_checks_spec.rb index 1961013310..f47c627619 100644 --- a/Library/Homebrew/test/diagnostic_checks_spec.rb +++ b/Library/Homebrew/test/diagnostic_checks_spec.rb @@ -11,21 +11,6 @@ describe Homebrew::Diagnostic::Checks do expect(checks.inject_file_list(%w[/a /b], "foo:\n")).to eq("foo:\n /a\n /b\n") end - specify "#check_for_anaconda" do - mktmpdir do |path| - anaconda = "#{path}/anaconda" - python = "#{path}/python" - FileUtils.touch anaconda - File.write(python, "#! #{`which bash`}\necho -n '#{python}'\n") - FileUtils.chmod 0755, anaconda - FileUtils.chmod 0755, python - - ENV["PATH"] = "#{path}#{File::PATH_SEPARATOR}#{ENV.fetch("PATH")}" - - expect(checks.check_for_anaconda).to match("Anaconda") - end - end - specify "#check_access_directories" do skip "User is root so everything is writable." if Process.euid.zero? begin @@ -90,19 +75,6 @@ describe Homebrew::Diagnostic::Checks do sbin.rmtree end - specify "#check_for_config_scripts" do - mktmpdir do |tmp| - file = "#{tmp}/foo-config" - FileUtils.touch file - FileUtils.chmod 0755, file - homebrew_path = "#{tmp}#{File::PATH_SEPARATOR}#{ENV.fetch("PATH")}" - stub_const("ORIGINAL_PATHS", PATH.new(homebrew_path).map { |path| Pathname.new(path).expand_path }.compact) - - expect(checks.check_for_config_scripts) - .to match('"config" scripts exist') - end - end - specify "#check_for_symlinked_cellar" do HOMEBREW_CELLAR.rmtree From e9cc25f5ef46aeeb8ea4f4b5aff2707f6179dcc0 Mon Sep 17 00:00:00 2001 From: Magnus Markling Date: Tue, 29 Nov 2022 10:29:49 +0100 Subject: [PATCH 26/33] Update README.md Remove `brew search` entirely as per suggestion. Co-authored-by: Mike McQuaid --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 67f91cfd87..5f98d8de27 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ Features, usage and installation instructions are [summarised on the homepage](h 1. Type `brew formulae` for a list. 2. Or visit [formulae.brew.sh](https://formulae.brew.sh) to browse packages online. -3. Or use `brew search --eval-all --desc ` to browse packages from the command line. ## More Documentation From d69b8277151afeb2832885dc5891f4325b449af9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:38:32 +0000 Subject: [PATCH 27/33] build(deps): bump bootsnap from 1.14.0 to 1.15.0 in /Library/Homebrew Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.14.0 to 1.15.0. - [Release notes](https://github.com/Shopify/bootsnap/releases) - [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md) - [Commits](https://github.com/Shopify/bootsnap/compare/v1.14.0...v1.15.0) --- updated-dependencies: - dependency-name: bootsnap dependency-type: direct:production 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 476cb60fec..e99e46069c 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -11,7 +11,7 @@ GEM public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) bindata (2.4.14) - bootsnap (1.14.0) + bootsnap (1.15.0) msgpack (~> 1.2) byebug (11.1.3) coderay (1.1.3) From b00046eec13d31e2b8260f6ce2b3e837ac253b31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:38:40 +0000 Subject: [PATCH 28/33] build(deps): bump parser from 3.1.2.1 to 3.1.3.0 in /Library/Homebrew Bumps [parser](https://github.com/whitequark/parser) from 3.1.2.1 to 3.1.3.0. - [Release notes](https://github.com/whitequark/parser/releases) - [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/whitequark/parser/compare/v3.1.2.1...v3.1.3.0) --- updated-dependencies: - dependency-name: parser dependency-type: indirect update-type: version-update:semver-patch ... 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 476cb60fec..01ce03c4bf 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -82,7 +82,7 @@ GEM parser rainbow (~> 3.0) sorbet-runtime (>= 0.5) - parser (3.1.2.1) + parser (3.1.3.0) ast (~> 2.4.1) patchelf (1.4.0) elftools (>= 1.2) From d121cd6cc14ffa71648fa9e12dbb024ff9b980d4 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:42:15 +0000 Subject: [PATCH 29/33] brew vendor-gems: commit updates. --- Library/Homebrew/vendor/bundle/bundler/setup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index ebdb030d81..f82564c91d 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -35,8 +35,8 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/bindata-2.4.14/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/msgpack-1.6.0") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/msgpack-1.6.0/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/bootsnap-1.14.0") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/bootsnap-1.14.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/bootsnap-1.15.0") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/bootsnap-1.15.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/byebug-11.1.3") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/byebug-11.1.3/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/coderay-1.1.3/lib") From 36c1a15eda14254fdac1c328ec174e4562110297 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:44:27 +0000 Subject: [PATCH 30/33] brew vendor-gems: commit updates. --- Library/Homebrew/vendor/bundle/bundler/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index ebdb030d81..c83d7ecf15 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -76,7 +76,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/mustache-1.1.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel-1.22.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel_tests-3.13.0/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.1.2.1/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.1.3.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.10461/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-8.0.0/lib") From 23ef33c3b1e25384c999135383fdd7f199fc693b Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:47:12 +0000 Subject: [PATCH 31/33] Update RBI files for bootsnap. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. --- .../rbi/gems/{bootsnap@1.14.0.rbi => bootsnap@1.15.0.rbi} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{bootsnap@1.14.0.rbi => bootsnap@1.15.0.rbi} (94%) diff --git a/Library/Homebrew/sorbet/rbi/gems/bootsnap@1.14.0.rbi b/Library/Homebrew/sorbet/rbi/gems/bootsnap@1.15.0.rbi similarity index 94% rename from Library/Homebrew/sorbet/rbi/gems/bootsnap@1.14.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/bootsnap@1.15.0.rbi index 79fbb1ef35..01601c3fcc 100644 --- a/Library/Homebrew/sorbet/rbi/gems/bootsnap@1.14.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/bootsnap@1.15.0.rbi @@ -18,7 +18,7 @@ module Bootsnap def logger; end def logger=(logger); end def rb_get_path(fname); end - def setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), ignore_directories: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil), compile_cache_json: T.unsafe(nil)); end + def setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), ignore_directories: T.unsafe(nil), readonly: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil), compile_cache_json: T.unsafe(nil)); end def unload_cache!; end end end @@ -26,7 +26,7 @@ end module Bootsnap::CompileCache class << self def permission_error(path); end - def setup(cache_dir:, iseq:, yaml:, json:); end + def setup(cache_dir:, iseq:, yaml:, json:, readonly: T.unsafe(nil)); end def supported?; end end end @@ -54,7 +54,7 @@ module Bootsnap::LoadPathCache def enabled?; end def load_path_cache; end def loaded_features_index; end - def setup(cache_path:, development_mode:, ignore_directories:); end + def setup(cache_path:, development_mode:, ignore_directories:, readonly: T.unsafe(nil)); end def supported?; end def unload!; end end @@ -193,7 +193,7 @@ Bootsnap::LoadPathCache::PathScanner::REQUIRABLE_EXTENSIONS = T.let(T.unsafe(nil Bootsnap::LoadPathCache::SLASH = T.let(T.unsafe(nil), String) class Bootsnap::LoadPathCache::Store - def initialize(store_path); end + def initialize(store_path, readonly: T.unsafe(nil)); end def fetch(key); end def get(key); end From be73fc19dd19819fca0ede70f28b3964b348e4e5 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:49:22 +0000 Subject: [PATCH 32/33] Update RBI files for parser. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. --- .../gems/{parser@3.1.2.1.rbi => parser@3.1.3.0.rbi} | 12 ++++++++++++ .../sorbet/rbi/hidden-definitions/hidden.rbi | 10 ++++++++++ 2 files changed, 22 insertions(+) rename Library/Homebrew/sorbet/rbi/gems/{parser@3.1.2.1.rbi => parser@3.1.3.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/parser@3.1.2.1.rbi b/Library/Homebrew/sorbet/rbi/gems/parser@3.1.3.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/parser@3.1.2.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/parser@3.1.3.0.rbi index be9ded832c..796ecf178d 100644 --- a/Library/Homebrew/sorbet/rbi/gems/parser@3.1.2.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/parser@3.1.3.0.rbi @@ -59,6 +59,8 @@ class Parser::AST::Processor < ::AST::Processor def on_find_pattern(node); end def on_for(node); end def on_forward_arg(node); end + def on_forwarded_kwrestarg(node); end + def on_forwarded_restarg(node); end def on_gvar(node); end def on_gvasgn(node); end def on_hash(node); end @@ -235,6 +237,8 @@ class Parser::Builders::Default def forward_arg(dots_t); end def forward_only_args(begin_t, dots_t, end_t); end def forwarded_args(dots_t); end + def forwarded_kwrestarg(dstar_t); end + def forwarded_restarg(star_t); end def gvar(token); end def hash_pattern(lbrace_t, kwargs, rbrace_t); end def ident(token); end @@ -520,6 +524,7 @@ class Parser::Lexer def static_env=(_arg0); end def tokens; end def tokens=(_arg0); end + def version; end protected @@ -528,6 +533,7 @@ class Parser::Lexer def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end def emit_do(do_block = T.unsafe(nil)); end + def emit_invalid_escapes?; end def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end def encode_escape(ord); end def eof_codepoint?(point); end @@ -1610,9 +1616,13 @@ class Parser::StaticEnvironment def declare(name); end def declare_anonymous_blockarg; end + def declare_anonymous_kwrestarg; end + def declare_anonymous_restarg; end def declare_forward_args; end def declared?(name); end def declared_anonymous_blockarg?; end + def declared_anonymous_kwrestarg?; end + def declared_anonymous_restarg?; end def declared_forward_args?; end def empty?; end def extend_dynamic; end @@ -1622,6 +1632,8 @@ class Parser::StaticEnvironment end Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol) +Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol) +Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol) Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) class Parser::SyntaxError < ::StandardError diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index e28a0e05db..bdddf4875f 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -6723,6 +6723,10 @@ class RuboCop::AST::Node def cask_block?(param0=T.unsafe(nil)); end + def forwarded_kwrestarg_type?(); end + + def forwarded_restarg_type?(); end + def key_node(param0=T.unsafe(nil)); end def method_node(param0=T.unsafe(nil)); end @@ -6748,6 +6752,12 @@ module RuboCop::AST::NodePattern::Sets SET____ETC_4 = ::T.let(nil, ::T.untyped) end +module RuboCop::AST::Traversal + def on_forwarded_kwrestarg(node); end + + def on_forwarded_restarg(node); end +end + class RuboCop::Cask::AST::Stanza def app?(); end From c27eed4606f32a88723cb8be1022c531abcc51eb Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Fri, 25 Nov 2022 12:09:59 +1100 Subject: [PATCH 33/33] Curl: Fix following redirections when base changes Update base URL when there is an absolute location, so that following relative locations are considered relative to the new base. Consider below cURL output for https://example_one.com: HTTP/1.1 302 Moved Temporarily Location: https://example_two.com HTTP/1.1 302 Moved Temporarily Location: /foo/ HTTP/1.1 200 OK The final URL should be https://example_two.com/foo/ rather than https://example_one.com/foo/. --- Library/Homebrew/download_strategy.rb | 2 +- Library/Homebrew/test/utils/curl_spec.rb | 54 ++++++++++++++++++++++++ Library/Homebrew/utils/curl.rb | 24 +++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index c10858a353..acce289519 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -471,7 +471,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy lines = output.to_s.lines.map(&:chomp) - final_url = curl_response_last_location(parsed_output[:responses], absolutize: true, base_url: url) + final_url = curl_response_follow_redirections(parsed_output[:responses], url) final_url ||= url content_disposition_parser = Mechanize::HTTP::ContentDispositionParser.new diff --git a/Library/Homebrew/test/utils/curl_spec.rb b/Library/Homebrew/test/utils/curl_spec.rb index 841f29c21c..e098e642eb 100644 --- a/Library/Homebrew/test/utils/curl_spec.rb +++ b/Library/Homebrew/test/utils/curl_spec.rb @@ -556,4 +556,58 @@ describe "Utils::Curl" do expect(curl_response_last_location([response_hash[:ok]])).to be_nil end end + + describe "#curl_response_follow_redirections" do + it "returns the original URL when there are no location headers" do + expect( + curl_response_follow_redirections( + [response_hash[:ok]], + "https://brew.sh/test1/test2", + ), + ).to eq("https://brew.sh/test1/test2") + end + + it "returns the URL relative to base when locations are relative" do + expect( + curl_response_follow_redirections( + [response_hash[:redirection_root_relative], response_hash[:ok]], + "https://brew.sh/test1/test2", + ), + ).to eq("https://brew.sh/example/") + + expect( + curl_response_follow_redirections( + [response_hash[:redirection_parent_relative], response_hash[:ok]], + "https://brew.sh/test1/test2", + ), + ).to eq("https://brew.sh/test1/example/") + + expect( + curl_response_follow_redirections( + [ + response_hash[:redirection_parent_relative], + response_hash[:redirection_parent_relative], + response_hash[:ok], + ], + "https://brew.sh/test1/test2", + ), + ).to eq("https://brew.sh/test1/example/example/") + end + + it "returns new base when there are absolute location(s)" do + expect( + curl_response_follow_redirections( + [response_hash[:redirection], response_hash[:ok]], + "https://brew.sh/test1/test2", + ), + ).to eq(location_urls[0]) + + expect( + curl_response_follow_redirections( + [response_hash[:redirection], response_hash[:redirection_parent_relative], response_hash[:ok]], + "https://brew.sh/test1/test2", + ), + ).to eq("#{location_urls[0]}example/") + end + end end diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 8fe6ca9772..93e23254b6 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -506,6 +506,30 @@ module Utils nil end + # Returns the final URL by following location headers in cURL responses. + # @param responses [Array] An array of hashes containing response + # status information and headers from `#parse_curl_response`. + # @param base_url [String] The URL to use as a base. + # @return [String] The final absolute URL after redirections. + sig { + params( + responses: T::Array[T::Hash[Symbol, T.untyped]], + base_url: String, + ).returns(String) + } + def curl_response_follow_redirections(responses, base_url) + responses.each do |response| + next if response[:headers].blank? + + location = response[:headers]["location"] + next if location.blank? + + base_url = URI.join(base_url, location).to_s + end + + base_url + end + private # Parses HTTP response text from `curl` output into a hash containing the