lib/paperweight/download.rb in paperweight-1.0.1 vs lib/paperweight/download.rb in paperweight-1.0.2

- old
+ new

@@ -28,9 +28,13 @@ # We raise our unified Error class raise Error, "download failed (#{url}): #{message}" end + def self.download(url) + new.download(url) + 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.