3907 Commits

Author SHA1 Message Date
Markus Reiter
78cd6dc0a9 Allow “macOS virtual machines” in descriptions. 2020-09-19 04:30:54 +02:00
Markus Reiter
9a48568226 Check for descriptions starting with “the”. 2020-09-17 20:44:09 +02:00
Mike McQuaid
e7ab97a818
Merge pull request #8751 from miccal/java-spec
test/language/java_spec: drop version to 1.6+
2020-09-17 16:00:53 +01:00
Nanda H Krishna
4393df824e
Merge pull request #8643 from nandahkrishna/livecheck-rubocop
livecheck: add RuboCops
2020-09-17 20:09:09 +05:30
Nanda H Krishna
13d14e64cd
Merge pull request #8624 from nandahkrishna/tty-fix
utils/tty: handling a TTY stderr
2020-09-17 19:48:47 +05:30
nandahkrishna
7c3c459f47
livecheck: add RuboCops 2020-09-17 15:57:19 +05:30
Jonathan Chang
3a8bd8514f utils/git: add cherry-pick function 2020-09-17 17:27:38 +10:00
miccal
86a838c03f test/language/java_spec: drop version to 1.6+ 2020-09-17 14:12:22 +08:00
Andrew Zhou
1c1ffc1f19 cask/exceptions: Actually print actual hash 2020-09-16 18:12:51 -05:00
nandahkrishna
c1909e80b4
utils/tty: fix TTY handling for stderr 2020-09-17 04:18:13 +05:30
Mike McQuaid
3923d331de
Fix brew style 2020-09-15 13:39:06 +01:00
Markus Reiter
c098ce5d16 Fix tests for cask audit. 2020-09-14 13:12:38 +02:00
Mike McQuaid
05d649808f
Merge pull request #8695 from MikeMcQuaid/linkage_cache_performance
Improve linkage cache linkage_cache_performance
2020-09-14 08:37:06 +01:00
Markus Reiter
1c04ba7e4d
Merge pull request #8684 from reitermarkus/audit-annotations
Output annotations for `brew audit`.
2020-09-13 02:39:55 +02:00
Mike McQuaid
3d436d3664 Improve linkage cache linkage_cache_performance
- Use reference counting so nested `CacheStoreDatabase.use` share the
  same underlying database (rather than rereading it every time).
- Only write out the cache database file when it has changed.
- Cleanup cache database entries on formula or full `brew cleanup`.

Fixes #8690
2020-09-11 12:57:15 +01:00
Mike McQuaid
5a20968c19 Tweak tests annotations
- Don't skip Git installation tests on generic OS; remove it instead.
- Install Subversion for macOS Subversion tests.
2020-09-11 11:11:42 +01:00
Markus Reiter
23aced68d4 Output annotations for brew audit. 2020-09-10 22:23:03 +02:00
Markus Reiter
c942aafc4c
Merge pull request #8636 from reitermarkus/brew-style-casks
Support passing casks in `brew style`.
2020-09-10 02:10:51 +02:00
Markus Reiter
37ecdb28f7 Add spec for NamedArgs#to_paths. 2020-09-09 22:15:10 +02:00
Markus Reiter
d45af9e781 Remove colon from RSpec annotations. 2020-09-09 21:56:19 +02:00
Markus Reiter
456e674cd8
Merge pull request #8654 from reitermarkus/rspec-github-actions
Improve RSpec annotations.
2020-09-09 21:54:29 +02:00
Misty De Meo
c06848c487
Fix printing MultipleVersionsInstalledError details
The refactor in 6e8f5d0958247e4b4d629866099ed2836a0e0863 means that the
exception no longer exposes the name of the package with multiple versions,
and as a result the rescuer is unable to print this information.

Because we now have a path in which MultipleVersionsInstalledError doesn't
have the name at all, we can't reasonably restore the old behaviour.
And since rack resolution happens purely internal to the function that
raises the exception, the caller has no way to know what name to use.
However, since the exception text gets printed anyway, we can just move
this text into the exception itself.

Fixes the following error:

