summaryrefslogtreecommitdiffstats
path: root/lib/rubygems/digest/sha2.rb
blob: 7bef16aed256b7bec79e974c0c824eb08d1e7dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'digest/sha2'

module Gem
  if RUBY_VERSION >= '1.8.6'
    SHA256 = Digest::SHA256
  else
    require 'rubygems/digest/digest_adapter'
    SHA256 = DigestAdapter.new(Digest::SHA256)
  end
end