Commit Graph

701 Commits

Author SHA1 Message Date
Roland Walker 4b6f5c7695 cut v0.43.1 2014-09-30 10:53:46 -04:00
Roland Walker 5b3068d1e7 return string in `Cask::LinkChecker` 2014-09-30 10:17:35 -04:00
Roland Walker 7986b0dbaf hide stderr messages from `ditto` against DMG 2014-09-30 10:16:58 -04:00
Roland Walker 077a8514fe cut v0.43.0 2014-09-27 13:18:00 -04:00
Roland Walker b8452a9d60 Merge pull request #6357 from rolandwalker/tweak_license_types
update valid license values
2014-09-27 12:57:08 -04:00
Roland Walker f36d8e5aea update valid license values
* change :free (closed-source) to :gratis for clarity
* add :freemium (eg Alfred)
* add :lppl (LaTeX)
* change :ubuntu to :ubuntu_font
2014-09-27 11:47:33 -04:00
Roland Walker 1abf0b99a9 Merge pull request #6329 from rolandwalker/system_command_refactor
refactor Cask::SystemCommand
2014-09-27 09:59:59 -04:00
Roland Walker 0e7be245be Return Cask::SystemCommand::Result object
from Cask::SystemCommand.run

* stderr and stdout are now separated, though both are available
* :print_stderr is made the default, closer to previous behavior
* exit status can be read from the result object
* plist parsing is more naturally handled in the result object.
  The :plist argument to the run method was removed.
* whitespace
2014-09-27 08:59:08 -04:00
Roland Walker 6d622ed281 make `install_script` stanza more robust
* correctly (and leniently) parse values
* add test
2014-09-25 11:04:38 -04:00
Roland Walker 41d9fc363c switch to %Q{} for complex quoting 2014-09-25 09:38:22 -04:00
Roland Walker bb72723325 remove :print_stdout => false
this is the default, and need not be specified
2014-09-25 09:36:13 -04:00
Roland Walker 100285702b recast :print => true as :print_stdout => true
in Cask::SystemCommand
2014-09-25 09:31:05 -04:00
Roland Walker 49e6e6eb10 refactor :stderr => :silence
replace with :print_stderr => false

The double test on options[:print_stderr] in system_command.rb
is intentional, and temporary.
2014-09-25 09:23:27 -04:00
Roland Walker 568365194d Merge pull request #6227 from rolandwalker/doc_uninstall_delete
doc/tests switchover to `uninstall :delete`
2014-09-18 06:25:59 -04:00
Roland Walker 0b4ad8714b doc/tests switchover to `uninstall :delete`
from `uninstall :files`
2014-09-17 10:41:10 -04:00
Roland Walker 28217a5b77 cut v0.42.0 2014-09-17 09:45:32 -04:00
Roland Walker d9fe7a9c17 Merge pull request #6225 from rolandwalker/add_artifact_stanza
DSL: add `artifact` stanza
2014-09-17 09:35:53 -04:00
Roland Walker f7018e0106 DSL: add `artifact` stanza
Keeping the `link` stanza in the DSL is a mistake: it will be
confusing when combined with the ability to install by copying.

This PR retires `link` completely, and adds a generic artifact
stanza called `artifact`.  (`link` is removed from the docs, but
will still work for compatibility during transition.)

This only affects one current Cask (dwarf-fortress.rb), and that
Cask may be changed to use `suite` in the future.
2014-09-17 09:09:53 -04:00
Roland Walker 6d82c9770e change docs/tests to use version :latest
Instead of version 'latest' (value as string).  The string
value is still permitted during a transitional period.
2014-09-17 07:22:33 -04:00
Roland Walker fe0a053dad Merge pull request #6208 from rolandwalker/uninstall_force
add `--force` option for `brew cask uninstall`
2014-09-16 19:33:17 -04:00
ndr 3f97e678d1 Merge pull request #6207 from rolandwalker/improve_zap_messages
Improve zap feedback messages
2014-09-16 21:04:06 +02:00
Federico Bond 598a17d0c7 Merge pull request #6206 from rolandwalker/add_version_arg
support `brew cask --version` per `USAGE.md`
2014-09-16 14:58:21 -03:00
Roland Walker d156cbfcb2 add `--force` option for `brew cask uninstall`
also update some related docs for verbs `install` and `uninstall`
2014-09-16 10:59:44 -04:00
Roland Walker fbdcb6ea4c Improve zap feedback messages
In particular, note explicitly when no `zap` stanza is present.
2014-09-16 10:23:51 -04:00
Roland Walker ca8417bf0e support `brew cask --version` per `USAGE.md`
closes #6178
2014-09-16 10:04:47 -04:00
Roland Walker 1ddec7128d add uninstall :rmdir
per discussion at https://github.com/caskroom/homebrew-cask/pull/6174#discussion-diff-17516171
refs: #6174

