26835 Commits

Author SHA1 Message Date
Sam Ford
987e6888b3
Merge pull request #13236 from samford/parse_curl_response-handle-duplicate-headers
`parse_curl_response`: Handle duplicate headers
2022-05-06 21:44:11 -04:00
BrewTestBot
bd2d7d92ca
Update RBI files for sorbet. 2022-05-06 18:12:10 +00:00
BrewTestBot
0e1a70740b
brew vendor-gems: commit updates. 2022-05-06 18:08:10 +00:00
dependabot[bot]
19967da9e5
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9967 to 0.5.9976.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 18:04:14 +00:00
Sam Ford
40b8fd3406
url_protected_by_*: Check multiple headers
Before `#parse_curl_output` was introduced and related methods were
updated to use it, `#url_protected_by_cloudflare?` and
`#url_protected_by_incapsula?` were checking a string of all the
headers from a response and using a regex to check related header
values.

However, when `#curl_http_content_headers_and_checksum` was updated
to use `#parse_curl_output` internally, the `:headers` value became
a hash generated by `#parse_curl_response`. The `#url_protected_by_*`
methods were updated to work with the hash value but this wasn't able
to fully replicate the previous behavior because
`#parse_curl_response` was only keeping the last instance of a given
header (maintaining pre-existing behavior). This is an issue for
these methods because they check `Set-Cookie` headers and there can
be multiple instances of this header in a response.

This commit updates these methods to handle an array of strings in
addition to the existing string support. This change ensures that
these methods properly check all `Set-Cookie` headers, effectively
reinstating the previous behavior.

Past that, this updates one of the early return values in
`#url_protected_by_cloudflare?` to be `false` instead of an implicit
`nil`. After adding a type signature to this method, it became clear
that it wasn't always returning a boolean value and this fixes it.
2022-05-06 10:51:26 -04:00
Sam Ford
94449d07c0
parse_curl_response: Handle duplicate headers
`Curl#parse_curl_response` only includes the last instance of a given
header in its `:headers` hash (replicating pre-existing behavior).
This is a problem for headers like `Set-Cookie`, which can appear more
than once in a response.

