Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 311 Bytes
# just for compatibility; requiring "sha1" is obsoleted
require 'digest/sha1'
class SHA1 < Digest::SHA1
class << self
alias orig_new new
def new(str=nil)
if str
orig_new.update(str)
else
orig_new
end
end
def sha1(*args)
new(*args)
end
end
end
Something went wrong with that request. Please try again.