lib/paperweight/download.rb in paperweight-0.0.5 vs lib/paperweight/download.rb in paperweight-0.1.0
- old
+ new
@@ -30,15 +30,9 @@
# We raise our unified Error class
raise Error, "download failed (#{url}): #{message}"
end
- def self.download(url)
- new.download(url)
- rescue Error
- nil
- end
-
private
# open-uri will return a StringIO instead of a Tempfile if the filesize
# is less than 10 KB, so we patch this behaviour by converting it into a
# Tempfile.