repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix up Rubinius specific library specs.
[rbx.git]
/
lib
/
rubygems
/
digest
/
sha1.rb
blob
2a6245dcd90518a0fc1736fd9e96e3ce20012e71
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
#++
7
8
require 'digest/sha1'
9
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