aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/md5.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/compat/md5.rb')
-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