29185 Commits

Author SHA1 Message Date
dependabot[bot]
c6cae5b080
build(deps): bump msgpack from 1.7.0 to 1.7.1 in /Library/Homebrew
Bumps [msgpack](https://github.com/msgpack/msgpack-ruby) from 1.7.0 to 1.7.1.
- [Changelog](https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog)
- [Commits](https://github.com/msgpack/msgpack-ruby/compare/v1.7.0...v1.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-20 18:47:00 +00:00
Markus Reiter
d55f1b85bf
Add --os and --arch flags to readall. 2023-05-20 20:11:31 +02:00
Markus Reiter
106a61c0a6
Merge pull request #15469 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-05-20 19:44:11 +02:00
Markus Reiter
31ba0d280f
Remove methods from formula.rbi. 2023-05-20 19:28:29 +02:00
BrewTestBot
9867b1cf3c
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-05-20 00:23:06 +00:00
Todd Neal
9c29cf942d remove mechanize-2.9.1 symlink to itself 2023-05-19 16:43:20 -05:00
Markus Reiter
7cc1b6191e
Clean up brew audit output. 2023-05-19 19:40:37 +02:00
Sam Ford
ba7cf9df7a
Bitbucket: Fix tag match
The `Bitbucket` strategy currently matches versions from tag
tarball links on a project's `downloads/?tab=tags` page. It appears
that Bitbucket now uses a hash as the filename on this page instead
of the tag name, so the existing regex no longer matches.

This adds an alternative regex to match versions from the tag name
element (e.g., `<td class="name">example-1.2.3</td>`), which will fix
version matching in this scenario.
2023-05-19 10:55:28 -04:00
Markus Reiter
8371dde56a
Merge pull request #15435 from reitermarkus/working-dir-expand
Expand `service` paths.
2023-05-19 15:15:10 +02:00
Markus Reiter
e9bfcb9296
Merge pull request #15225 from reitermarkus/audit-os-arch
Add `--os=all` and `--arch=all` options for `brew audit`.
2023-05-19 15:03:32 +02:00
Markus Reiter
ee5f12d633
Merge pull request #15461 from reitermarkus/curl-download
Simplify `curl_download`.
2023-05-19 15:03:18 +02:00
Markus Reiter
f984495db0
Merge pull request #15458 from reitermarkus/cask-renames-token
Fix wrong token in `Cask::Migrator`.
2023-05-19 14:53:07 +02:00
Markus Reiter
e7a9727f56
Simplify curl_download. 2023-05-19 14:39:46 +02:00
Markus Reiter
9885fbc129
Fix failing test. 2023-05-19 14:07:06 +02:00
Markus Reiter
c12ea0bc56
Also expand paths in command. 2023-05-18 20:00:46 +02:00
Markus Reiter
3484fa319b
Add tests. 2023-05-18 19:59:32 +02:00
Markus Reiter
7eff8957c4
Expand service paths. 2023-05-18 19:59:32 +02:00
Markus Reiter
beb4c044c2
Fix wrong token in Cask::Migrator. 2023-05-18 19:50:06 +02:00
Bo Anderson
2b703d5ed4
Merge pull request #15456 from Bo98/service-api-fix
service: fix API compatibility break
2023-05-18 15:12:21 +01:00
Mike McQuaid
1d794cd8c2
Merge pull request #15445 from binury/master
Add brew deps `--missing` arg
2023-05-18 15:08:48 +01:00
Bo Anderson
a3c96126cf
service: fix API compatibility break 2023-05-18 14:57:47 +01:00
Carlo Cabrera
6ac868a035
Merge pull request #15440 from carlocab/download-artifact-refactor
Refactor GitHub artifact downloads out of `dev-cmd/pr-pull`
2023-05-18 21:27:36 +08:00
Mike McQuaid
857dbfb2ea
Merge pull request #15455 from MikeMcQuaid/formulary_presence
formulary: use a lot more `.presence`.
2023-05-18 13:28:18 +01:00
Mike McQuaid
77f94ba5bf
formulary: use a lot more .presence.
Addresses regression in https://github.com/Homebrew/brew/pull/15396.

Fixes https://github.com/Homebrew/homebrew-core/issues/131284
Fixes https://github.com/Homebrew/homebrew-core/issues/131287
Fixes https://github.com/Homebrew/homebrew-bundle/issues/1205
2023-05-18 13:14:52 +01:00
Mike McQuaid
d70ebaea3d
Merge pull request #15409 from TheMDev/master
Download Strategy Dependency Missing Case
2023-05-18 13:09:57 +01:00
Kevin
946478aed4
Merge pull request #15396 from apainintheneck/custom-service-name
Custom service name
2023-05-17 22:09:31 -07:00
apainintheneck
f2adbf6613 service: change custom name DSL
After some discussion, we decided to change the DSL to get rid of
the `plist_name` and `service_name` methods which aren't meaningful
for most users.

The new DSL looks like this:

```rb
service do
  name macos: "name", linux: "name"
end
```

I also updated some specs here to reflect these changes.

There was some talk about maybe deprecating `plist_name` and `service_name`
but I think that's outside of the scope of this PR so I'm leaving
them as is for now. One benefit of this is that everything here is backwards
compatible.
2023-05-17 21:54:32 -07:00
Michael Wagner
78c07fd0e1
Fix Missing Download Strategy And Dependency 2023-05-17 16:30:00 -05:00
Robin Ury
dddec94fd7
Change: --skip-installed to --missing 2023-05-17 14:57:26 -05:00
Robin Ury
9b884942d7
Change: skip-installed description for clarity 2023-05-17 13:59:38 -05:00
Robin Ury
db84725c7b
Fix: strict args exception for uses 2023-05-17 13:53:19 -05:00
Robin Ury
6aa9a0e57b
Add brew deps --skip-installed arg 2023-05-17 13:53:19 -05:00
Carlo Cabrera
4c0912d95c
utils/github/artifacts: minor improvements 2023-05-17 23:54:45 +08:00
Carlo Cabrera
d7870bb24d
Move artifact download code to separate file
This will help avoid mutually-recursive `require`s.
2023-05-17 23:48:58 +08:00
Markus Reiter
a97e63efbf
Fix tests on generic OS. 2023-05-17 15:26:46 +02:00
Markus Reiter
486c3765ce
Add --os=all and --arch=all options. 2023-05-17 15:26:46 +02:00
Carlo Cabrera
43b6d79a4c
cleanup: handle GitHub Actions artifacts
Implemented based on feedback from #15440.
2023-05-17 21:11:16 +08:00
Carlo Cabrera
9260bd97e8
GitHubArtifactDownloadStrategy: fix initialize signature 2023-05-17 21:11:16 +08:00
Carlo Cabrera
ee6ef00a73
GitHubArtifactDownloadStrategy: set cache properly
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-05-17 21:11:16 +08:00
Carlo Cabrera
d372eb86ca
utils/github: remove unnecessary chdir call
The only existing caller already has the requested directory as the
workign directory, so this is currently not needed.
2023-05-17 21:11:15 +08:00
Carlo Cabrera
05337cbb79
Refactor GitHub artifact downloads out of dev-cmd/pr-pull
I plan to use these in `test-bot` to download built bottles from
previous CI runs.
2023-05-17 21:11:15 +08:00
Mike McQuaid
81c56a5e53
Merge pull request #15444 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-05-17 12:32:55 +01:00
BrewTestBot
df335e36f5
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-05-17 00:26:39 +00:00
Sam Ford
104d30d231
Finish renaming GithubRelease to GithubReleases 2023-05-16 16:08:18 -04:00
Sean Molenaar
940b63cad3
chore: rename GitHubRelease to GitHubReleases 2023-05-16 14:19:01 -04:00
Sam Ford
bed4737826
GithubRelease: Add tests
This adds tests to cover all of the strategy outside of the
`#find_versions` method, which we don't currently test because it
involves a network request.
2023-05-16 14:19:00 -04:00
Sam Ford
a2fb2b00fd
GithubRelease: Simplify block handling
The `#versions_from_content` method requires a regex and this will be
enforced by the type signature, so we don't have to check for the
presence of a regex when handling a `strategy` block.
2023-05-16 14:18:23 -04:00
Sam Ford
263f486806
GithubRelease: Add #generate_input_values method
Keeping the logic for generating the API URL in a method makes it
testable, aligns with other strategies, and will help to enable some
future work.
2023-05-16 14:18:23 -04:00
Sam Ford
701f7c5051
GithubRelease: Update type signature 2023-05-16 14:18:23 -04:00
Sam Ford
8a0f63e728
GithubRelease: Omit unnecessary prefix 2023-05-16 14:18:22 -04:00