30713 Commits

Author SHA1 Message Date
dependabot[bot]
dfb7a6371e
build(deps): bump public_suffix from 5.0.3 to 5.0.4 in /Library/Homebrew
Bumps [public_suffix](https://github.com/weppos/publicsuffix-ruby) from 5.0.3 to 5.0.4.
- [Changelog](https://github.com/weppos/publicsuffix-ruby/blob/main/CHANGELOG.md)
- [Commits](https://github.com/weppos/publicsuffix-ruby/compare/v5.0.3...v5.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-17 18:06:41 +00:00
Bo Anderson
34b1f37846
dev-cmd/vendor-gems: git add Gemfile.lock 2023-11-17 17:48:26 +00:00
Mike McQuaid
78b7d7e2d6
Merge pull request #16231 from Bo98/vendor-gem-workaround
dev-cmd/vendor-gems: workaround Dependabot removing lockfile platforms
2023-11-17 17:02:07 +00:00
Bo Anderson
58ff22eb55
dev-cmd/vendor-gem: workaround Dependabot removing lockfile platforms 2023-11-17 16:51:03 +00:00
Bo Anderson
efc71abf97
Merge pull request #16228 from Bo98/setup_path-ruby3-fix
standalone/init: don't pollute environment on Ruby 3 startup
2023-11-17 11:41:49 +00:00
Mike McQuaid
41d67bb28d
Merge pull request #16196 from samford/cask/rework-livecheck_min_os-audit
Use Sparkle sorting/filtering in #livecheck_min_os
2023-11-17 11:41:21 +00:00
Mike McQuaid
68c660f49c
Merge pull request #16227 from Bo98/determine-all-runners
dev-cmd/determine-test-runner: add `--all-supported`
2023-11-17 11:41:08 +00:00
Bo Anderson
585f5cdeb3
standalone/init: don't pollute environment on Ruby 3 startup 2023-11-17 02:17:13 +00:00
Bo Anderson
ca549fa10d
dev-cmd/determine-test-runner: add --all-supported 2023-11-17 02:11:01 +00:00
Bo Anderson
71f0533b17
Gemfile.lock: restore missing platform 2023-11-17 01:46:43 +00:00
Sam Ford
75ce7240fc
Sparkle: Refactor macOS os strings into constant 2023-11-16 12:05:25 -05:00
Sam Ford
491e2c4a80
Reorder #audit_min_os array for consistency
This change doesn't affect the behavior of the `#audit_min_os`
method and simply reorders the array members to place `plist_min_os`
before `sparkle_min_os` for the sake of consistency (using the same
order as the preceding lines).
2023-11-16 12:05:25 -05:00
Sam Ford
28451bd2bc
Use Sparkle sorting/filtering in #livecheck_min_os
The `#livecheck_min_os` cask audit method manually replicates some of
the `Sparkle` strategy's behavior but in an incomplete way that has
lead to inappropriate audit failures at times. This reimplements it
to use `Livecheck` methods, so it will align with the `Sparkle`
strategy's behavior.
2023-11-16 12:05:24 -05:00
Sam Ford
d376b46a7d
Skip items strategy blocks in #livecheck_min_os
The `#livecheck_min_os` cask audit method should be skipped when a
`Sparkle` `livecheck` block contains a `strategy` block that uses
the `items` argument (instead of `item`). These `strategy` blocks
contain arbitrary logic that ignores/overrides the strategy's sorting,
so we can't identify which item would be first/newest.
2023-11-16 12:05:24 -05:00
Sam Ford
bc2ce97e5d
Sparkle: Move sorting/filtering into methods
We need to be able to replicate the `Sparkle` strategy's sorting
and filtering behavior in a related cask audit, so this extracts
the logic into reusable methods.

This also stores `item.minimum_system_version` as a `MacOSVersion`
object (instead of a string), so we can do proper version comparison
(instead of naive string comparison) wherever needed.
2023-11-16 12:05:24 -05:00
Sam Ford
4f469234d0
Sparkle: Ensure empty strings become nil
Sometimes appcasts contain empty elements/attributes and the `Item`
values end up as an empty string because of how they're handled in
`#items_from_content`. It's reasonable to expect that empty values
would be `nil` instead, so this adds `#presence` calls to ensure this
is the case.
2023-11-16 12:05:24 -05:00
Rylan Polster
529f7b7953
Remove El Capitan system curl workaround 2023-11-16 11:47:48 -05:00
BrewTestBot
d9c7b9f70d
Update RBI files for unf_ext.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-11-16 16:40:04 +00:00
BrewTestBot
0f22f4ed90
brew vendor-gems: commit updates. 2023-11-16 16:35:26 +00:00
dependabot[bot]
e3355faa4d
build(deps-dev): bump unf_ext from 0.0.9 to 0.0.9.1 in /Library/Homebrew
Bumps [unf_ext](https://github.com/knu/ruby-unf_ext) from 0.0.9 to 0.0.9.1.
- [Changelog](https://github.com/knu/ruby-unf_ext/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knu/ruby-unf_ext/compare/v0.0.9...v0.0.9.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-16 16:31:25 +00:00
Rylan Polster
8704e79cc0
Separate MacOS references 2023-11-15 18:19:39 -05:00
Rylan Polster
0839e21425 Deprecate MacOS methods on Linux 2023-11-15 18:38:53 +00:00
Bo Anderson
7c20e1ef7c
Don't reinstall dependency when latest already installed 2023-11-14 17:13:34 +00:00
Carlo Cabrera
d26056bd9f
Merge pull request #16210 from carlocab/vendor-symlinks
dev-cmd/vendor-gems: fix creation of broken symlinks
2023-11-14 20:36:03 +08:00
Carlo Cabrera
d15ccaf92f
dev-cmd/vendor-gems: fix creation of broken symlinks
When the target symlink already points to an existing directory, the
`#ln_sf` call creates the symlink inside the intended target directory
(which is not what we intend to do here).

Let's fix that.

Closes #16205
2023-11-14 16:25:26 +08:00
Bo Anderson
63a8474ad7
ENV/shared: fix macOS code not applying under HOMEBREW_SORBET_RUNTIME 2023-11-14 02:10:26 +00:00
Rylan Polster
fb50cfa13d
Simplify tap assignment 2023-11-13 14:12:35 -05:00
Rylan Polster
74996ab32c
Remove new tap parameter to FormulaAPILoader 2023-11-13 14:07:34 -05:00
Rylan Polster
aa316109d9
Pass new tap to TapLoader
Co-authored-by: Alexander Mancevice <alexander.mancevice@hey.com>
2023-11-13 14:02:50 -05:00
Rylan Polster
237a42974b
Pass original tap to formula when loaded from the API via TapLoader 2023-11-13 13:40:44 -05:00
Rylan Polster
97b411906d
Refactor TapLoader to fix tap migrations with API 2023-11-11 16:48:05 -05:00
BrewTestBot
95da53d7d7
Update RBI files for unf_ext.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-11-11 17:58:02 +00:00
BrewTestBot
4429fdf2ad
brew vendor-gems: commit updates. 2023-11-11 17:53:11 +00:00
dependabot[bot]
1ca6605604
build(deps-dev): bump unf_ext from 0.0.8.2 to 0.0.9 in /Library/Homebrew
Bumps [unf_ext](https://github.com/knu/ruby-unf_ext) from 0.0.8.2 to 0.0.9.
- [Changelog](https://github.com/knu/ruby-unf_ext/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knu/ruby-unf_ext/compare/v0.0.8.2...v0.0.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-11 17:49:41 +00:00
Bo Anderson
fb21d59b5a
Improve coverage tracking 2023-11-11 05:36:40 +00:00
Mike McQuaid
5e47d3a4c9
Merge pull request #16152 from Bo98/runtime-dep-revision
Store and use revision in tab runtime dependencies
2023-11-10 19:31:23 +00:00
Bo Anderson
19f27f9a20
Store and use revision, where possible, in tab runtime dependencies.
Let's start storing `revision` and `pkg_version` for tab runtime
dependencies and use them when available.

When the `revision` is not available, use a conservative approach to
deciding whether dependencies need to be upgrade.

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-11-10 18:24:43 +00:00
Ruoyu Zhong
ac7a1bf775
utils/curl: fix Digest::SHA256 typo
Should fix the error seen in Homebrew/homebrew-core#153647 [^1]. This
was introduced in e5d656bcce8 and `Digest::256` seems to be the intended
one.

[^1]: https://github.com/Homebrew/homebrew-core/actions/runs/6805354565/job/18504732312?pr=153647#step:4:36
2023-11-10 23:12:08 +08:00
Mike McQuaid
e9aae0f8b0
utils/gems: improve behaviour (particularly with Ruby 3)
- Use `Tempfile.new` with a mode argument to avoid the default behaviour
  of creating a file with mode 0600 (only user-readable).
- Avoid writing the file if it already exists and the contents are
  unchanged.
2023-11-09 14:57:47 +00:00
Bevan Kay
5f79980938
cask/url headers parameter type fix 2023-11-09 10:23:13 +11:00
Bo Anderson
ae64469d5a
Merge pull request #16193 from Bo98/smarter-gem-cleanup
cleanup: smarter gem handling
2023-11-08 17:34:23 +00:00
apainintheneck
9a90c0fdfa cmd/desc: fix handling of --eval-all with formulae
This was caused by some refactoring of `Formula.all` a few months ago.

In this case, `eval-all` was not propagated to the Formula.all command
which caused a few different description related commands not to work.

Broken commands:
- `brew search --desc --eval-all TERM`
- `brew desc --search --eval-all TERM`
- `brew desc --descriptions --eval-all TERM`
2023-11-07 20:35:51 -08:00
Bo Anderson
5c819100fe
cleanup: smarter gem handling 2023-11-07 22:28:03 +00:00
Bo Anderson
386fd0548a
Support system Ruby 3 on Linux 2023-11-07 19:27:30 +00:00
Mike McQuaid
ff404fe5ab
Merge pull request #16184 from dduugg/rm-try
Remove use of ActiveSupport try
2023-11-06 13:11:01 +00:00
Mike McQuaid
d4bf3b0685
Merge pull request #16183 from dduugg/sorbet-updates
Sorbet updates for compatibility with recent releases
2023-11-06 13:10:12 +00:00
Mike McQuaid
0373b80628
Merge pull request #16187 from niu541412/master
Fix TypeError when building from source with gcc compiler in some MacOS version
2023-11-06 13:07:41 +00:00
Shu Niu
2809678f77
Fix TypeError with gcc compiler in deprecated MacOS
In some deprecated MacOS, e.g.10.13 High Sierra, when compiling formulae with --cc=gcc-XX, homebrew will raise "TypeError: Return value: Expected type Symbol, got type String with value".
Convert "other" string to symbol to solve this.
2023-11-06 14:08:41 +08:00
Razvan Azamfirei
df2aee4553
audit: add extract artifcats method 2023-11-05 17:18:32 -05:00
Razvan Azamfirei
e60523766e
audit: code review changes 2023-11-05 17:18:32 -05:00