Commit Graph

1112 Commits

Author SHA1 Message Date
forkbomber ef182fafe1 invoke chown more reliable while removing remove artifacts
fixes #14842
2015-11-01 03:20:36 -05:00
Vítor Galvão bdf05fa56c Merge pull request #14648 from caskroom/vitorgalvao-accessibility_access
installer.rb: fix accessibility access conditional order
2015-10-31 00:03:46 +00:00
Josh Hagins d39c95942f cut v0.59.0 2015-10-28 14:07:33 -04:00
Josh Hagins 9793861422 Remove launchjobs even if they are not loaded 2015-10-28 13:46:24 -04:00
Josh Hagins ca2f4bb6b8 Use ENV['HOME'] to check existence of launchjobs
Pathname does not expand '~', so we need to give it the absolute path to
the HOME directory.
2015-10-28 13:46:24 -04:00
Vítor Galvão 2c0acb5ca6 installer.rb: fix accessibility access conditional order 2015-10-25 18:04:25 +00:00
Vítor Galvão eb06f29fa4 finished removing Alfred support 2015-10-21 19:56:04 +01:00
Vítor Galvão da62376be8 cut v0.58.0 2015-10-15 01:11:31 +01:00
Vítor Galvão 08ec256acd Merge pull request #14144 from adityadalal924/el-capitain-accessibility
updated accessibility method for el capitan compatibility
2015-10-15 01:04:43 +01:00
Vítor Galvão c216698c73 cut v0.57.0 2015-10-02 17:03:40 +01:00
Vítor Galvão ac9f388f34 Merge pull request #11110 from delphinus35/remove-sort-in-symlinked
remove `sort` for fixing the bug #9227
2015-10-02 16:33:37 +01:00
adityadalal924 ca5283297d updated accessibility method for el capitain compatibility 2015-10-01 22:40:29 -04:00
Josh Hagins 32364632be Include Hbc::Staged module in Hbc::DSL::Preflight 2015-09-05 13:41:46 -04:00
Josh Hagins c2cfded798 Gracefully handle interrupts (CTRL-C) at top level
Interrupts are possible during any stage of program execution. Certain
areas are protected with Hbc::Utils.ignore_interrupts, but for the rest
we should exit gracefully without spitting out an ugly stack trace.
2015-09-03 10:22:52 +01:00
Josh Hagins b30085af1e cut v0.56.0 2015-08-04 00:27:56 -04:00
Josh Hagins 0b8d492ce9 Merge pull request #12992 from jawshooah/tilde-expansion
Expand tilde in `uninstall :delete`
2015-08-03 13:53:08 -04:00
Josh Hagins 907ac5a1cc Merge pull request #11200 from radeksimko/writeable-symlink-target
Make symlink targets writeable, so we can write altnames
2015-08-03 13:52:46 -04:00
Josh Hagins c0ed120631 Expand tilde in uninstall :delete 2015-08-02 20:25:15 -04:00
Josh Hagins 118520d5a5 cut v0.55.0 2015-08-02 12:24:32 -04:00
Josh Hagins c63984053a Move permissions and ownership helpers to Staged module
These helpers should be available to both postflight and
uninstall_preflight blocks.
2015-08-02 01:39:04 -04:00
Josh Hagins c38110bcec Teach set_permissions and set_ownership to accept multiple paths 2015-08-02 00:54:11 -04:00
Josh Hagins 111cf05d77 Add postflight helpers to set file ownership and permissions 2015-08-01 23:43:54 -04:00
Roland Walker 5eec0916c4 attempt to clean up launchctl plists on uninstall
separate `launchctl unload` and comment that this command was
intended for unloading jobs by pathname rather than bundle ID.
Leave that undocumented for now as it is untested.
2015-07-26 16:52:05 -04:00
Radek Simko bcdd427b80 Merge pull request #12067 from radeksimko/yellow-warnings
Change warning from red to yellow
2015-06-23 14:45:49 +01:00
Andrew 0ad03b7218 Merge pull request #11672 from vitorgalvao/elcapitan
additions for El Capitan
2015-06-23 14:21:37 +02:00
Radek Simko 7967d9fd18 Change warning from red to yellow 2015-06-23 13:06:06 +01:00
Sean Smith 64db9962a2 Changing Fake User Agent
Per #11349, adjusting the fake user-agent string to something Core
is ok with.
2015-06-20 11:50:16 -04:00
Paul Hinze eb496b31fb Merge pull request #9995 from otzy007/list_versions
brew cask list --versions
2015-06-17 12:34:37 -05:00
ndr 2fc9d23239 cut v0.54.1 2015-06-13 19:55:40 +01:00
Vítor Galvão 5fe97c6d12 additions for El Capitan 2015-06-09 16:52:57 +01:00
Andrew Kitchen 8e7a958b6f Allows accessibility entry to be updated if previously installed 2015-06-07 09:18:36 -07:00
Radek Simko c2a20aab1e Make symlink targets writeable, so we can write altnames
- closes #9667
2015-05-15 07:26:22 +01:00
Paul Hinze a952b87291 cut v0.54.0 2015-05-11 09:56:56 -05:00
delphinus 90b48cc177 remove `sort` from symlinked.rb
* fix for the bug issued in #9227
2015-05-10 23:11:05 +09:00
Vítor Galvão 230a116be8 added free_license caveat 2015-04-20 18:20:07 +01:00
Vítor Galvão e8549d3b17 added discontinued caveat 2015-04-20 02:12:59 +01:00
Radek Simko 64c682afa3 Allow :sudo in uninstall stanza (:script + :early_script) 2015-03-29 22:16:51 +01:00
Andrei Gliga 99921ff8cd list installed packages versions 2015-03-11 12:04:14 +02:00
ndr f5a78615ae Audit for illegal SHA-256 digests 2015-02-25 21:35:05 +00:00
Paul Hinze e65c40bb2b cut v0.53.3 2015-02-09 15:43:49 -06:00
Paul Hinze 4d1140a55f core: _actually_ fix caveats
there was another untested place where the cask methods were being
re-implemented. these were preventing casks with caveats from working
properly.

