homebrew-cask/lib/hbc
Claudia f348f74157 Introduce optional block syntax for `url` stanza
This commit amends the `url` stanza to accept an optional
block

The block is only evaluated when needed, for example on
download time or when auditing a Cask. It is never evaluated
when loading a Cask.

The return value of the block is either a `String`, or a
`String, Hash` tuple; the latter case is for additional
options such as `referer`.

Implementation note: Rolled my own delegate logic because
`SimpleDelegator` turns out to take too much of a
performance hit.
2016-06-18 21:32:39 +02:00
..
artifact Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
cli Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
container Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
dsl Introduce optional block syntax for `url` stanza 2016-06-18 21:32:39 +02:00
extend Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
hardware Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
macos core: added support for sierra 2016-06-13 21:17:46 +01:00
source Use keyword arguments in Hbc::Cask constructor 2016-01-06 10:33:03 -05:00
utils Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
verify Attempt somewhat more clear language upon skipping checksum verification 2015-12-30 17:40:40 -08:00
artifact.rb [WIP] Change artifact behavior to moving instead of symlinking (#13966) 2016-05-31 15:23:21 -04:00
audit.rb Require target for generic artifact (#21549) 2016-05-31 07:30:08 -04:00
auditor.rb Fix audit bug introduced in #16166 2015-12-28 01:41:14 -05:00
cask.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
cask_dependencies.rb Check for DSL-level nils when sorting dependencies 2015-01-04 02:30:36 +00:00
caveats.rb core: OS X > macOS 2016-06-13 21:17:46 +01:00
checkable.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
cli.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
container.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
download.rb [WIP] Change artifact behavior to moving instead of symlinking (#13966) 2016-05-31 15:23:21 -04:00
download_strategy.rb Revert "Delete Subversion support" 2015-12-29 15:22:57 +00:00
dsl.rb Introduce optional block syntax for `url` stanza 2016-06-18 21:32:39 +02:00
exceptions.rb Load casks as instances of Hbc::Cask rather than subclasses 2016-01-06 10:31:59 -05:00
extend.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
fetcher.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
hardware.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
installer.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
locations.rb Clarify new options for caskroom (#21915) 2016-06-13 11:14:13 -04:00
macos.rb [WIP] Change artifact behavior to moving instead of symlinking (#13966) 2016-05-31 15:23:21 -04:00
options.rb Intercept --help flag, treat as help cmd 2016-01-17 22:09:49 -05:00
pkg.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
pretty_listing.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
qualified_token.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
scopes.rb Memoize casks in Scopes.all for speed 2016-01-07 23:45:40 -05:00
source.rb Check arguments individually in `brew cask list`. 2016-06-16 20:36:44 +02:00
staged.rb [WIP] Change artifact behavior to moving instead of symlinking (#13966) 2016-05-31 15:23:21 -04:00
system_command.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
topological_hash.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
underscore_supporting_uri.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
url.rb Introduce optional block syntax for `url` stanza 2016-06-18 21:32:39 +02:00
url_checker.rb Move all code under an Hbc:: namespace 2015-01-02 07:27:03 -05:00
utils.rb Replace `and`/`or`/`not` keywords with `&&`/`||`/`!` (#22041) 2016-06-18 00:43:50 -04:00
verify.rb Move GpgCheck to Verify::Gpg, keep disabled 2015-12-23 15:21:08 -05:00
version.rb brew-cask: move to using tap cmd directory. 2015-12-09 19:32:49 +00:00
without_source.rb Load casks as instances of Hbc::Cask rather than subclasses 2016-01-06 10:31:59 -05:00