diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 6fc519c5f..09530d280 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -49,8 +49,11 @@ end class VCSDownloadStrategy < AbstractDownloadStrategy def initialize name, resource super - specs = resource.specs - @ref_type, @ref = specs.dup.shift unless specs.empty? + @ref_type, @ref = destructure_spec_hash(resource.specs) + end + + def destructure_spec_hash(spec) + spec.each { |o| return o } end end |
