diff options
| author | Jack Nagel | 2013-09-26 16:59:45 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-26 17:00:00 -0500 |
| commit | dd43a9552ad1b3a7be6aadd8bb5f0147b4224fbc (patch) | |
| tree | 507e6e56af47b7434fa4e4dfa257a25160bb65e0 /Library/Formula/mcpp.rb | |
| parent | d16abcddd55290a380a8db976c5918cac0ac45e8 (diff) | |
| download | homebrew-dd43a9552ad1b3a7be6aadd8bb5f0147b4224fbc.tar.bz2 | |
Raise when given an invalid download strategy spec
When DownloadStrategyDetector.detect is given a second argument, and
that argument is not a symbol or an AbstractDownloadStrategy subclass,
it is silently ignored, and we fall back to guessing the strategy based
on the URL.
This means I can do
url 'http://foo.com/bar.tar.gz', :using => Class.new
and things will appear to work, even though I have clearly passed an
invalid value for :using.
A more useful behavior is to raise an exception for unknown strategy
specifications.
Diffstat (limited to 'Library/Formula/mcpp.rb')
0 files changed, 0 insertions, 0 deletions
