From dd3a8d4b2f715a7dd9af30fae3862363fe8ec861 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 16 Jul 2016 22:16:07 +0100 Subject: compat/md5: cleanup style. --- Library/Homebrew/compat/md5.rb | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3