20247 Commits

Author SHA1 Message Date
Mike McQuaid
85923ae711
homebrew_bootsnap: fix brew tests.
Use one of the possible temp variables and `raise` if not.
2021-01-25 10:54:33 +00:00
Mike McQuaid
95c6e92d9b
Merge pull request #10278 from zkokaja/add-cask-json-values
Add installed and outdated to cask json output
2021-01-25 10:04:25 +00:00
Mike McQuaid
97d56d122e
Merge pull request #10285 from nandahkrishna/refactor-utils-bump
Refactor `brew bump`
2021-01-25 09:59:48 +00:00
Mike McQuaid
d0e1c3dc5f
Merge pull request #10400 from issyl0/improve-brew-extract-args
dev-cmd/extract: Improve the usage instructions
2021-01-25 09:55:01 +00:00
Mike McQuaid
8da7e108a5
Merge pull request #10402 from Rylan12/audit-url-spec-fix
utils/curl: use specs when checking http content problems
2021-01-25 09:54:48 +00:00
Mike McQuaid
163fc10ced
Merge pull request #10415 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.4.1
build(deps): bump rubocop-ast from 1.4.0 to 1.4.1 in /Library/Homebrew
2021-01-25 09:47:11 +00:00
Mike McQuaid
10df5d9e76
Merge pull request #10414 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.6231
build(deps): bump sorbet from 0.5.6225 to 0.5.6231 in /Library/Homebrew
2021-01-25 09:46:52 +00:00
Mike McQuaid
1a20365ae5
Merge pull request #10398 from AntonioMeireles/allowQuarentineOnUpgrade
UX fix - Properly allow quarantine in 'upgrade'
2021-01-25 09:39:19 +00:00
BrewTestBot
874fbd12b4 Update RBI files for sorbet. 2021-01-25 07:11:50 +00:00
BrewTestBot
5315531dc5 brew vendor-gems: commit updates. 2021-01-25 07:11:00 +00:00
BrewTestBot
eaf46b2ff9 Update RBI files for rubocop-ast. 2021-01-25 07:09:37 +00:00
BrewTestBot
1f91ca9d3a brew vendor-gems: commit updates. 2021-01-25 07:08:48 +00:00
dependabot[bot]
c4bc0e1baa
build(deps): bump rubocop-ast from 1.4.0 to 1.4.1 in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop-hq/rubocop-ast) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/rubocop-hq/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-ast/compare/v1.4.0...v1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 07:05:51 +00:00
dependabot[bot]
8be3b30065
build(deps): bump sorbet from 0.5.6225 to 0.5.6231 in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.6225 to 0.5.6231.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 07:05:20 +00:00
Seeker
8d24fb1367 Output string instead of array for installed cask version 2021-01-24 18:27:23 -08:00
nandahkrishna
138f7de18f
Refactor brew bump: apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-01-24 19:10:47 +05:30
nandahkrishna
417b1d7a66
dev-cmd/bump: use Livecheck::SkipConditions 2021-01-24 19:10:47 +05:30
nandahkrishna
4fa01fc8b7
utils/repology: use project-by tool to retrieve Formula data 2021-01-24 19:10:47 +05:30
nandahkrishna
61ff1d7e74
dev-cmd/bump: fix skip message handling 2021-01-24 19:10:47 +05:30
nandahkrishna
e2ddf9894a
Refactor brew bump 2021-01-24 19:10:46 +05:30
Rylan Polster
7a0471f4c9
cask/cmd: fix tests 2021-01-23 17:50:41 -05:00
Rylan Polster
180d8ca2b2
utils/curl: use specs when checking http content problems 2021-01-23 17:30:59 -05:00
Rylan Polster
2c83ea7339
Merge pull request #10370 from Rylan12/brew-release
Add brew release command
2021-01-23 15:35:53 -05:00
Rylan Polster
01e894e9c6
parser: create NumberOfNamedArgumentsError
And commit `brew man` changes
2021-01-23 15:26:21 -05:00
Rylan Polster
f295e36a22
extract: re-add named arg types 2021-01-23 15:10:14 -05:00
Rylan Polster
b7b624c9bf
parser: clarify errors for invalid number of args 2021-01-23 15:06:44 -05:00
Issy Long
49b9b6cf3f
dev-cmd/extract: Improve the usage instructions
- A friend got an error message when trying to use `brew extract` and it
  wasn't immediately obvious to me why. The usage banner only mentioned
  the "formula" argument, which they'd provided. This improves the error
  message when there aren't enough arguments so that others have a
  chance of figuring out how to use this command without having to look
  at the code for `extract_args`.

Before:

```
➜ brew extract --version='1.4' libftdi
Usage: brew extract [--version=] [--force] formula ...
[...]
Error: Invalid usage: this command requires a formula argument
```

After:

