diff options
| author | Jack Nagel | 2013-06-06 12:02:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-06 12:10:41 -0500 |
| commit | dc315dc525a524222a920de5938543d4aa1d6d0c (patch) | |
| tree | eab14c80004d68997b5ad497d6bea4d39103dbe7 | |
| parent | b1da52a1ddc568ea03a3167e39d53532082b0656 (diff) | |
| download | homebrew-dc315dc525a524222a920de5938543d4aa1d6d0c.tar.bz2 | |
Use ivar accessors
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index ead132bbf..7ad2fb635 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -45,7 +45,7 @@ class Formula @active_spec = determine_active_spec validate_attributes :url, :name, :version - @downloader = download_strategy.new(name, @active_spec) + @downloader = download_strategy.new(name, active_spec) # Combine DSL `option` and `def options` options.each do |opt, desc| diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index a36f5a387..f1eebd1d7 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -16,11 +16,11 @@ class SoftwareSpec end def download_strategy - @download_strategy ||= DownloadStrategyDetector.detect(@url, @using) + @download_strategy ||= DownloadStrategyDetector.detect(url, using) end def verify_download_integrity fn - fn.verify_checksum @checksum + fn.verify_checksum(checksum) rescue ChecksumMissingError opoo "Cannot verify package integrity" puts "The formula did not provide a download checksum" @@ -61,7 +61,7 @@ class SoftwareSpec end def mirror val - @mirrors << val + mirrors << val end end |
