Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.306 kb
# just for compatibility; requiring "md5" is obsoleted
require 'digest/md5'
class MD5 < Digest::MD5
class << self
alias orig_new new
def new(str=nil)
if str
orig_new.update(str)
else
orig_new
end
end
def md5(*args)
new(*args)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.