```
➜ brew extract --version='1.4' libftdi
Usage: brew extract [options] formula tap
[...]
Error: Invalid usage: This command requires at least 2 named arguments.
```

- I don't like the "at least 2" phrasing here but that's a dive into the
  arg parsing code that I don't have time for right now. An alternative
  was `named_args [:formula, :destination_tap]`, but that gave the error
  message "requires formula or destination_tap" which wasn't great
  either. I also tried `min: 2, max: 2` and that was the same "at least
  2" message.
2021-01-23 20:01:11 +00:00
Rylan Polster
e13dc902df
Add tests and fix type signature 2021-01-23 02:06:12 -05:00
Seeker
9a99c40e37
Fix remaining broken cask options in upgrade 2021-01-22 13:52:42 -08:00
Seeker
779f2fc6ef os/mac/version: update method signatures 2021-01-22 09:58:01 -08:00
António Meireles
19f41bddfd Properly allow quarantine in 'upgrade'
issue was raised in #9139 for upgrade/reinstall --cask and was then
closed by #10284. Issue is that #10284 only actually fixed the reinstall
command, leaving behindd the 'upgrade' one which this now fixes.

Signed-off-by: António Meireles <antonio.meireles@reformi.st>
2021-01-22 17:39:19 +00:00
Mike McQuaid
2268e774a4
Merge pull request #10301 from hyuraku/cmd/cleanup_add_desc_about_all_to_prune
cmd/cleanup: add description about all to --prune
2021-01-22 14:57:13 +00:00
hyuraku
b4df0d5c10 cmd/cleanup: add desc about all to --prune 2021-01-22 20:53:48 +09:00
Mike McQuaid
60325a6f73
Merge pull request #10394 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.6225
build(deps): bump sorbet from 0.5.6223 to 0.5.6225 in /Library/Homebrew
2021-01-22 10:33:14 +00:00
Mike McQuaid
800ccb0163
Merge pull request #10395 from SeekingMeaning/bottle-spec-checksums
software_spec: change BottleSpecification#checksums to return array
2021-01-22 10:19:19 +00:00
Mike McQuaid
62c8f2b0ad
Merge pull request #10390 from MikeMcQuaid/bootsnap_fix
Fix HOMEBREW_BOOTSNAP setup
2021-01-22 09:38:03 +00:00
Seeker
8693ca4e4d software_spec: change BottleSpecification#checksums to return array 2021-01-21 22:52:26 -08:00
Jonathan Chang
3c84e1fef3
Merge pull request #10381 from jonchang/fix-version-type
version: fix type signature
2021-01-22 17:33:21 +11:00
BrewTestBot
ef7dd714cd brew vendor-gems: commit updates. 2021-01-22 06:21:12 +00:00
dependabot[bot]
eec1e39270
build(deps): bump sorbet from 0.5.6223 to 0.5.6225 in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.6223 to 0.5.6225.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-22 06:15:54 +00:00
Seeker
3f72d4033d
Merge pull request #10380 from SeekingMeaning/git-repo-branch-msg
utils/git_repository: add `::git_branch` and `::git_commit_message`
2021-01-21 20:00:27 -08:00
Rylan Polster
e1f73e407a
Add ReleaseNotes module 2021-01-21 18:30:16 -05:00
Rylan Polster
be02591cb6
Add brew release command 2021-01-21 18:29:43 -05:00
Rylan Polster
acede7315a
Merge pull request #10366 from Rylan12/auto-tap-fix
Don't tap user-untapped official taps
2021-01-21 15:47:07 -05:00
Mike McQuaid
dad1939142
Fix HOMEBREW_BOOTSNAP setup
- rename to `homebrew_bootsnap.rb` to avoid conflicting with the
  `bootsnap.rb` we need to `require`
- if the `require` fails: run bundler (until we vendor this gem)
2021-01-21 17:35:13 +00:00
Mike McQuaid
f6bc3efac6
Merge pull request #10389 from MikeMcQuaid/cleanup_raise
cleanup: raise failures and handle later.
2021-01-21 15:55:39 +00:00
Mike McQuaid
3acf92cdc7
Merge pull request #10388 from MikeMcQuaid/move_auto_update_secs
Move HOMEBREW_AUTO_UPDATE_SECS default definition
2021-01-21 15:55:31 +00:00
Mike McQuaid
7857993e07
Merge pull request #10374 from MikeMcQuaid/bootsnap
Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
2021-01-21 15:31:39 +00:00
Rylan Polster
ecfad29347
tap: write untapped setting only on manual untap 2021-01-21 08:42:22 -05:00
Mike McQuaid
e2f998d3e6
Move HOMEBREW_AUTO_UPDATE_SECS default definition
This ensure it'll always be set to a value.

Fixes https://github.com/Homebrew/brew/issues/10386
2021-01-21 13:19:06 +00:00