38364 Commits

Author SHA1 Message Date
Patrick Linnane
d7a0f299b4
Merge pull request #16248 from Homebrew/sync-triage-config
Synchronize triage configuration
2023-11-22 08:33:51 -08:00
BrewTestBot
bf8f77ff49
triage-issues.yml: update to match main configuration 2023-11-22 16:09:43 +00:00
Bo Anderson
6831367e65
Merge pull request #16247 from Homebrew/sync-triage-config
Synchronize triage configuration
2023-11-22 15:40:13 +00:00
BrewTestBot
0272993626
triage-issues.yml: update to match main configuration 2023-11-22 10:51:36 +00:00
Bo Anderson
50864cf8ae
Merge pull request #16246 from Bo98/ruby3-earlier
brew.sh: set HOMEBREW_RUBY3 earlier
2023-11-22 01:14:21 +00:00
Bo Anderson
ad2c1c9bad
test/os/mac/diagnostic: fix when env is not set 2023-11-22 01:02:46 +00:00
Bo Anderson
6502524456
brew.sh: set HOMEBREW_RUBY3 earlier 2023-11-22 00:51:43 +00:00
Bo Anderson
f6a741b90e
Merge pull request #16245 from Bo98/gha-umask-fix
Dockerfile: set `XDG_CACHE_HOME` to fix `umask` in GitHub Actions
2023-11-22 00:17:07 +00:00
Bo Anderson
54abce335e
Dockerfile: set XDG_CACHE_HOME to fix umask in GitHub Actions 2023-11-21 23:44:16 +00:00
Bo Anderson
189d709c41
Merge pull request #16241 from Bo98/ruby3-developers
Enable Ruby 3 for `HOMEBREW_DEVELOPER` and the Docker image
2023-11-21 23:40:31 +00:00
Bo Anderson
7a9f3eb800
utils/ruby.sh: don't _require_ 3.1 in HOMEBREW_RUBY3 mode 2023-11-21 15:03:22 +00:00
Mike McQuaid
0956d473a8
Merge pull request #16242 from Bo98/umask
Dockerfile: fix default umask
2023-11-21 13:59:00 +00:00
Anatoli Babenia
51b16585fb formula_creator: Remove path attr to reduce code complexity
`path` attribute is used only once, and it is easier to calculate
it on the fly than to update its state after different methods.
2023-11-21 13:28:47 +03:00
Bo Anderson
559336c771
Enable Ruby 3 for HOMEBREW_DEVELOPER 2023-11-20 20:04:18 +00:00
Mike McQuaid
705bfe316c
Merge pull request #16240 from Homebrew/dependabot/bundler/Library/Homebrew/json_schemer-2.1.0
build(deps-dev): bump json_schemer from 2.0.0 to 2.1.0 in /Library/Homebrew
2023-11-20 19:15:58 +00:00
Bo Anderson
9c1c116804
Dockerfile: fix default umask 2023-11-20 18:54:58 +00:00
BrewTestBot
b5733fceeb
Update RBI files for json_schemer.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-11-20 18:39:17 +00:00
BrewTestBot
65faab59c4
brew vendor-gems: commit updates. 2023-11-20 18:33:49 +00:00
dependabot[bot]
a43ba37425
build(deps-dev): bump json_schemer in /Library/Homebrew
Bumps [json_schemer](https://github.com/davishmcclurg/json_schemer) from 2.0.0 to 2.1.0.
- [Changelog](https://github.com/davishmcclurg/json_schemer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/davishmcclurg/json_schemer/compare/v2.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: json_schemer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 18:29:27 +00:00
Mike McQuaid
6d65c4c679
Merge pull request #16239 from ZhongRuoyu/interesting-taps-apple-apple
docs/Interesting-Taps-and-Forks: add `apple/apple`
2023-11-20 17:06:54 +00:00
Ruoyu Zhong
8ae66eb5f9
docs/Interesting-Taps-and-Forks: add apple/apple
I guess a tap made by Apple is interesting enough.
2023-11-21 00:44:54 +08:00
Kevin
ad1bb178d4
Merge pull request #16234 from samford/livecheck/xml-add-element_text-method
Xml: Add #element_text method
4.1.21
2023-11-19 09:05:07 -08:00
Kevin
bd2c9791a9
Merge pull request #16233 from Bo98/formula_files_by_name-optimise
tap: optimise `CoreTap#formula_files_by_name`
2023-11-18 12:32:16 -08:00
Sam Ford
5a3632efa4
xml_spec: Standardize XPath expressions
The XML examples used in `Xml` strategy tests is known/predictable,
so the related XPaths can be explicit instead of loose.
2023-11-17 22:34:12 -05:00
Sam Ford
9bfe423a5a
Xml: Add #element_text method
This refactors verbose code in the `Sparkle` strategy where we access
element text into a reusable `Xml#element_text` method, replacing
chained calls like `item.elements["title"]&.text&.strip&.presence`
with `Xml.element_text(item, "title")`.

`#element_text` is only used to retrieve the text of a child element
in the `Sparkle` strategy but it can also retrieve the text from the
provided element if the `child_path` argument is omitted (i.e.,
`Xml.element_text(item)`). This will allow us to also avoid similar
calls like `item.text.strip.presence` in the future.
2023-11-17 22:34:12 -05:00
Bo Anderson
b1ddb056db
tap: optimise CoreTap#formula_files_by_name 2023-11-18 01:01:41 +00:00
Bo Anderson
5fa5f3b0aa
Merge pull request #16230 from Homebrew/dependabot/bundler/Library/Homebrew/public_suffix-5.0.4
build(deps): bump public_suffix from 5.0.3 to 5.0.4 in /Library/Homebrew
2023-11-17 18:36:13 +00:00
BrewTestBot
2a3341acb3
Update RBI files for public_suffix.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-11-17 18:16:48 +00:00
BrewTestBot
a4962a6677
brew vendor-gems: commit updates. 2023-11-17 18:10:48 +00:00
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
e9f05fea44
Merge pull request #16232 from Bo98/vendor-gems-lock-add
dev-cmd/vendor-gems: git add Gemfile.lock
2023-11-17 17:58:26 +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
Mike McQuaid
b2716f09df
Merge pull request #16229 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2023-11-17 11:53:36 +00:00
BrewTestBot
b8f9c93881
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.
2023-11-17 11:42:12 +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
508fc2a0e3
workflows/doctor: use brew determine-test-runners 2023-11-17 02:11:01 +00:00
Bo Anderson
ca549fa10d
dev-cmd/determine-test-runner: add --all-supported 2023-11-17 02:11:01 +00:00
Bo Anderson
146b987faa
Merge pull request #16226 from Bo98/lockfile-platform
Gemfile.lock: restore missing platform
2023-11-17 01:57:55 +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