64 Commits

Author SHA1 Message Date
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
Mike McQuaid
c4f72312ce
Fixup brew style failures. 2019-04-30 09:19:18 +01: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
Mike McQuaid
d1ea6f38d3
Fix mutable constants violations. 2019-04-19 21:46:20 +09:00
EricFromCanada
e0558dc7c7 trim line breaks 2019-04-13 21:37:48 -04:00
EricFromCanada
89f0fcedbe whitespace fixes 2019-04-13 21:32:04 -04:00
EricFromCanada
15c38a2d8b formatting fixes 2019-04-13 21:29:32 -04:00
EricFromCanada
fa6404e0f5 grammar fixes 2019-04-13 21:29:32 -04:00
Markus Reiter
42d90f8bd9 Use same logic for installer script: and uninstall script:. 2019-03-03 06:21:11 +01:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier. 2019-02-21 12:55:49 +00:00
Markus Reiter
190ff7558a Use saved cask config for reinstall/upgrade/uninstall. 2019-02-15 10:09:14 +01:00