Fix up Rubinius specific library specs.
[rbx.git] / lib / rubygems / digest / sha1.rb
blob2a6245dcd90518a0fc1736fd9e96e3ce20012e71
1 #!/usr/bin/env ruby
2 #--
3 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
4 # All rights reserved.
5 # See LICENSE.txt for permissions.
6 #++
8 require 'digest/sha1'
10 module Gem
11   if RUBY_VERSION >= '1.8.6'
12     SHA1 = Digest::SHA1
13   else
14     require 'rubygems/digest/digest_adapter'
15     SHA1 = DigestAdapter.new(Digest::SHA1)
16   end
17 end