From ff6f5c75fae6c98546d96c3a95b74a1978fa3532 Mon Sep 17 00:00:00 2001 From: phinze Date: Sat, 25 Aug 2012 21:22:52 -0500 Subject: [PATCH] fix broken downloads due to changed interface fixes #9 --- lib/cask.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cask.rb b/lib/cask.rb index 2c15f4367..3e0c093f9 100644 --- a/lib/cask.rb +++ b/lib/cask.rb @@ -1,4 +1,5 @@ require 'download_strategy' +require 'formula_support' require 'plist/parser' require 'uri' @@ -76,7 +77,7 @@ class Cask end 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 FileUtils.mkdir_p destination_path