diff options
| author | Mike McQuaid | 2016-11-06 17:38:50 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-11-06 17:38:50 +0000 |
| commit | fcaa48d80b0c2989ca95528def6d0c8fbd65aa79 (patch) | |
| tree | 6bfe455ea612fd304e4e3e36a60798649ed8e44f /Library/Homebrew/compat | |
| parent | ce2b11fd656e85a2cd73f45b4ac25fd34b1599cf (diff) | |
| download | brew-fcaa48d80b0c2989ca95528def6d0c8fbd65aa79.tar.bz2 | |
compat/sha1: disable SHA-1 support.
This has been deprecated for quite a while now so disabling seems
reasonable.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/sha1.rb | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/Library/Homebrew/compat/sha1.rb b/Library/Homebrew/compat/sha1.rb index ed931f634..adf11bdd5 100644 --- a/Library/Homebrew/compat/sha1.rb +++ b/Library/Homebrew/compat/sha1.rb @@ -1,36 +1,29 @@ class Formula - def self.sha1(val) - odeprecated "Formula.sha1", "Formula.sha256" - stable.sha1(val) + def self.sha1(_val) + odisabled "Formula.sha1", "Formula.sha256" end end class SoftwareSpec - def sha1(val) - odeprecated "SoftwareSpec#sha1", "SoftwareSpec#sha256" - @resource.sha1(val) + def sha1(_val) + odisabled "SoftwareSpec#sha1", "SoftwareSpec#sha256" end end class Resource - def sha1(val) - odeprecated "Resource#sha1", "Resource#sha256" - @checksum = Checksum.new(:sha1, val) + def sha1(_val) + odisabled "Resource#sha1", "Resource#sha256" end end class BottleSpecification - def sha1(val) - odeprecated "BottleSpecification#sha1", "BottleSpecification#sha256" - digest, tag = val.shift - collector[tag] = Checksum.new(:sha1, digest) + def sha1(_val) + odisabled "BottleSpecification#sha1", "BottleSpecification#sha256" end end class Pathname def sha1 - require "digest/sha1" - odeprecated "Pathname#sha1", "Pathname#sha256" - incremental_hash(Digest::SHA1) + odisabled "Pathname#sha1", "Pathname#sha256" end end |
