76 Commits

Author SHA1 Message Date
Markus Reiter
a01deaaf52 Handle running apps in application.<bundle_id>.<number>.<number> format. 2020-12-26 14:02:49 +01:00
Markus Reiter
8b17017108 Improve error message for missing PKG source. 2020-12-21 15:54:32 +01:00
Markus Reiter
287dfee35f Properly handle ~ artifact targets. 2020-12-13 03:31:34 +01:00
Markus Reiter
ef1ea75c08 Add support for single-package casks. 2020-12-07 23:03:47 +01:00
Markus Reiter
79d6c059fc
Merge pull request #9297 from reitermarkus/brew-typecheck
Refactor `brew typecheck` and upgrade `typed` sigils.
2020-11-27 00:01:47 +01:00
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
Carlos Sanchez
278bc77f2d fix: launchctl list can return empty id
causing

Error: undefined method `match?' for nil:NilClass

Seen in macOS Big Sur
2020-11-24 18:12:10 +01:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
EricFromCanada
3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
EricFromCanada
dddfbf80fc apidoc: add/update yard tags 2020-11-06 00:16:35 -05:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Markus Reiter
b4e8bfe716 Fix RuboCop offenses. 2020-10-09 11:17:55 +02:00
Mike McQuaid
fb4d08a49a Fix brew style 2020-09-11 10:29:22 +01:00
miccal
5d0957ac81 cask/artifact/symlinked: allow --force to overwrite symbolic links 2020-09-03 13:28:29 +08:00
Mike McQuaid
8b97c27c21 brew style manual fixes 2020-09-01 14:26:45 +01:00
Markus Reiter
5426e47579 Document Artifact. 2020-08-26 03:13:59 +02:00
Markus Reiter
15279d78b7
Merge pull request #8370 from miccal/cask_symlinked
cask/artifact/symlinked: do not overwrite files or symbolic links
2020-08-20 21:03:19 +02:00
Markus Reiter
77db066ae2 Add missing summarize method for StageOnly. 2020-08-18 23:12:05 +02:00
miccal
7aaa7f25ec cask/artifact/symlinked: do not overwrite files or symbolic links 2020-08-18 04:19:48 +08:00
Maxime Garcia
65bb03a7db Fix uninitialized constant Cask::Pkg 2020-07-27 18:04:29 +02:00
Jonathan Chang
76709d82c5 Fix brew style. 2020-07-13 23:24:14 +10:00
Mike McQuaid
f951ea83d4
Fix brew style. 2020-07-07 12:23:29 +01:00
Markus Reiter
b2ccf3ba78
Merge pull request #7587 from Rylan12/cask-zap-full-disk-access
brew cask zap prompt when Full Disk Access is needed
2020-05-31 23:41:25 +02:00
Mike McQuaid
ca47992a6c
Fix rubocop-performance brew style. 2020-05-22 08:52:26 +01:00
Rylan Polster
d0bd687a3d brew cask zap prompts when Full Disk Access is needed 2020-05-21 10:24:28 -04:00
Dario Vladovic
3a21ca8956
Implement mdimporter cask stanza 2020-04-06 15:24:14 +02:00
Daniel Bayley
f3a0fcfb6d Make rmdir: recursive 2020-02-11 07:56:15 +00:00
Markus Reiter
df3bbd0299 Reduce need for interpolating appdir in casks. 2019-10-24 17:07:30 +02:00
Markus Reiter
54ab3dd7c4 Install pkg before app. 2019-10-24 15:04:01 +02:00
Markus Reiter
e6cfb4a3c2
Merge pull request #6629 from timsly/manpage-artifact
Add Manpage artifact
2019-10-24 13:48:52 +02:00
Tim Masliuchenko
6d1fafae13 Final tweaks 2019-10-24 09:43:59 +03:00
Tim Masliuchenko
87f29857f0 Pass section to the constructor 2019-10-23 18:34:16 +03:00
Tim Masliuchenko
22d821323c Feedbacks 2019-10-23 16:28:00 +03:00
Markus Reiter
04493e2dde Fix trash.swift without arguments. 2019-10-23 06:59:39 +02:00
Tim Masliuchenko
3ef5e06943 Add Manpage artifact 2019-10-22 15:21:49 +03:00
Markus Reiter
7a5e4d1269 Remove User::automation_access?. 2019-10-22 07:38:35 +02:00
Issy Long
1f6168fe8a
Change regexp.match?(string) to string.match?(regexp) everywhere
- Only try to call `.match?` on strings that aren't nil.
2019-10-13 23:22:51 +01:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
  Layout/InconsistentIndentation once the auto-fixer had got rid of the
  "redundant begin"s.
2019-10-13 16:04:27 +01:00
Issy Long
b78028b9c2
Auto-fix Performance/RegexpMatch offenses 2019-10-13 16:04:26 +01:00
L. E. Segovia
1ddafee614
Cask: address @reitermarkus's comments 2019-10-03 20:16:01 +00:00
L. E. Segovia
70c49809fe
Cask: typo in trash_paths 2019-10-02 14:09:26 +00:00
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
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
Markus Reiter
d8afed206f Use AppleScript to check if GUI apps are running. 2019-09-15 01:37:04 +02:00
Markus Reiter
f010aa48ff Skip AppleScript actions if Automation Access isn't granted. 2019-09-13 16:35:44 +02:00
Markus Reiter
d5cc46f931 Support deleting login items by path. 2019-08-12 23:56:26 +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
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