43894 Commits

Author SHA1 Message Date
Douglas Eichelberger
19332ee1d5
Merge pull request #19383 from Homebrew/fix-yard-directives
docs: Remove misused YARD directives
2025-02-25 20:56:58 +00:00
Douglas Eichelberger
3b3c55ca0d
fix: Remove misused YARD directives 2025-02-25 11:55:37 -08:00
Douglas Eichelberger
cad6f53109
Merge pull request #19382 from Homebrew/fix-formula-type
fix: Revert breaking type change in Formula#std_npm_args
2025-02-25 19:34:21 +00:00
Douglas Eichelberger
a092403b16
Fix breaking type change in Formula#std_npm_args 2025-02-25 11:23:29 -08:00
Douglas Eichelberger
6bb2a4c8e2
Merge pull request #19380 from Homebrew/dependabot/pip/Library/Homebrew/formula-analytics/setuptools-75.8.1
build(deps): bump setuptools from 75.8.0 to 75.8.1 in /Library/Homebrew/formula-analytics
2025-02-25 19:20:23 +00:00
Douglas Eichelberger
0e90f34ab7
Merge pull request #19381 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-2d80ecae37
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-02-25 19:20:18 +00:00
BrewTestBot
4b2ce255ec
Update RBI files for sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-02-25 19:00:23 +00:00
BrewTestBot
92f4ff88e4
brew vendor-gems: commit updates. 2025-02-25 19:00:19 +00:00
BrewTestBot
0b8ae8f2fe
Update RBI files for setuptools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-02-25 19:00:10 +00:00
dependabot[bot]
d520b7dc72
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet), [sorbet-runtime](https://github.com/sorbet/sorbet), [sorbet](https://github.com/sorbet/sorbet) and [sorbet-static](https://github.com/sorbet/sorbet).


Updates `sorbet-static-and-runtime` from 0.5.11851 to 0.5.11856
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-runtime` from 0.5.11851 to 0.5.11856
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet` from 0.5.11851 to 0.5.11856
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static` from 0.5.11851 to 0.5.11856
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-static
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 18:57:03 +00:00
dependabot[bot]
95a0675eb7
build(deps): bump setuptools in /Library/Homebrew/formula-analytics
Bumps [setuptools](https://github.com/pypa/setuptools) from 75.8.0 to 75.8.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v75.8.0...v75.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 18:44:10 +00:00
Douglas Eichelberger
9cb5ecf8b3
Merge pull request #19379 from Homebrew/fix-formula-type
Fix return type of Formula.build
2025-02-25 17:15:51 +00:00
Douglas Eichelberger
6cd9daffdf
Fix return type of Formula.build 2025-02-25 09:03:01 -08:00
Carlo Cabrera
81f1647b3d
Merge pull request #19377 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2025-02-25 16:58:17 +00:00
Sam Ford
6291c24004
Merge pull request #19293 from Homebrew/livecheck/options
livecheck: add Options class
2025-02-25 16:50:51 +00:00
BrewTestBot
302d33c26e
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.
2025-02-25 16:00:57 +00:00
Sam Ford
749a7c846e
Add livecheck_find_versions_parameters tests 2025-02-25 10:56:32 -05:00
Sam Ford
0bb18b33b2
Livecheck::Options: Add #merge! 2025-02-25 10:56:32 -05:00
Douglas Eichelberger
c1b9136805
rm unnecessary rbi file 2025-02-25 10:56:32 -05:00
Douglas Eichelberger
9aa8ab1789
Simplify livecheck_find_versions_parameters 2025-02-25 10:56:32 -05:00
Sam Ford
c1401ae360
Livecheck::Options: Enable typed: strong
This enables `typed: strong` in `Options` and resolves the related
errors.

I annotated the return value of `serialize` in `#to_hash` to resolve
a type error and then updated other methods to use `to_hash` instead.
This approach resolves similar type errors without duplicating the
same `serialize` annotation.

For `#==`, I switched `instance_of?(other.class)` to
`other.is_a?(Options)`, as Sorbet understands that `is_a?` ensures
`other` is an `Options` object but doesn't seem to understand
that `instance_of?` was doing the same thing. The tests continue to
pass with these changes, so hopefully this is fine.
2025-02-25 10:56:32 -05:00
Sam Ford
8afa354c35
Livecheck::Options: Rework as T::Struct
As suggested, this reworks `Options` to subclass `T::Struct`, which
simplifies the implementation and makes it easier to maintain.

One noteworthy difference in switching to `T::Struct` is that
`#serialize` omits `nil` values but I don't _think_ this should be a
problem for us. In terms of changes, I modified `#merge` to remove a
now-unnecessary `compact` call and updated related tests.

Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
2025-02-25 10:56:32 -05:00
Sam Ford
b6eb945320
livecheck: Add Options class
This adds a `Livecheck::Options` class, which is intended to house
various configuration options that are set in `livecheck` blocks,
conditionally set by livecheck at runtime, etc. The general idea is
that when we add features involving configurations options (e.g., for
livecheck, strategies, curl, etc.), we can make changes to `Options`
without needing to modify parameters for strategy `find_versions`
methods, `Strategy` methods like `page_headers` and `page_content`,
etc. This is something that I've been trying to improve over the years
and `Options` should help to reduce maintenance overhead in this area
while also strengthening type signatures.

`Options` replaces the existing `homebrew_curl` option (which related
strategies pass to `Strategy` methods and on to `curl_args`) and the
new `url_options` (which contains `post_form` or `post_json` values
that are used to make `POST` requests). I recently added `url_options`
as a temporary way of enabling `POST` support without `Options` but
this restores the original `Options`-based implementation.

Along the way, I added a `homebrew_curl` parameter to the `url` DSL
method, allowing us to set an explicit value in `livecheck` blocks.
This is something that we've needed in some cases but I also intend
to replace implicit/inferred `homebrew_curl` usage with explicit
values in `livecheck` blocks once this is available for use. My
intention is to eventually remove the implicit behavior and only rely
on explicit values. That will align with how `homebrew_curl` options
work for other URLs and makes the behavior clear just from looking at
the `livecheck` block.

Lastly, this removes the `unused` rest parameter from `find_versions`
methods. I originally added `unused` as a way of handling parameters
that some `find_versions` methods have but others don't (e.g., `cask`
in `ExtractPlist`), as this allowed us to pass various arguments to
`find_versions` methods without worrying about whether a particular
parameter is available. This isn't an ideal solution and I originally
wanted to handle this situation by only passing expected arguments to
`find_versions` methods but there was a technical issue standing in
the way. I recently found an answer to the issue, so this also
replaces the existing `ExtractPlist` special case with generic logic
that checks the parameters for a strategy's `find_versions` method
and only passes expected arguments.

