598 Commits

Author SHA1 Message Date
L. E. Segovia
cc8e455911 Remove unknown_command variable 2017-10-12 07:39:53 -03:00
L. E. Segovia
d1262868a9 Fixes help querying
- If a non-existent command with a flag is queried to Cask, the latter
is printed instead of the command
 - If the help from a not-yet-tapped cask's command is queried, it
prints brew tap's help infinitely

Fixes caskroom/homebrew-cask#28977
2017-10-12 00:11:11 -03:00
Markus Reiter
04363b25a3 Properly handle special characters in file names. 2017-10-11 17:43:54 +02:00
Markus Reiter
cbd9715e5b Fix regexes in CaskLoader. 2017-10-08 15:21:04 +02:00
Markus Reiter
5cbf8bdaa7 Merge pull request #3283 from reitermarkus/cask-loader
Add helper method for Cask fixture paths and refactor CaskLoader.
2017-10-07 18:30:32 +02:00
Markus Reiter
97333df4cb Add helper method for Cask fixture paths and refactor CaskLoader. 2017-10-07 16:11:25 +02:00
Markus Reiter
62315e93f8 Merge pull request #3280 from commitay/cask-internal-audit
InternalAuditModifiedCask: audit renamed Casks
2017-10-07 15:55:02 +02:00
commitay
4fde8f56ce add pkg / binary comment 2017-10-07 23:10:59 +10:00
commitay
a7cf6c1ff0 Cask AbstractArtifact: fix install order 2017-10-07 22:06:39 +10:00
commitay
d5cc68fba3 InternalAuditModifiedCask: audit renamed Casks 2017-10-07 12:53:07 +10:00
Markus Reiter
02362259a5 Don’t reorder “basic” artifacts. 2017-10-04 18:47:55 +02:00
Markus Reiter
51a0de6368 Directly save artifacts in DSL. 2017-10-04 18:47:55 +02:00
Markus Reiter
2c7ef064e4 Refactor DSL and Artifacts. 2017-10-04 18:47:55 +02:00
Markus Reiter
0fbcbc7864 Merge pull request #3259 from reitermarkus/underscore_supporting_uri
Remove `UnderscoreSupportingURI`.
2017-10-04 11:40:38 +02:00
Markus Reiter
7ee86cfe77 Merge pull request #3256 from claui/pkg-unshadow-options
Unshadow `allow_untrusted` option for pkg artifact
2017-10-03 18:25:59 +02:00
Markus Reiter
ec0d8fa7ba Merge pull request #3220 from yzguy/yzguy/cask_available_languages_to_info
add available languages to cask info command
2017-10-03 08:31:56 +02:00
Markus Reiter
a92b6318eb Remove UnderscoreSupportingURI. 2017-10-03 08:29:20 +02:00
Markus Reiter
e322663836 Merge pull request #3255 from reitermarkus/summarize
Add missing `summarize` method.
2017-10-02 14:21:45 +02:00
Markus Reiter
23da0aa7fb Merge pull request #3247 from reitermarkus/fix-trash
Fix `brew tests` leaving last file in trash.
2017-10-02 14:02:24 +02:00
Claudia
fbd526ffe6 Unshadow allow_untrusted option for pkg artifact
The pkg stanza has an option called `allow_untrusted`, which is
supposed to cause `/usr/sbin/installer` to be called with the
`-allowUntrusted` switch.

PR #3141 seems to have renamed the `pkg_install_opts` field to
`options`. At the same time, it introduces an `options` parameter for
the `run_installer` method, which shadows the `options` getter
method, causing the `allow_untrusted` option to be silently ignored.

The issue affects just the `pkg` stanza because `Hbc::Artifact::Pkg`
is the only artifact class that has an `options` method.

This commit removes the shadowing by renaming the field to
`stanza_options`; in one case, it uses `_options` for a parameter
name (instead of the more canonical `_`) for the sake of clarity.
2017-10-02 13:34:57 +02:00
Markus Reiter
da66e06068 Add missing summarize method. 2017-10-01 23:33:52 +02:00
Markus Reiter
965ca01596 Fix brew tests leaving last file in trash. 2017-10-01 22:19:07 +02:00
Adam Smith
92311901c9 add available languages to cask info command
add language tests for dsl

