aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorJack Nagel2013-09-17 21:25:38 -0500
committerJack Nagel2013-09-17 21:29:52 -0500
commitcc51ab41dbcf80f2bb37584d45eaaa99ac9580b8 (patch)
treea48233a8e136aea0fe501ab3f85368650ee64bc2 /Library/Homebrew/compat
parent73ddbb6df53a5657e61e7074c62b5bae77c5de78 (diff)
downloadhomebrew-cc51ab41dbcf80f2bb37584d45eaaa99ac9580b8.tar.bz2
Reimplement SoftwareSpec on top of Resource
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/md5.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/compat/md5.rb b/Library/Homebrew/compat/md5.rb
index d600bab6d..55383f0c1 100644
--- a/Library/Homebrew/compat/md5.rb
+++ b/Library/Homebrew/compat/md5.rb
@@ -1,12 +1,18 @@
class Formula
def self.md5(val)
- @stable ||= SoftwareSpec.new
+ @stable ||= create_spec(SoftwareSpec)
@stable.md5(val)
end
end
class SoftwareSpec
def md5(val)
+ @resource.md5(val)
+ end
+end
+
+class Resource
+ def md5(val)
@checksum = Checksum.new(:md5, val)
end
end