lib/juicer/install/base.rb in juicer-1.0.10 vs lib/juicer/install/base.rb in juicer-1.0.11

- old
+ new

@@ -122,10 +122,10 @@ # until #purge is called to wipe it. If the installer receives a request # to download the same file again, the disk cache will be used unless the # force argument is true (default false) # def download(url, force = false) - filename = File.join(@install_dir, "download", path.sub("lib/", ""), File.basename(url)) + filename = File.join(@install_dir, "download", path.sub("lib/", ""), File.basename(url).split("?").first) return filename if File.exists?(filename) && !force FileUtils.mkdir_p(File.dirname(filename)) File.delete(filename) if File.exists?(filename) && force log "Downloading #{url}"