aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/md5.rb
blob: 6c49f5fe2c01505637fd80b0d9450b45a4bc4024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class Formula
  def self.md5(val)
    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

class Pathname
  def md5
    odie <<-EOS.undent
      MD5 support has been dropped for security reasons.
      Please switch this formula to SHA256.
    EOS
  end
end