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
Change soft-fail to use the config, rather than env
[rbx.git]
/
lib
/
rubygems
/
digest
/
md5.rb
blob
f924579c08e70527253e4609ffb3b09cbd7cf578
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/md5'
9
10
# :stopdoc:
11
module Gem
12
if RUBY_VERSION >= '1.8.6'
13
MD5 = Digest::MD5
14
else
15
require 'rubygems/digest/digest_adapter'
16
MD5 = DigestAdapter.new(Digest::MD5)
17
def MD5.md5(string)
18
self.hexdigest(string)
19
end
20
end
21
end
22
# :startdoc:
23