```
Error: mpd has multiple installed versions
Error: undefined method `name' for #<MultipleVersionsInstalledError:0x00007fc6009d8870>
/usr/local/Homebrew/Library/Homebrew/cmd/uninstall.rb:137:in `rescue in uninstall'
/usr/local/Homebrew/Library/Homebrew/cmd/uninstall.rb:135:in `uninstall'
/usr/local/Homebrew/Library/Homebrew/brew.rb:119:in `<main>'
```
2020-09-09 11:56:53 -07:00
Markus Reiter
196d7badfa Improve RSpec annotations. 2020-09-09 10:24:20 +02:00
Seeker
6d1de3a72b
Merge pull request #7986 from SeekingMeaning/bump-cask-pr
dev-cmd: add bump-cask-pr command
2020-09-08 09:40:55 -07:00
Mike McQuaid
8118aee85d
Merge pull request #8651 from Homebrew/imgbot
[ImgBot] Optimize images
2020-09-08 17:14:00 +01:00
Markus Reiter
66555af904
Merge pull request #8639 from reitermarkus/rspec-github-actions
Add RSpec formatter for Github Actions.
2020-09-08 17:50:30 +02:00
Seeker
0a4fbf7f6a dev-cmd: add bump-cask-pr 2020-09-08 08:26:05 -07:00
ImgBotApp
1a7b3e87ee
[ImgBot] Optimize images
*Total -- 61.65kb -> 43.73kb (29.07%)

/docs/assets/img/docs/managing-pull-requests.drawio.svg -- 61.61kb -> 43.69kb (29.08%)
/Library/Homebrew/test/support/fixtures/test.gif -- 0.04kb -> 0.03kb (18.6%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-09-08 14:34:34 +00:00
Seeker
15af7189eb utils: add tar
Includes `validate_file` method to be used by `bump-formula-pr`
2020-09-08 07:08:07 -07:00
Markus Reiter
4d8dcb1d81 Add RSpec formatter for Github Actions. 2020-09-07 23:50:44 +02:00
Rylan Polster
7bd2f511c4
Merge pull request #8620 from nwhetsell/fix-license-exception-url
Remove trailing slash from SPDX license exception URL
2020-09-05 13:00:52 -04:00
Nathan Whetsell
89ef97a51b Remove trailing slash from SPDX license exception URL 2020-09-05 10:37:14 -04:00
Markus Reiter
36a8a823a1 Use curl workarounds for both curl and curl_output. 2020-09-05 10:42:35 +02:00
Markus Reiter
f1bf6c03c3 Add tests for implications. 2020-09-04 05:29:56 +02:00
Markus Reiter
e5b56e485f Move cask audit implications into Audit. 2020-09-04 04:47:31 +02:00
Dustin Rodrigues
5ce013b0d0
Merge pull request #8576 from dtrodrigues/revision-audit
audit: compare current version to last committed version when seeing if revision should be reset
2020-09-03 10:32:42 -04:00
Dustin Rodrigues
76ec69e3c3 audit: compare current version to last committed version when seeing if revision should be removed 2020-09-03 10:02:28 -04:00
Mike McQuaid
2e5272d04c Deprecate/disable code for Homebrew 2.5.0.
Do the usual "disable deprecations" and "uncomment pending deprecations"
dance and delete/deprecate/disable relevant/related code.
2020-09-03 10:34:22 +01:00
Maxim Belkin
a6d29894d9 cleanup: fix and reuse portable ruby logic.
Align the logic in `cleanup_portable_ruby` with that in `ruby.sh`.

Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-09-03 09:43:41 +01:00
Mike McQuaid
8604cdb15a
Merge pull request #8541 from claui/fix-patch-stdout
Return standard output in `popen_write`
2020-09-02 17:48:12 +01:00
Mike McQuaid
64eaa80c47
Merge pull request #8522 from rmNULL/elf-fixtures
spec:  Pathname#rpath, Pathname#interpreter and Pathname#patch!
2020-09-02 17:21:47 +01:00
Markus Reiter
4d1fa19a18 Add test for GitHub::Actions::Annotation. 2020-09-02 16:44:16 +02:00
Markus Reiter
ebd4ce467c Output GitHub Actions annotations for brew style. 2020-09-02 16:44:16 +02:00
rmnull
7863cc6f80
remove {rust,cpp,go}.elf fixutres. 2020-09-02 18:58:36 +05:30
rmnull
f5ca649e1d
new elf fixtures, and basic tests for Pathname#rpath(=), and Pathname#interpreter(=). 2020-09-02 18:58:36 +05:30
Mike McQuaid
5e5dabcadd
Merge pull request #8431 from SeekingMeaning/formula/installed_prefix
formula: rename `installed_prefix` and `opt_or_installed_prefix_keg`
2020-09-01 19:22:50 +01:00
Markus Reiter
b9f3589ab7 Test casks are already tested covered brew style. 2020-09-01 19:26:46 +02:00
Seeker
f366280e18 formula: add any_installed_version 2020-09-01 09:45:54 -07:00
Seeker
5def0701ba formula: rename opt_or_installed_prefix_keg to any_installed_keg 2020-09-01 09:39:20 -07:00
Markus Reiter
b4d14c193f Use Homebrew::Style for brew cask style. 2020-09-01 18:34:26 +02:00