diff options
| author | Mike McQuaid | 2016-07-16 22:16:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-29 21:21:29 -0600 |
| commit | dd3a8d4b2f715a7dd9af30fae3862363fe8ec861 (patch) | |
| tree | 04f914accf1ae4d364abebd9ab474c3df8451c08 /Library | |
| parent | a2347dc997cdd8b67f0598de7cb35ba15a879cd7 (diff) | |
| download | brew-dd3a8d4b2f715a7dd9af30fae3862363fe8ec861.tar.bz2 | |
compat/md5: cleanup style.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/compat/md5.rb | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Library/Homebrew/compat/md5.rb b/Library/Homebrew/compat/md5.rb index 6c49f5fe2..ede7edecb 100644 --- a/Library/Homebrew/compat/md5.rb +++ b/Library/Homebrew/compat/md5.rb @@ -1,26 +1,23 @@ class Formula - def self.md5(val) - stable.md5(val) + def self.md5(_val) + odisabled "Formula.md5", "Formula.sha256" end end class SoftwareSpec - def md5(val) - @resource.md5(val) + def md5(_val) + odisabled "SoftwareSpec#md5", "SoftwareSpec#sha256" end end class Resource - def md5(val) - @checksum = Checksum.new(:md5, val) + def md5(_val) + odisabled "Resource#md5", "Resource#sha256" end end class Pathname def md5 - odie <<-EOS.undent - MD5 support has been dropped for security reasons. - Please switch this formula to SHA256. - EOS + odisabled "Pathname#md5", "Pathname#sha256" end end |
