28539 Commits

Author SHA1 Message Date
Mike McQuaid
b9fb7c5dbf
Merge pull request #15162 from Homebrew/dependabot/bundler/Library/Homebrew/addressable-2.8.3
build(deps): bump addressable from 2.8.2 to 2.8.3 in /Library/Homebrew
2023-04-06 08:42:08 +01:00
Mike McQuaid
104434c1d9
Merge pull request #15150 from muzimuzhi/tap-formula-file
Tighten `tap.formula_file?(file)` and `tap.formula_files` to not detect cask file as formula
2023-04-06 08:37:50 +01:00
Yukai Chou
0cfc4ab1e8 fixup! avoid duplicating logic 2023-04-06 05:03:56 +08:00
Yukai Chou
16c81d7a55 tighten tap.formula_files similarly 2023-04-06 05:00:21 +08:00
Yukai Chou
1098cb6a7d avoid duplicating logic 2023-04-06 04:59:55 +08:00
BrewTestBot
e7e80ad8af
Update RBI files for addressable.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-04-05 19:10:42 +00:00
BrewTestBot
60ae89c245
brew vendor-gems: commit updates. 2023-04-05 19:04:35 +00:00
dependabot[bot]
bd94eab349
build(deps): bump addressable from 2.8.2 to 2.8.3 in /Library/Homebrew
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.8.2 to 2.8.3.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.8.2...addressable-2.8.3)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 18:58:03 +00:00
Mike McQuaid
61efc7076d
Merge pull request #15156 from dduugg/enable-types 2023-04-05 15:43:53 +01:00
Mike McQuaid
79edc3b5da
Merge pull request #15158 from MikeMcQuaid/coretap_installed 2023-04-05 11:41:11 +01:00
Mike McQuaid
e12ca4cee6
Merge pull request #15152 from dduugg/version-compare 2023-04-05 11:40:03 +01:00
Mike McQuaid
3404767cd0
Merge pull request #15154 from apainintheneck/cop-to-prevent-bin-in-service-blocks 2023-04-05 11:35:33 +01:00
Mike McQuaid
0eb6c63140
Merge pull request #15157 from dduugg/block-types 2023-04-05 11:34:18 +01:00
Mike McQuaid
61eec0002d
tap: remove some CoreTap installed? checks.
We should be using the API unless specifically requested not to.

Fixes #15153.
2023-04-05 09:19:20 +01:00
Mike McQuaid
1c87b8e67a
Merge pull request #15148 from ZhongRuoyu/commands-command_description
commands: explain change in command description splitting
2023-04-05 09:01:42 +01:00
Ruoyu Zhong
c7f3e72e6b
commands: make the description splitting pattern a constant 2023-04-05 15:16:38 +08:00
Douglas Eichelberger
47ffcd5cb7 Add types to block params 2023-04-04 22:42:27 -07:00
Douglas Eichelberger
c5ffec1a11 Enable types in dev-cmd, etc. 2023-04-04 22:23:46 -07:00
apainintheneck
70451ea7b1 Add cop to stop bin in service block
The preferred method is opt_bin because that works
with the API and is more portable (works between versions).

Also removed the last example from the docs of `bin/"name"`
from the service block section
2023-04-04 20:00:30 -07:00
Douglas Eichelberger
ba2d18db36 brew style --fix 2023-04-04 18:14:54 -07:00
Douglas Eichelberger
c0092c2fd2 Move and re-namespace HeadVersion 2023-04-04 18:14:54 -07:00
Douglas Eichelberger
a237a1ff9f Update call sites 2023-04-04 18:14:54 -07:00
Douglas Eichelberger
29f93fb6f2 Add tests 2023-04-04 18:14:54 -07:00
Douglas Eichelberger
0ca4f7eebb Add Version#compare 2023-04-04 18:14:54 -07:00
Yukai Chou
b1b94187af tap: tighten formula_file?(file)
Cask is never a formula.
2023-04-05 03:41:11 +08:00
Mike McQuaid
97d7a5c9b4
Merge pull request #15137 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.2.2.0
build(deps): bump parser from 3.2.1.1 to 3.2.2.0 in /Library/Homebrew
2023-04-04 18:46:11 +01:00
Issy Long
7cfa544aec
cask/utils: Make more noise when encountering undefined methods
- https://github.com/Homebrew/homebrew-cask/actions/runs/4608585102/jobs/8144571098
  introduced syntax errors for the `mattermost` cask (`autoupdates`
  instead of `auto_updates`), but CI didn't fail so we didn't notice
  until it shipped to users and broke `brew update`.
