Permalink
Browse files

Raise an exception if a downloader doesn't support :head.

  • Loading branch information...
1 parent 6aa7df7 commit 135ce81b0802cedf89269a63cd3f56285e8fa159 @alloy alloy committed Jul 19, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/cocoapods/installer.rb
  2. +1 −1 spec/functional/downloader_spec.rb
@@ -74,6 +74,7 @@ def download_pod(pod)
if downloader.respond_to?(:download_head)
downloader.download_head
else
+ raise Informative, "The downloader of class `#{downloader.class.name}' does not support the `:head' option."
end
else
downloader.download
@@ -261,7 +261,7 @@ module Pod
end
end
- describe "for Http" do
+ describe "for HTTP" do
extend SpecHelper::TemporaryDirectory
it "download file and unzip it" do

0 comments on commit 135ce81

Please sign in to comment.