1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rubygems/digest/sha1.rb

17 lines
329 B
Ruby
Raw Normal View History

#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'digest/sha1'
module Gem
if RUBY_VERSION >= '1.8.6'
SHA1 = Digest::SHA1
else
require 'rubygems/digest/digest_adapter'
SHA1 = DigestAdapter.new(Digest::SHA1)
end
end