Jack Nagel d1ce5bafc9 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.
2013-09-26 17:00:00 -05:00
..
2012-06-16 11:43:43 -05:00
2010-04-06 08:27:10 -07:00
2012-11-17 22:59:06 -06:00
2013-05-20 22:34:53 -05:00
2013-04-07 20:59:49 -05:00
2013-04-01 12:15:29 -05:00
2013-04-10 22:27:56 -05:00
2013-07-22 11:41:47 -05:00
2013-07-01 01:06:44 -05:00
2013-08-15 22:46:56 -07:00
2012-07-04 22:47:34 -05:00
2013-08-19 17:21:13 -05:00
2013-09-01 13:19:13 -07:00
2012-07-04 22:47:34 -05:00
2013-06-26 09:45:32 -07:00
2013-04-13 18:23:06 -05:00