Imported File#ftype spec from rubyspecs.
[rbx.git] / lib / rubygems / digest / sha2.rb
blob7bef16aed256b7bec79e974c0c824eb08d1e7dc8
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/sha2'
10 module Gem
11   if RUBY_VERSION >= '1.8.6'
12     SHA256 = Digest::SHA256
13   else
14     require 'rubygems/digest/digest_adapter'
15     SHA256 = DigestAdapter.new(Digest::SHA256)
16   end
17 end