This commit addresses the issue by collecting duplicate headers into
an array instead. Headers that only appear once in the response will
still have a string value but headers that appear more than once will
be an array of strings. Whenever headers from `#parse_curl_response`
are used (directly or indirectly), it's important to conditionally
handle the expected types.
2022-05-06 10:51:22 -04:00
Alex Balgavy
b886b2d1f7
Remove mentions of nonexistent command brew diy
The output of `brew doctor` can mention a command `brew diy`, which no
longer exists.
2022-05-06 10:22:25 -04:00
Nanda H Krishna
14ff6be6d0
Merge pull request #13252 from Homebrew/dependabot/bundler/Library/Homebrew/json_schemer-0.2.21
build(deps): bump json_schemer from 0.2.20 to 0.2.21 in /Library/Homebrew
2022-05-05 18:00:54 -04:00
Nanda H Krishna
76b4789e6a
Merge pull request #13250 from Homebrew/dependabot/bundler/Library/Homebrew/nokogiri-1.13.5
build(deps): bump nokogiri from 1.13.4 to 1.13.5 in /Library/Homebrew
2022-05-05 18:00:35 -04:00
BrewTestBot
4ae8f514ef
Update RBI files for json_schemer. 2022-05-05 18:13:45 +00:00
BrewTestBot
93b635a4e4
Update RBI files for nokogiri. 2022-05-05 18:10:55 +00:00
BrewTestBot
586d0df348
brew vendor-gems: commit updates. 2022-05-05 18:09:20 +00:00
BrewTestBot
8efbfe799a
brew vendor-gems: commit updates. 2022-05-05 18:08:58 +00:00
BrewTestBot
5974c0cb7d
brew vendor-gems: commit updates. 2022-05-05 18:06:32 +00:00
dependabot[bot]
ce4849e445
build(deps): bump json_schemer in /Library/Homebrew
Bumps [json_schemer](https://github.com/davishmcclurg/json_schemer) from 0.2.20 to 0.2.21.
- [Release notes](https://github.com/davishmcclurg/json_schemer/releases)
- [Commits](https://github.com/davishmcclurg/json_schemer/compare/v0.2.20...v0.2.21)

---
updated-dependencies:
- dependency-name: json_schemer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 18:05:05 +00:00
dependabot[bot]
0df699cc70
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9964 to 0.5.9967.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 18:04:39 +00:00
dependabot[bot]
05903cf84f
build(deps): bump nokogiri from 1.13.4 to 1.13.5 in /Library/Homebrew
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.4 to 1.13.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.13.4...v1.13.5)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 18:04:04 +00:00
Carlo Cabrera
4cc306dacf
Merge pull request #13240 from cho-m/linux-rpath-order
superenv: prioritize dependencies' `opt_lib` in Linux rpath
2022-05-05 17:08:42 +08:00
Mike McQuaid
1c9f218e6c
Merge pull request #13245 from boblail/lail/brew-update---quiet
Document the `--quiet` flag on `brew update`
2022-05-05 09:57:24 +01:00
BrewTestBot
a91e5bf056
brew vendor-gems: commit updates. 2022-05-04 18:08:35 +00:00
dependabot[bot]
f00fb4bf72
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9962 to 0.5.9964.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 18:03:08 +00:00
Alexander Bayandin
08e94d0a6f
Merge pull request #13223 from bayandin/force-text-encoding 2022-05-04 16:55:20 +01:00
Bob Lail
c715ea7fd1 Document the --quiet flag on brew update 2022-05-04 10:52:19 -05:00
Mike McQuaid
6d0bf18d7f
Merge pull request #13237 from apainintheneck/tests-changed-option
'brew tests --changed' supports changed test files
2022-05-04 14:34:59 +01:00
Carlo Cabrera
c586aeffc8
cmd/info: use Formula.all
Fixes #13241.
2022-05-04 16:41:25 +08:00
Michael Cho
b6905fe0f9
superenv: prioritize dependencies' opt_lib in Linux rpath 2022-05-03 23:14:30 -07:00
Alexander Bayandin
6643f58b49
utils/curl: get encoding from header 2022-05-04 00:13:56 +01:00
BrewTestBot
449fc16bab
brew vendor-gems: commit updates. 2022-05-03 18:05:11 +00:00
dependabot[bot]
b8777d095b
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9959 to 0.5.9962.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 18:02:36 +00:00
Mike McQuaid
5760e6eb9d
Merge pull request #13229 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9959
build(deps-dev): bump sorbet from 0.5.9889 to 0.5.9959 in /Library/Homebrew
2022-05-03 09:48:22 +01:00
apainintheneck
489d38324b 'brew tests --changed' supports changed test files 2022-05-03 01:04:22 -07:00
apainintheneck
0dd3764041 Allow casks with outdated caskfiles to be reinstalled
The problem occurred when calling `brew reinstall` on a cask
with an out of date caskfile.

To solve the problem Cask::Installer#uninstall_existing_cask has been changed to
catch a possible CaskInvalidError when trying to load outdated
caskfiles using Cask::CaskLoader#load.
2022-05-02 23:39:18 -07:00
Bo Anderson
bb38f4bd5f
Renegerate all RBI files for new Sorbet 2022-05-02 21:03:05 +01:00
Bo Anderson
2ca517c79a
dev-cmd/typecheck: add --all switch 2022-05-02 21:03:02 +01:00
Bo Anderson
48bf0cc7ad
Update RBI files for parlour. 2022-05-02 20:48:42 +01:00
BrewTestBot
5de4756e3a
brew vendor-gems: commit updates. 2022-05-02 20:44:07 +01:00
dependabot[bot]
457805959c
build(deps-dev): bump parlour from 6.0.1 to 7.0.0 in /Library/Homebrew
Bumps [parlour](https://github.com/AaronC81/parlour) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/AaronC81/parlour/releases)
- [Changelog](https://github.com/AaronC81/parlour/blob/master/CHANGELOG.md)
- [Commits](https://github.com/AaronC81/parlour/compare/6.0.1...7.0.0)

---
updated-dependencies:
- dependency-name: parlour
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 20:43:14 +01:00
BrewTestBot
3877df2eac
brew vendor-gems: commit updates. 2022-05-02 19:28:34 +00:00
dependabot[bot]
a982a15bfb
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9889 to 0.5.9959.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 19:22:11 +00:00
BrewTestBot
12dfa1fbd2
Update RBI files for tapioca. 2022-05-02 18:51:49 +00:00
BrewTestBot
cb71c1d7f7
brew vendor-gems: commit updates. 2022-05-02 18:46:31 +00:00
dependabot[bot]
d57887b21d
build(deps-dev): bump tapioca from 0.7.1 to 0.7.2 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.7.1...v0.7.2)

---
updated-dependencies:
- dependency-name: tapioca
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 19:43:25 +01:00
Alexander Bayandin
4575ddf909
utils/curl: force utf-8 encoding for text content 2022-05-02 13:57:51 +01:00
Francois-Xavier Coudert
a30e27b403 compilers: add gcc-12 2022-04-30 22:05:35 +02:00
Mike McQuaid
ea722400cd
Merge pull request #13216 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.6.8
build(deps): bump rubocop-sorbet from 0.6.7 to 0.6.8 in /Library/Homebrew
2022-04-29 14:34:39 +01:00
Mike McQuaid
2c0bd31d68
Merge pull request #13215 from timvisher/fix/keep-info_name_dir-files-on-clean
Keep `info/#{f.name}/dir` files in cleaner
2022-04-29 14:23:04 +01:00
danielnachun
3aaef294f6
formula_installer: add check for HOMEBREW_RELOCATE_BUILD_PREFIX 2022-04-28 12:49:11 -07:00
BrewTestBot
00909fc282
Update RBI files for rubocop-sorbet. 2022-04-28 18:15:35 +00:00
BrewTestBot
5ccd9c5a1d
brew vendor-gems: commit updates. 2022-04-28 18:09:59 +00:00
dependabot[bot]
688f7c61b3
build(deps): bump rubocop-sorbet in /Library/Homebrew
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases)
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.6.7...v0.6.8)

---
updated-dependencies:
- dependency-name: rubocop-sorbet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-28 18:03:58 +00:00