Roland Walker
ecd038ec6f
Merge pull request #4888 from rolandwalker/caskerror_exception_format
...
don't undent CaskError exception text
2014-06-14 18:15:36 -04:00
Roland Walker
94864be826
Merge pull request #4892 from rolandwalker/sanity_check_plist_parsing
...
defensive driving against errors running `hdiutil`
2014-06-14 18:14:11 -04:00
Roland Walker
9593e614b5
defensive driving against errors running `hdiutil`
...
This may not be strictly necessary. But it should help track
down the `hdiutil` errors, which are persistent, but occasional,
and hard to reproduce. (We pass a flag to `hdiutil` to make
respond in XML.)
2014-06-14 10:55:04 -04:00
Roland Walker
5e5af23815
don't undent CaskError exception text
...
The content of `output` is probably not indented, and will be
left-truncated if it is multi-line. This happens often with
Travis `hdiutil` errors
2014-06-14 09:26:24 -04:00
Roland Walker
01000b0bbf
Merge pull request #4868 from radeksimko/x11-caveat
...
Add X11 support to the `caveats` mini-DSL
2014-06-14 09:07:30 -04:00
Roland Walker
3f4f6580e0
cut v0.36.2
2014-06-14 08:19:00 -04:00
Radek Simko
2fe0f616d3
X11 added to caveats DSL
2014-06-14 11:28:03 +01:00
Roland Walker
744ab4aa39
add some detail when rescuing download errors
2014-06-11 16:28:46 -04:00
Roland Walker
4652e8bbcb
cut v0.36.1
2014-06-11 12:47:13 -04:00
Roland Walker
b29a77382b
Merge pull request #4812 from rolandwalker/fail_on_nonexistent_pkg
...
Installation should fail if pkg file nonexistent
2014-06-11 06:54:59 -04:00
Roland Walker
a8a3fe733a
Merge pull request #4787 from rolandwalker/already_installed_is_not_error
...
Downgrade Cask install errors to warnings
2014-06-10 18:21:58 -04:00
Roland Walker
caf6c14ff9
Merge pull request #4804 from rolandwalker/uninstall_coerce_ruby_2.0
...
fix uninstall for ruby 2.0, multiple uninstall stanza, more
2014-06-10 18:21:04 -04:00
Roland Walker
acded0c6ef
Installation should fail if pkg file nonexistent
2014-06-10 18:02:03 -04:00
Tony
d273bb3020
Minor formatting tweaks to CLI help output
2014-06-10 12:33:21 -04:00
Roland Walker
65a4cc6f3a
allow multiple `uninstall` stanzas to work
...
fixes longstanding bug; aligns code with docs
2014-06-10 12:16:49 -04:00
Roland Walker
4f3ecb1cc3
Downgrade Cask install errors to warnings
...
Including the case where a Cask is already installed.
Always continue installing when multiple Casks are specified,
only raising an exception at the end of the command (if some
portion of the attempted install actions failed). Never
exit with an error code if "already installed" was the only
problem seen during the run.
Also tweak error messages.
Fixes #1347 , #2677 , #4785
Required disabling two tests regarding suggestions on Cask
spelling errors.
2014-06-10 12:13:59 -04:00
Roland Walker
9fdae4583a
improve `:signal` debug message
2014-06-10 09:12:00 -04:00
Roland Walker
f534bbd75a
`uninstall` `:files` in chunks
...
micro-optimization; minimize shell invocations
2014-06-10 09:11:46 -04:00
Roland Walker
974877ae7a
More robust `:signal` directive in DSL
...
Coerce more variations into pairs.
2014-06-10 09:08:34 -04:00
Roland Walker
b65cbbf0fd
Coerce `:files` to Array in `uninstall`
...
before invoking `each` method. This is necessitated by Homebrew's
switch to Ruby 2.0.
Also standardize how all `uninstall` directives are coerced to Array,
in a way that is compatible between Ruby 1.8 and 2.0.
Fixes #4784 .
2014-06-10 09:06:50 -04:00
Roland Walker
4bf7d5bdc6
cut v0.36.0
2014-06-07 18:02:33 -04:00
Roland Walker
d7dead6705
Merge pull request #4732 from rolandwalker/force_utf8_encoding
...
force UTF-8 encodings
2014-06-07 17:19:31 -04:00
Roland Walker
4d199ada2d
force UTF-8 encodings
...
Fixes #4677 . This change is necessitated by Homebrew's recent
switch to Ruby 2.x. These changes may be incomplete and/or
may not work well with Ruby 1.8. Travis should test Ruby 1.8
compatibility.
2014-06-07 17:04:42 -04:00
Roland Walker
d8ad14aaa5
Merge pull request #4757 from rolandwalker/https_in_create
...
prompt for HTTPS URLs in `brew cask create`
2014-06-07 15:35:45 -04:00
Roland Walker
154eb2b12f
prompt for HTTPS URLs in `brew cask create`
2014-06-07 14:36:35 -04:00
Fernando Paredes
a4d479c3c4
Add audit for versioned casks with no checksum
...
* Check if version is not latest and has a sha256 :no_check for checksum
2014-06-06 21:22:19 -07:00
Roland Walker
bd30615a88
`collect_concat` is not available in Ruby 1.8
...
`collect` is fine here. References #4719 .
plus bugfix: join into a string so that `render_with_none`
knows to substitute "<NONE>"
2014-06-06 21:48:37 -04:00
Roland Walker
8da1d588bb
Merge pull request #4733 from rolandwalker/helpdoc_cleanup
...
remove issues_url and nullcommand from help output
2014-06-06 20:58:07 -04:00
Roland Walker
3a48343a03
Merge pull request #4719 from rolandwalker/doctor_refactor
...
refactor `brew cask doctor`
2014-06-06 20:42:45 -04:00
Roland Walker
324d79f0bb
Merge pull request #4673 from rolandwalker/cask_load_exceptions
...
Improve error checking and messages on Cask load
2014-06-06 20:42:35 -04:00
Roland Walker
13f8a4d282
remove issues_url and nullcommand from help output
...
necessitated by Homebrew's switch to Ruby 2.x
Fixes #4728
Fixes #4726
2014-06-06 17:10:28 -04:00
Roland Walker
abe4428cb6
add $SHELL to doctor
2014-06-06 14:15:48 -04:00
Roland Walker
40215968ef
add $CHRUBY_VERSION to doctor
2014-06-06 14:15:34 -04:00
Fernando Paredes
b767f9f1e6
Add OS X 10.10 as a known OS version
...
* In Yosemite the tests failed for being unknown
2014-06-06 10:56:41 -07:00
Roland Walker
50841d3f86
whitespace
2014-06-06 11:34:45 -04:00
Roland Walker
c857f11965
add PATH to doctor
2014-06-06 11:33:15 -04:00
Roland Walker
a9121320f8
add render_env_var in doctor
...
add quoting
2014-06-06 11:32:15 -04:00
Roland Walker
e6e5626bbc
warning on old-style tap paths in doctor
2014-06-06 11:25:35 -04:00
Roland Walker
796104b786
move homebrew_origin to method in doctor
2014-06-06 11:08:19 -04:00
Roland Walker
6a7cda5c24
move default_cask_count to method in doctor
2014-06-06 11:08:19 -04:00
Roland Walker
8388d1c3ac
move alt_taps to method in doctor
2014-06-06 11:08:18 -04:00
Roland Walker
c354e53cc3
move fq_default_tap to method in doctor
2014-06-06 11:08:18 -04:00
Roland Walker
8a5ad08dc8
move privledged_uid to method in doctor
2014-06-06 11:08:18 -04:00
Roland Walker
9f2c773ed6
move notfound_string to method
2014-06-06 11:00:32 -04:00
Roland Walker
fc9e7299ed
add locale variables to doctor
...
references: #4677
2014-06-06 11:00:32 -04:00
Roland Walker
f6011c85c9
render empty doctor values with <NONE>
2014-06-06 10:37:01 -04:00
Roland Walker
1400b61acf
abstract error_string in doctor
2014-06-06 10:36:56 -04:00
Roland Walker
a517e25acd
abstract none_string in doctor
2014-06-06 10:36:46 -04:00
Roland Walker
0ef4606e0c
retire support for `no_checksum` stanza
2014-06-04 23:26:09 -04:00
Roland Walker
c082b5521a
Improve error checking and messages on Cask load
...
Other Cask sources ultimately invoke the `load` method in the
abstract class Cask::Source::PathBase, so these changes apply
to all other sources.
2014-06-04 07:34:52 -04:00