This PR is large because of some test-suite refactoring.
2014-09-16 09:48:32 -04:00
Roland Walker feca527e78 Merge pull request #6193 from rolandwalker/double_dot_is_relative
protect against inner ".." in uninstall paths
2014-09-16 07:08:35 -04:00
Roland Walker 3ea3d0e0e6 protect against inner ".." in uninstall paths 2014-09-15 11:30:41 -04:00
Roland Walker 5ae6e2f773 doc new `app` stanza and update tests to use it
Replacing `link` for almost all cases.

The `link` stanza can still appear in error messages, because
under the hood, `app` is still implemented as a pure synonym
for the `link` artifact.  That will change automatically when
we factor into separate artifacts.
2014-09-13 13:03:46 -04:00
Roland Walker ce64b38723 Merge pull request #6155 from rolandwalker/add_zap_stanza
functionality and docs for zap stanza and verb
2014-09-13 12:55:57 -04:00
Roland Walker d2ba4fdf4d cut v0.41.1 2014-09-13 12:49:30 -04:00
Roland Walker ce82c00506 Merge pull request #6066 from rolandwalker/alfred_yosemite
fix `brew cask alfred` for Yosemite/Alfred 2.4
2014-09-13 12:43:58 -04:00
Roland Walker 0f664ca78a Fix `brew cask alfred` for Yosemite/Alfred 2.4
Closes #5820
References: #6059
2014-09-13 12:34:12 -04:00
Roland Walker 00921dd513 functionality and docs for zap stanza
* `zap` was previously supported as a noop for forward-compatibility
* Also adds restrictions against relative paths in `uninstall :files`
* Also documents safety conventions for `uninstall :files`
2014-09-13 10:21:17 -04:00
Roland Walker 6fbf7dce5a fix depends_on :formula backend
closes #6158
2014-09-13 08:04:27 -04:00
Roland Walker dfcbd7154e docs, error msgs, tests for depends_on :formula
replacing depends_on_formula in DSL
2014-09-11 20:33:39 -04:00
ndr c0bc7b44a2 Merge pull request #6117 from rolandwalker/metadata_directories
Metadata directory support
2014-09-11 23:47:00 +02:00
Roland Walker 0574662679 metadata directory support
- incidentally adds defensive driving against null version
  in method `destination_path`
2014-09-11 11:17:52 -04:00
Roland Walker 719bb998ed cut v0.41.0 2014-09-11 10:08:43 -04:00
Roland Walker 65cda1257e new DSL form container :nested => <inner> 2014-09-11 09:26:40 -04:00
Roland Walker 5d77ef0203 Merge pull request #6121 from rolandwalker/doc_dsl_pkg
docs and error messages for new DSL stanza `pkg`
2014-09-10 17:35:20 -04:00
Roland Walker 01cd96b89a Merge pull request #6116 from rolandwalker/doubledash_mkdir
Add doubledash to mkdir command
2014-09-10 17:34:09 -04:00
Roland Walker ab4f52a781 docs and error messages for new DSL stanza `pkg`
transition from `install` to `pkg`
2014-09-10 10:54:06 -04:00
Roland Walker 3b7ce85381 bug: fix container :type => <type>
Copypasta error in #6068 means that container :type
never worked, because it looked for nonexistent container.formula
2014-09-10 09:52:26 -04:00
Roland Walker 0ad22a8990 Add doubledash to mkdir command 2014-09-10 08:17:35 -04:00
Roland Walker 92e15b4a91 cut v0.40.0 2014-09-08 10:28:31 -04:00
Roland Walker 891bff1946 Merge pull request #6071 from rolandwalker/license_ncsa
DSL add NCSA OSS license type
2014-09-08 10:09:45 -04:00
Roland Walker 11e5376090 add NCSA OSS license type
Used for example by LLVM.
2014-09-08 10:06:21 -04:00
Roland Walker b8523e2603 Merge pull request #6068 from rolandwalker/container_dsl
DSL: change container_type to extensible container
2014-09-08 10:04:28 -04:00
Roland Walker ca21928b93 DSL: change container_type to extensible container
Late addition to DSL 1.0 (oversight in the roadmap)

References: #4688
2014-09-08 09:01:46 -04:00