2023-04-04 17:08:54 +01:00
Mike McQuaid
41e7ee7b51
Merge pull request #15125 from issyl0/rubocops-cask-verified-url-with-path-ending-slash
rubocops/cask: Ensure that "verified" URLs with paths end with "/"
2023-04-04 16:30:09 +01:00
Issy Long
7bb20a3b83
Skip if the URL stanza has only two path components
https://github.com/Homebrew/homebrew-cask-fonts/pull/7336#discussion_r1156325651
2023-04-04 16:11:44 +01:00
Ruoyu Zhong
5c9e073cd5
commands: fix completion descriptions for shell commands too
This was missed in #15146.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-04-04 23:04:13 +08:00
Ruoyu Zhong
4305443c9c
commands: explain change in command description splitting
A comment here would help the reader to understand the need for this
splitting logic, which is not so straightforward.

Addresses review comment in
https://github.com/Homebrew/brew/pull/15146#discussion_r1157361656.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-04-04 22:50:40 +08:00
Mike McQuaid
0048a86673
Merge pull request #15135 from Homebrew/dependabot/bundler/Library/Homebrew/addressable-2.8.2
build(deps): bump addressable from 2.8.1 to 2.8.2 in /Library/Homebrew
2023-04-04 15:37:46 +01:00
Ruoyu Zhong
68b63427c6
commands: fix completion descriptions
Currently, zsh and fish shell completions show incomplete descriptions
for certain commands. For example:

    docs                         -- Open Homebrew's online documentation (https://docs
    rbenv-sync                   -- Create symlinks for Homebrew's installed Ruby versions in ~/

This is because `Commands.command_description` produces incomplete
short descriptions for the commands having a dot (from a URL or a path)
in the first sentence; the dot is misinterpreted as a full stop:

    brew(main):001:0> Commands.command_description("docs", short: true)
    => "Open Homebrew's online documentation (https://docs"
    brew(main):002:0> Commands.command_description("rbenv-sync", short: true)
    => "Create symlinks for Homebrew's installed Ruby versions in ~/"

We can improve the sentence splitting logic by only splitting at dots
either at the end or followed by a whitespace. Now With this change:

    brew(main):001:0> Commands.command_description("docs", short: true)
    => "Open Homebrew's online documentation (https://docs.brew.sh) in a browser"
    brew(main):002:0> Commands.command_description("rbenv-sync", short: true)
    => "Create symlinks for Homebrew's installed Ruby versions in ~/.rbenv/versions"

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-04-04 18:39:13 +08:00
BrewTestBot
9217c90bbb
Update RBI files for addressable.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-04-04 09:32:44 +00:00
BrewTestBot
1c425c1e6f
brew vendor-gems: commit updates. 2023-04-04 09:25:57 +00:00
BrewTestBot
16e17d63be
Update RBI files for parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-04-04 09:21:14 +00:00
dependabot[bot]
19c122955c
build(deps): bump addressable from 2.8.1 to 2.8.2 in /Library/Homebrew
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.8.1...addressable-2.8.2)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 09:19:15 +00:00
BrewTestBot
91226a3131
brew vendor-gems: commit updates. 2023-04-04 09:15:32 +00:00
dependabot[bot]
0640dbbe09
build(deps): bump parser from 3.2.1.1 to 3.2.2.0 in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.2.1.1 to 3.2.2.0.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.2.1.1...v3.2.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 09:11:40 +00:00
Mike McQuaid
7b336ed8cd
Revert "Split prof gems into their own group" 2023-04-04 08:49:27 +01:00
Markus Reiter
2222ac628e
Merge pull request #15129 from reitermarkus/livecheck-screensavers
Include screen savers in `:extract_plist` strategy.
2023-04-04 09:39:52 +02:00
Markus Reiter
e57143542a
Consider dictionary stanzas in livechecks. 2023-04-04 05:06:58 +02:00
Douglas Eichelberger
79f6c7c7da brew style --fix 2023-04-03 17:35:47 -07:00
Douglas Eichelberger
f3a8241e69 Remove useless T.unsafe wrappers 2023-04-03 17:34:39 -07:00
Markus Reiter
cf3054526a
Use select instead of flat_map. 2023-04-03 20:47:15 +02:00
Mike McQuaid
a88397096d
Merge pull request #15121 from singingwolfboy/pip-no-build-isolation
Python: allow --no-build-isolation for pip install
2023-04-03 13:14:19 +01:00
Mike McQuaid
6fef708b17
Merge pull request #15120 from apainintheneck/handle-service-run-cmd-string
service: handle string run cmd
2023-04-03 13:02:54 +01:00
Mike McQuaid
7b4c09f41f
Merge pull request #15124 from dduugg/enable-types
Enable types in extensions, etc.
2023-04-03 12:42:21 +01:00
Mike McQuaid
aa894fbfcd
Merge pull request #15127 from issyl0/tap-workflows-bump-actions-cache-version
dev-cmd/tap-new: Use `actions/cache@v3` as v1 is very deprecated
2023-04-03 08:47:16 +01:00
Mike McQuaid
b10ba24c80
Merge pull request #15123 from carlocab/only_dependencies_earlier
install: check for `--only-dependencies` flag earlier
2023-04-03 08:44:38 +01:00