refs #9494
2015-02-09 15:30:26 -06:00
Paul Hinze 5df43132cb cut v0.53.2 2015-02-09 09:50:07 -06:00
Paul Hinze 7856eec860 core: fix preflight/postflight casks
These were broken in the refactor to extract Hbc::Cask from Hbc.

fixes #9503
2015-02-09 09:28:41 -06:00
Paul Hinze ca79d4b3df cut v0.53.1 2015-02-08 08:42:14 -06:00
Paul Hinze 41fcf55bc7 Merge pull request #9491 from caskroom/bsexec-requires-sudo-now-i-guess
10.10.3 fix: pull bsexec from mount commands
2015-02-08 08:31:25 -06:00
Paul Hinze 05dc81431d 10.10.3 fix: pull bsexec from mount commands
It seems like in 10.10.3 apple, in its infinite wisdom, decided that the
bsexec option for launchctl would suddenly require root privileges.

Since we were proactively using bsexec for all DMG mounts, this was
breaking dmg-based Casks for all early adopters of 10.10.3.

We can regroup to try and address #7132 another way, but for now, just
pulling all the bsexec stuff out.
2015-02-08 08:23:42 -06:00
Paul Hinze ea3fbf8e27 Merge pull request #9475 from rolandwalker/fix_rmdir
fix `uninstall :rmdir` silent failure
2015-02-08 07:31:24 -06:00
Roland Walker add0279512 Merge pull request #9478 from caskroom/rename-cleanup-cli-option
cli: [refactor] rename outdated option internally
2015-02-07 19:12:13 -05:00
Paul Hinze 5bbba24bf9 cli: [refactor] rename outdated option internally
The `Hbc.outdated` boolean was in the way of my implementation of an
`outdated` scope for `brew cask outdated`, so I took the opportunity to:

 * rename the flag internally to `cleanup_outdated`
 * move the cleanup tests over to rspec and rework them to test in a
   stubbed cleanroom environment
 * refactor the implementation of cleanup to make it a bit more
   testable - most importantly: inject the cache location and outdated
   config dependencies instead of looking them up from constants

Note that there's no change to the user-facing interface, it's still

```
brew cask cleanup --outdated
```
2015-02-07 18:06:51 -06:00
Paul Hinze 63d748e14c core: [refactor] separate Hbc::Cask from Hbc
Hbc is the namespace, Hbc::Cask is the object representing a Cask

One step on the path to reducing the surface area of the God-object
we've grown over the years. :)
2015-02-07 16:37:32 -06:00