homebrew-cask-versions/lib/cask
Roland Walker 81744a038d bugfix: make uninstall :script accept a hash
The indentation in CONTRIBUTING.md implies that :script accepts a hash.
But that is not the case. Instead :script accesses the entire hash defined
by uninstall.  Unrelated install keys such as :quit leak through to
@command.run! when attempting to exec :script.  Result: contrary to docs,
:script cannot be combined with other uninstall keys.

This PR makes uninstall :script accept a hash.  When :args or :input are not
needed, :script can still accept a plain string, so many Casks require no
alteration.

In addition
- adds key :executable, required when using hash argument to :script
- keys to :script are validated and sanitized before being passed to
  @command.run!
- adds :quit to with-installable.rb test to protect against regression
  on leaky keys
2014-01-11 12:20:59 -05:00
..
artifact bugfix: make uninstall :script accept a hash 2014-01-11 12:20:59 -05:00
cli Merge pull request #2152 from Dillon-Benson/patch-2 2014-01-10 10:58:45 -08:00
container use absolute paths for all commands 2013-12-14 08:48:40 -06:00
source Merge pull request #2303 from rolandwalker/qualified_cask_names 2014-01-10 11:23:43 -08:00
artifact.rb Merge pull request #2258 from rolandwalker/hardlink_fonts 2014-01-10 11:06:17 -08:00
audit.rb Merge pull request #2370 from troter/coteditor 2014-01-10 13:14:31 -08:00
auditor.rb [#583] Auditing of cask download and checksums 2013-07-07 09:06:02 -05:00
checkable.rb clean up and pull out link checker / audit common code 2013-03-13 13:03:12 -05:00
cli.rb Merge pull request #2342 from rolandwalker/doctor_command 2014-01-08 09:44:09 -08:00
container.rb naked pkg support + major container refactor 2013-09-21 21:59:07 -05:00
download.rb some refactoring around the new download strategy 2013-12-15 13:18:47 -06:00
download_strategy.rb some refactoring around the new download strategy 2013-12-15 13:18:47 -06:00
dsl.rb implement binary artifact 2014-01-05 22:55:18 +02:00
exceptions.rb Guard against unspecified casks in CLI 2013-11-10 13:44:10 -06:00
fetcher.rb add fake HTTP HEAD checking for google code URLs 2013-03-13 12:42:54 -05:00
installer.rb remove empty app dirs from caskroom on uninstall 2013-11-10 14:48:16 -06:00
link_checker.rb fix a small bug that could stop the check link process. 2013-10-09 12:23:24 +11:00
locations.rb implement binary artifact 2014-01-05 22:55:18 +02:00
options.rb implement binary artifact 2014-01-05 22:55:18 +02:00
pkg.rb uninstall files in chunks of 500. 2013-12-31 19:47:31 -05:00
pretty_listing.rb brew cask list, when given args, list installed files 2013-11-03 12:23:08 -06:00
qualified_cask_name.rb handle fully-qualified cask names, fixes #2235 2014-01-04 07:14:35 -05:00
scopes.rb support non-ruby-backed casks 2013-12-05 20:10:19 -06:00
source.rb handle fully-qualified cask names, fixes #2235 2014-01-04 07:14:35 -05:00
system_command.rb more robust plist parsing, and better error handling 2013-11-03 13:07:18 -06:00
underscore_supporting_uri.rb some refactoring around the new download strategy 2013-12-15 13:18:47 -06:00
url.rb some refactoring around the new download strategy 2013-12-15 13:18:47 -06:00
without_source.rb support non-ruby-backed casks 2013-12-05 20:10:19 -06:00