Markus Reiter
59e3a532ff
Remove the accessibility_access
stanza.
2018-10-07 21:53:31 +02:00
Mike McQuaid
ac2aabf287
setup_remote_tap: use system taps.
...
This saves recloning the taps we use multiple times when already done by
the user.
2018-10-03 19:14:04 +01:00
Markus Reiter
2308f0c571
Skip quitting applications when not logged into GUI.
2018-10-02 16:27:45 +02:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Mike McQuaid
7615d3a812
Improve writable directory handling
...
Consolidate the handling of which directories need to exist and which
need to be writable. Additionally, add a fatal check for formula
installations to ensure that any directories that need to be writable
are so before attempting an installation.
Fixes #4626 .
2018-09-06 18:38:43 +01:00
Markus Reiter
a84a1c63db
Rename Hbc
module to Cask
.
2018-09-06 09:30:52 +02:00
Markus Reiter
33ce424399
Remove redundant namespacing.
2018-09-06 06:47:29 +02:00
William Woodruff
eacdca872e
Merge pull request #4819 from woodruffw/error-pipe
...
utils: Use JSON to marshal child errors
2018-09-04 21:02:29 -04:00
William Woodruff
367629d289
utils: Use JSON to marshal child errors
...
Replaces our serialization of child process
errors via Marshal with JSON, preventing
unintentional or malicious code execution outside
of the build sandbox.
Additionally, adds tests for the new behavior.
2018-09-04 11:03:32 -04:00
Mike McQuaid
e06f8a8beb
Rename Homebrew-Cask to Homebrew Cask.
2018-09-04 09:56:57 +01:00
Mike McQuaid
90b3a13909
cask: move cask/lib/hbc/* to cask/*.
...
Fix the load path, requires and some filenames accordingly.
2018-09-04 09:56:57 +01:00
Mike McQuaid
088730c6f1
Revert "Use JSON to marshal errors from children"
2018-09-04 08:37:08 +01:00
Markus Reiter
32ad22395b
Remove some #popen_read
s.
2018-09-04 05:16:59 +02:00
William Woodruff
1eec585afe
Merge pull request #4752 from woodruffw/error-pipe
...
Use JSON to marshal errors from children
2018-09-03 18:59:40 -04:00
William Woodruff
86b9647450
utils: Use JSON to marshal child errors
...
Replaces our serialization of child process
errors via Marshal with JSON, preventing
unintentional or malicious code execution outside
of the build sandbox.
Additionally, adds tests for the new behavior.
2018-09-03 18:42:59 -04:00
Markus Reiter
89dd608766
Deprecate gpg
stanza.
2018-09-03 20:47:52 +02:00
L. E. Segovia
f7cafb50ad
Enable quarantining of Homebrew-Cask's downloads
2018-08-31 13:16:11 +00:00
Markus Reiter
55cde526a8
Deprecate brew cask cleanup
.
2018-08-13 20:09:34 +02:00
Reto Kromer
f9fb719db7
fix cask files inside fixtures
2018-08-06 18:27:15 +02:00
Markus Reiter
8ae284e871
Use SystemCommand
for curl
.
2018-08-01 01:04:42 +02:00
ilovezfs
cd2b85c40f
Revert "Use SystemCommand
for curl
."
2018-07-29 21:45:04 -07:00
Markus Reiter
355df64d93
Use SystemCommand
for curl
.
2018-07-29 01:23:33 +02:00
Markus Reiter
28384ba518
Rename Hbc::SystemCommand
to SystemCommand
.
2018-07-22 21:11:47 +02:00
Markus Reiter
5841b992ac
Refactor $LOAD_PATH
.
2018-07-17 23:38:57 +02:00
Markus Reiter
e5865e7e7f
Assimilate Container
s with UnpackStrategy
.
2018-07-16 23:50:45 +02:00
Markus Reiter
1f56314365
Clear Tap
cache before each example.
2018-07-16 10:55:22 +02:00
commitay
6d1f99fa5f
cask info: display auto_updates
2018-07-15 11:13:04 +10:00
Markus Reiter
b7e849799f
Merge pull request #4469 from reitermarkus/systemcommand-path
...
Don’t expand `executable` path in `SystemCommand`.
2018-07-14 22:45:43 +02:00
Vítor Galvão
3742cf892c
Merge pull request #4457 from commitay/latest-autoupdate
...
cask audit: check for `latest` with `auto_updates`
2018-07-14 14:29:19 +01:00
Markus Reiter
a9e109e31a
Don’t expand executable
path in SystemCommand
.
2018-07-14 02:33:42 +02:00
Mike McQuaid
3e85afc8b7
Merge pull request #4382 from sjackman/keg_relocate
...
Relocate bottles on Linux using patchelf
2018-07-12 20:33:58 +01:00
Shaun Jackman
1b688a3a25
Relocate bottles on Linux using patchelf
...
Ensure patchelf is installed to pour bottles and build bottles.
2018-07-12 10:21:26 -07:00
commitay
ba929cd9e1
cask audit: check for latest
with auto_updates
2018-07-12 19:22:47 +10:00
Markus Reiter
5b3bbb76c9
Separate staging from download.
2018-07-12 10:39:27 +02:00
Mike McQuaid
459e2bfa48
Merge pull request #4455 from reitermarkus/heredocs
...
Use more descriptive heredoc names.
2018-07-12 09:30:35 +01:00
Markus Reiter
7762ce32aa
Use more descriptive heredoc names.
2018-07-11 18:15:30 +02:00
Markus Reiter
37f3a603ce
Use env
utility instead of with_env
.
2018-07-11 16:46:33 +02:00
Claudia
3dbb735f3c
Fix PKG installer environment
...
This commit solves an issue where the environment handed to
`/usr/sbin/installer` is not the same as the environment used by the
graphical PKG installer.
This is evident in some post-install scripts, e. g. the
`component-10.pkg/Scripts/postinstall` script in the `dymo-label`
cask. The code says:
```
USER_ID=`id -u ${USER}`
launchctl bootstrap gui/$USER_ID /Library/LaunchAgents/com.dymo.dls.webservice.plist
```
The graphical installer will export e. g. `USER=alice`, and
everything works as intended.
However, `brew cask install` does not override `sudo`’s default,
which is `USER=ROOT`. This violates the assumptions in the script.
This commit fixes the issue by configuring `sudo` to override the
following environment variables with the proper user name:
- `LOGNAME`
- `USER`
- `USERNAME`
2018-07-06 09:38:00 +02:00
commitay
44a78a12a9
Merge pull request #4344 from commitay/cask-audit-all-appcasts
...
cask audit: check for devmate and hockeyapp appcasts
2018-07-04 11:13:40 +10:00
Markus Reiter
98bc356a59
Use Pathname#/
.
2018-07-04 02:26:36 +02:00
commitay
b12498159b
cask audit: check for devmate and hockeyapp appcasts
2018-06-28 23:17:05 +10:00
Markus Reiter
18e46b3ec2
Fix usage of HOMEBREW_LOAD_PATH
.
2018-06-18 16:23:35 +02:00
commitay
dbeed9e583
test fixtures: update/remove appcast checkpoints
2018-06-11 13:15:32 +10:00
commitay
c68526ac09
audit: remove appcast checkpoints
2018-06-11 13:14:00 +10:00
Markus Reiter
1d27c5f79a
Don't create Caskroom.path
for tests.
2018-06-09 11:32:49 +02:00
Markus Reiter
b2f67c6d77
Remove the need for ensure_cache_exists
.
2018-06-09 11:13:37 +02:00
Markus Reiter
12ab263784
Remove Hbc.default_tap
.
2018-06-09 10:13:28 +02:00
Markus Reiter
fee2b56e14
Rename Cask tap for specs.
2018-06-09 10:03:21 +02:00
Markus Reiter
3d423b0587
Add path
method to Caskroom
and Cache
.
2018-06-09 09:52:48 +02:00
Markus Reiter
42e34db562
Always add cask/lib
to $LOAD_PATH
.
2018-06-07 18:42:30 +02:00