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
commitay
f012b5acf8
cask audit: check for sourceforge appcast
2018-06-05 16:42:19 +10:00
Dominyk Tiller
9391ac01a9
test: add symlink for macOS Mojave bottle
2018-06-04 19:48:16 +01:00
Vítor Galvão
81d467abba
with-languages.rb: remove trailing whitespace
2018-05-29 11:42:05 +01:00
Mike McQuaid
5c3ec3e7ca
Merge pull request #4174 from reitermarkus/cask-tap-migration
...
Add compatibility layer for handling Cask Tap migration.
2018-05-21 14:45:14 +01:00
Markus Reiter
b4de801a01
Support both Homebrew
and caskroom
for now.
2018-05-21 01:43:49 +02:00
commitay
1ae2cf9709
cask audit: installer and pkg require uninstall
2018-05-19 12:38:52 +10:00
Markus Reiter
791af7e910
Move invalid Cask fixtures into sub-directories.
2018-04-14 11:44:19 +02:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
0f4e22e28d
Merge pull request #3981 from MikeMcQuaid/rspec-cleanup
...
test: rubocop-rspec style auto-corrects.
2018-03-28 11:51:44 +01:00
commitay
2373ee6168
cask audit: check for :latest with appcast
2018-03-27 20:56:05 +10:00
commitay
4020f50c14
cask audit: check for appcast if the cask uses github releases
2018-03-27 16:17:37 +10:00
commitay
43244e7953
cask audit: check allow_untrusted
2018-03-27 08:57:39 +10:00