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
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
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
Razvan Azamfirei
c90e6e7b4b
cask/audit: add audit_min_os
2023-11-05 17:18:31 -05:00
Douglas Eichelberger
57baeb850d
Revert "bundle update sorbet-static-and-runtime"
...
This reverts commit c889eb5c661c5c473e3e8fe1f9e4b2fe2fea4c23.
2023-11-05 12:24:19 -08:00
Douglas Eichelberger
bf33991d80
Revert "git grep -l '10461' | xargs gsed -i 's|10461|11116|g'"
...
This reverts commit 61691aa48a27d867687396e75cc3d67a16766dc5.
2023-11-05 12:24:12 -08:00
Douglas Eichelberger
3c0506e276
Fix tag_to_cellar
2023-11-05 12:23:42 -08:00
Douglas Eichelberger
ca90f9866a
Resolve type error
2023-11-05 12:18:31 -08:00
Douglas Eichelberger
75179e9239
brew style --fix
2023-11-05 12:18:31 -08:00
Bo Anderson
2fd99da94c
Merge pull request #16180 from Bo98/tap-repair-fix
...
tap: fix repair not working in some cases
2023-11-05 20:05:26 +00:00
Douglas Eichelberger
00ba09d73d
Remove use of ActiveSupport try
2023-11-05 09:28:19 -08:00
Douglas Eichelberger
0191af7899
resolve typecheck errors
2023-11-05 08:55:58 -08:00
Douglas Eichelberger
61691aa48a
git grep -l '10461' | xargs gsed -i 's|10461|11116|g'
2023-11-05 08:46:35 -08:00
Douglas Eichelberger
c889eb5c66
bundle update sorbet-static-and-runtime
2023-11-05 08:44:36 -08:00
Bo Anderson
930f24b63f
Merge pull request #16182 from Bo98/formula_auditor-nil-tap
...
formula_auditor: handle nil tap
2023-11-05 01:14:02 +00:00
Bo Anderson
79441447f8
formula_auditor: handle nil tap
2023-11-05 00:59:16 +00:00
Bo Anderson
fa5ca71749
manpages: fix error under Ruby 3
2023-11-05 00:54:59 +00:00
Bo Anderson
34e4ec2460
tap: fix repair not working in some cases
2023-11-05 00:44:50 +00:00
Bo Anderson
735bc219eb
Merge pull request #16177 from Homebrew/dependabot/bundler/Library/Homebrew/racc-1.7.3
...
build(deps-dev): bump racc from 1.7.2 to 1.7.3 in /Library/Homebrew
2023-11-04 21:57:39 +00:00
Patrick Linnane
6c3eaf6832
Manpage: update GitHub rate limit link
2023-11-04 12:48:00 -07:00