Browse Source

fix broken downloads due to changed interface

fixes #9
phinze 13 years ago
parent
commit
ff6f5c75fa
  1. 3
      lib/cask.rb

3
lib/cask.rb

@ -1,4 +1,5 @@
require 'download_strategy' require 'download_strategy'
require 'formula_support'
require 'plist/parser' require 'plist/parser'
require 'uri' require 'uri'
@ -76,7 +77,7 @@ class Cask
end end
def install def install
downloader = CurlDownloadStrategy.new(self.url.to_s, self.title, self.version, {}) downloader = CurlDownloadStrategy.new(self.title, SoftwareSpec.new(self.url.to_s, self.version))
downloaded_path = downloader.fetch downloaded_path = downloader.fetch
FileUtils.mkdir_p destination_path FileUtils.mkdir_p destination_path

Loading…
Cancel
Save