aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-07-16 22:16:07 +0100
committerMike McQuaid2016-07-29 21:21:29 -0600
commitdd3a8d4b2f715a7dd9af30fae3862363fe8ec861 (patch)
tree04f914accf1ae4d364abebd9ab474c3df8451c08 /Library
parenta2347dc997cdd8b67f0598de7cb35ba15a879cd7 (diff)
downloadbrew-dd3a8d4b2f715a7dd9af30fae3862363fe8ec861.tar.bz2
compat/md5: cleanup style.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/compat/md5.rb17
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