add fixtures, tests for languages info output

add extra lines
2017-09-30 18:25:12 -07:00
Markus Reiter
d9a474ed0e Add audit warning if previous Cask version cannot be read. 2017-10-01 02:13:53 +02:00
Markus Reiter
a750644b92 Fail if no default language is specified. 2017-09-29 11:47:21 +02:00
commitay
208135f59f Cask dsl caveats: bump java version to 9 2017-09-27 21:03:23 +10:00
Mike McQuaid
cf5fdeef1d Rubocop: manual rule fixes. 2017-09-24 21:23:59 +01:00
Mike McQuaid
01e9ec9a9f Rubocop: automatic rule fixes. 2017-09-24 21:23:59 +01:00
Markus Reiter
dbc4a385b9 Merge pull request #2878 from wendorf/brew_cask_list_full-name
List cask full-names
2017-09-17 04:03:56 +02:00
Dan Wendorf
acf1b278ae List cask full-names
`brew cask list` supports the `--full-name` flag which will include the tap
name for casks not part of the core caskroom/cask tap. For example, if
cask "foo-beta" is installed from the caskroom/versions cask, `brew cask
list --full-name` will report the name as "caskroom/versions/foo-beta".
2017-09-16 10:00:06 -07:00
Markus Reiter
e336239829 Add missing summarize method. 2017-09-16 03:36:39 +02:00
Markus Reiter
57608170b2 Fix method name. 2017-09-12 09:36:07 +02:00
Markus Reiter
becd8d8bc4 Merge pull request #3148 from reitermarkus/uninstall-signal
Fix uninstall with `:signal`.
2017-09-12 04:18:56 +02:00
Markus Reiter
76cb1462d4 Fix uninstall with :signal. 2017-09-12 01:25:14 +02:00
Markus Reiter
ef67b77d95 Make Cask commands fail early if a Cask is not found. 2017-09-11 09:04:51 +02:00
Markus Reiter
b0c98ba631 Fix _stanza. 2017-09-10 23:12:32 +02:00
Markus Reiter
53ecdd843f Treat every Artifact instance as a single artifact. 2017-09-10 23:12:32 +02:00
Josh Soref
ca32ece84e spelling: packages 2017-09-10 16:39:03 +00:00
Josh Soref
1fe2ade15c spelling: incomplete 2017-09-10 16:35:11 +00:00
Alexey Alekhin
68dd0ac918 Changed warning message as recommended by @reitermarkus 2017-08-31 03:03:00 +02:00
Alexey Alekhin
2a3f83b8d4 Changed online search failure to warning and removed stacktrace 2017-08-26 02:37:39 +02:00
Alexey Alekhin
2cc6ef48ff Narrowed rescued error type 2017-08-24 00:29:22 +02:00
Alexey Alekhin
15d2a9c7cd Formatting fix 2017-08-23 19:47:47 +02:00
Alexey Alekhin
9e2caa8d6a Fixed style issues 2017-08-23 17:54:01 +02:00
Alexey Alekhin
a5640fdfee Added rescue block for the remote cask search failure 2017-08-23 16:54:21 +02:00
Alexey Alekhin
00803b1a0b brew cask search without query just outputs all available cask tokens 2017-08-23 03:23:33 +02:00
Markus Reiter
4b34ca5b35 Merge pull request #3001 from reitermarkus/cask-conflicts-with
Implement `conflicts_with :cask`.
2017-08-20 17:50:54 +02:00
Markus Reiter
56ef168e70 Move fix from #3070 inside GitHub module. 2017-08-20 16:31:46 +02:00
Francisco Souza
f284300495
Skip search_remote on cask search when HOMEBREW_NO_GITHUB_API is set
Fixes #3069.
2017-08-19 19:59:33 -04:00
Ben Muschol
603bdd01a8 Implement PR feedback 2017-08-14 11:08:56 -04:00