1226 Commits

Author SHA1 Message Date
L. E. Segovia
b9a3884ebf
Cask: output files requiring sudo to console 2019-10-02 13:36:05 +00:00
L. E. Segovia
aa85bec73e
Fix style issues 2019-10-02 00:25:38 +00:00
L. E. Segovia
caf7df5840
Cask: add doctor check for xattr
CC: Homebrew/homebrew-cask#69660
2019-10-01 11:17:27 +00:00
L. E. Segovia
f980ac82b9
Cask: refuse to trash root-owned files
These files cannot be trashed from CLI without sudo, which trashes them
instead to root's Trash. AppleScript isn't of use here because it will
break Travis (as it will fail when asking for admin permissions).

Fixes homebrew/homebrew-cask#69897
2019-10-01 11:12:23 +00:00
Alec Clarke
45806f6a97 Include test casks in the cask style check.
Currently the tests casks found in "/Homebrew/test/support/fixtures/cask/Casks" and "/Homebrew/test/support/fixtures/third-party/Casks" aren't included in the paths checked when running "brew cask style".

This change includes these test cask paths in the checked paths, and also includes the auto style fixes made by running `brew cask style --fix`.
2019-09-23 08:50:24 -04:00
Markus Reiter
39dabb4171
Merge pull request #6435 from alecclarke/add-cask-blacklist-to-cask-audit
Check blacklisted Casks when auditing.
2019-09-20 17:36:14 +02:00
EricFromCanada
c9a75db27d cask: recommend adoptopenjdk as per #6040 2019-09-18 19:28:44 -04:00
EricFromCanada
de26e491e2 cask: remove extra line break in :discontinued caveat 2019-09-18 19:28:44 -04:00
EricFromCanada
a9b9d4613d cask: return nil instead of "" if no caveats 2019-09-18 19:28:44 -04:00
Alec Clarke
af10d13381 Check blacklisted Casks when auditing.
In some cases, certain Casks shouldn't be resubmitted for specific reasons: difficult to maintain, developers maintain their own version, ...

To make sure these cases are restricted - we can add them to a blacklist and have the blacklist checked as part of the `brew cask audit` steps.
2019-09-17 06:29:46 -07:00
Markus Reiter
d8afed206f Use AppleScript to check if GUI apps are running. 2019-09-15 01:37:04 +02:00
Markus Reiter
7084093d45 Add missing require. 2019-09-13 19:52:43 +02:00
Markus Reiter
f010aa48ff Skip AppleScript actions if Automation Access isn't granted. 2019-09-13 16:35:44 +02:00
Markus Reiter
fca5950748 Remove brew cask automerge. 2019-08-21 11:12:36 +02:00
Markus Reiter
16d2f8264c Use MacOSRequirement for casks. 2019-08-21 06:57:21 +02:00
Markus Reiter
d5cc46f931 Support deleting login items by path. 2019-08-12 23:56:26 +02:00
Jeremy Mayeres
22f43e3670
Remove cask-eid tap from automerge
Since the homebrew-cask-eid tap is no longer in use, it should be removed from the command as well.
2019-08-11 16:23:17 +02:00
Mike McQuaid
41461b2c00
upgrade: tweak --dry-run wording. 2019-07-28 14:50:59 +01:00
Doug Hogan
7f6ef77d0e Address PR comments: remove test and use return ... if 2019-07-27 07:36:11 -07:00
Doug Hogan
55fcd01bed cask/cmd/upgrade: add --dry-run option. 2019-07-26 23:20:56 -07:00
Mike McQuaid
12a0c281ea
cask/cmd/info: fix brew style, refactor. 2019-07-16 21:10:21 +01:00
Markus Reiter
de5cd926e6
Merge pull request #6270 from reitermarkus/config-dirs
Don't treat non-directory arguments as paths.
2019-07-09 23:10:23 +02:00
Markus Reiter
162be6b411 Don't treat non-directory arguments as paths. 2019-07-09 20:50:01 +02:00
Markus Reiter
4cb8e6ddd0 Add token to Cask#to_h. 2019-07-09 20:43:45 +02:00
Vítor Galvão
92719b64dc Cask audit: -globoff in appcast curl 2019-06-24 16:34:47 +01:00
Vítor Galvão
61623f97ca Cask audit: appcast fake user agent 2019-06-19 11:05:53 +01:00
Vítor Galvão
529e448189 Cask audit: decompress appcast 2019-06-19 00:19:30 +01:00
Markus Reiter
17f6d19b9c Add Cask#install_time method. 2019-05-31 20:50:31 +02:00
Markus Reiter
b12623f4eb Don't redownload “latest” casks unnecessarily. 2019-05-31 20:50:31 +02:00
Markus Reiter
e2369fcde0 Output all upgradable casks before upgrading. 2019-05-31 19:16:04 +02:00
Mike McQuaid
781ad57ded
Merge pull request #6163 from xu-cheng/cask-cache
Add brew cask --cache <cask> command
2019-05-30 08:57:48 +01:00
Mike McQuaid
a89a3dfe91
Use whoami consistently in chown commands 2019-05-23 10:19:33 +02:00
Mike McQuaid
c82496cf5c
Merge pull request #6155 from core-code/master
Add configuration to new appcast check
2019-05-23 08:28:56 +01:00
Cheng XU
169ac2d413
cask: add new --cache command
It prints the file used to cache Casks.

This can be used to help users to install casks with their files
downloaded from outside brew.

See #6157.
2019-05-23 15:28:00 +08:00
CoreCode
b81ead6dbb
Update appcast.rb 2019-05-21 15:10:39 +02:00
L. E. Segovia
a5fc2ec834
Skip :trash step if no paths exist
Fixes Homebrew/cask#63583
2019-05-21 12:56:23 +00:00
CoreCode
b6840c5638
Update audit.rb 2019-05-21 14:51:06 +02:00
Julian Mayer
0939c8832d Add configuration to new appcast check 2019-05-21 12:07:25 +02:00
Isabell (Issy) Long
7a367980b6
Add a blank line between brew cask info output for multiple casks
- `brew info` adds a blank line between info output for multiple
  formulae. This replicates that display for `brew cask info`, as
  requested in Issue 6126.
2019-05-13 19:45:08 +01:00
L. E. Segovia
93b2c29612 Port file trashing to Swift
This avoids hitting AppleScript timeouts in CI.
2019-05-09 20:03:31 +00:00
Steven Peters
1406ee7eac abstract_uninstall: add timeout to trash_paths 2019-05-09 20:03:31 +00:00
Julian Mayer
a061a8d9f7 add optional checking whether appcast contains the version stanza to "brew cask audit" 2019-05-07 17:06:54 +02:00
Markus Reiter
3b745084ae Fix brew cask style. 2019-05-01 15:14:38 +02:00
Mike McQuaid
c4f72312ce
Fixup brew style failures. 2019-04-30 09:19:18 +01:00
Mike McQuaid
73528b6a08
Freeze more strings
Freeze the results changed in #6072.
2019-04-29 13:02:15 +01:00
Markus Reiter
85c3b55e2b Fix exception in exception. 2019-04-28 15:16:47 +02:00
Mike McQuaid
0d54978ba8
Merge pull request #6036 from MikeMcQuaid/enable-frozen-string-literal
Use FrozenStringLiteralComment instead of flag.
2019-04-22 13:07:08 -07:00
Markus Reiter
ce15622584 Add *_to_slashes methods to compat. 2019-04-20 23:58:48 +02:00
Mike McQuaid
fc6bd2ea1c
Fixup more frozen string handling. 2019-04-20 14:07:29 +09:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00