Replacing the aforementioned `find_versions` parameters with `Options`
ensures that the remaining parameters are fairly consistent across
strategies and any differences are handled by the aforementioned
logic. Outside of `ExtractPlist`, the only other difference is that
some `find_versions` methods have a `provided_content` parameter but
that's currently only used by tests (though it's intended for caching
support in the future). I will be renaming that parameter to `content`
in an upcoming PR and expanding it to the other strategies, which
should make them all consistent outside of `ExtractPlist`.
2025-02-25 10:56:31 -05:00
Mike McQuaid
7c514724af
Merge pull request #19375 from Homebrew/homebrew_upgrade_greedy_casks
Add `HOMEBREW_UPGRADE_GREEDY_CASKS`
2025-02-25 15:46:36 +00:00
Mike McQuaid
b1559f38a0
Add HOMEBREW_UPGRADE_GREEDY_CASKS
A space-separated list of casks. Homebrew will act as if `--greedy`
was passed when upgrading any cask on this list.
2025-02-25 15:34:49 +00:00
Mike McQuaid
be7e3ac2e1
Merge pull request #19376 from Homebrew/issue_types
.github/ISSUE_TEMPLATE/*: use issue types.
2025-02-25 14:14:57 +00:00
Mike McQuaid
9e04d9cb34
.github/ISSUE_TEMPLATE/*: use issue types.
These are new and shiny so let's use them.
2025-02-25 14:00:34 +00:00
Mike McQuaid
b4dbbf19a2
Merge pull request #19373 from gromgit/diagnostic/fix-call
diagnostic: fix call to missing_dependencies
2025-02-25 11:25:52 +00:00
Adrian Ho
571da49165 diagnostic: fix call to missing_dependencies
Followup to #19323.
2025-02-25 19:12:11 +08:00
Mike McQuaid
e49b36d118
Merge pull request #19323 from Homebrew/typed-formula
Enable strict typing in Formula
2025-02-25 08:36:24 +00:00
Douglas Eichelberger
cdb6a3df84
Merge pull request #19356 from Homebrew/nilable-demodulize
refactor: move nil check inside demodulize
2025-02-24 20:07:44 +00:00
Patrick Linnane
e647b747dd
Merge pull request #19368 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-40d3d6f023
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-02-24 20:00:06 +00:00
Patrick Linnane
d931be837f
Merge pull request #19369 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.16.11
build(deps-dev): bump tapioca from 0.16.10 to 0.16.11 in /Library/Homebrew
2025-02-24 19:59:08 +00:00
Douglas Eichelberger
936b9b5369
Move nil check inside demodulize 2025-02-24 11:57:20 -08:00
BrewTestBot
c98a434e46
Update RBI files for tapioca.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-02-24 19:49:30 +00:00
BrewTestBot
af60b687ef
brew vendor-gems: commit updates. 2025-02-24 19:49:18 +00:00
BrewTestBot
1054444dcf
brew vendor-gems: commit updates. 2025-02-24 19:48:56 +00:00
Patrick Linnane
5c37e962a1
Merge pull request #19370 from Homebrew/sponsors-maintainers-man-completions
Update sponsors.
2025-02-24 19:47:50 +00:00
dependabot[bot]
b57e8fc853
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet), [sorbet-runtime](https://github.com/sorbet/sorbet), [sorbet](https://github.com/sorbet/sorbet) and [sorbet-static](https://github.com/sorbet/sorbet).


Updates `sorbet-static-and-runtime` from 0.5.11845 to 0.5.11851
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-runtime` from 0.5.11845 to 0.5.11851
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet` from 0.5.11845 to 0.5.11851
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static` from 0.5.11845 to 0.5.11851
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-static
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 19:19:24 +00:00
BrewTestBot
8b1ab754cc
Update sponsors.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-24 19:15:38 +00:00
Eric Knibbe
f6d0146b1a
Merge pull request #19363 from Homebrew/dependabot/github_actions/artifacts-19ac703470
build(deps): bump actions/upload-artifact from 4.6.0 to 4.6.1 in the artifacts group
2025-02-24 19:05:31 +00:00
Eric Knibbe
7be29861e7
Merge pull request #19364 from Homebrew/dependabot/github_actions/docker/build-push-action-6.14.0
build(deps): bump docker/build-push-action from 6.13.0 to 6.14.0
2025-02-24 19:05:17 +00:00
Eric Knibbe
0a8ef622a9
Merge pull request #19365 from Homebrew/dependabot/github_actions/codecov/test-results-action-1.0.4
build(deps): bump codecov/test-results-action from 1.0.3 to 1.0.4
2025-02-24 19:05:07 +00:00
Eric Knibbe
a27936164e
Merge pull request #19366 from Homebrew/dependabot/github_actions/github/codeql-action-3.28.10
build(deps): bump github/codeql-action from 3.28.9 to 3.28.10
2025-02-24 19:04:57 +00:00
Eric Knibbe
5f7f26f8f1
Merge pull request #19367 from Homebrew/dependabot/github_actions/actions/cache-4.2.1
build(deps): bump actions/cache from 4.2.0 to 4.2.1
2025-02-24 19:04:40 +00:00
dependabot[bot]
42f89a868f
build(deps-dev): bump tapioca in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.16.10 to 0.16.11.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.16.10...v0.16.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:48:17 +00:00
dependabot[bot]
bfcfa55e86
build(deps): bump actions/cache from 4.2.0 to 4.2.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](1bd1e32a3b...0c907a75c2)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:45:20 +00:00
dependabot[bot]
ffa9193e15
build(deps): bump github/codeql-action from 3.28.9 to 3.28.10
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.9 to 3.28.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](9e8d0789d4...b56ba49b26)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:45:16 +00:00
dependabot[bot]
c728639d56
build(deps): bump codecov/test-results-action from 1.0.3 to 1.0.4
Bumps [codecov/test-results-action](https://github.com/codecov/test-results-action) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/codecov/test-results-action/releases)
- [Commits](44ecb3a270...5c441a7bcc)

---
updated-dependencies:
- dependency-name: codecov/test-results-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:45:09 +00:00
dependabot[bot]
d8a2eab8bf
build(deps): bump docker/build-push-action from 6.13.0 to 6.14.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.13.0 to 6.14.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](ca877d9245...0adf995921)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 18:45:07 +00:00