Class Gem::DigestAdapter
In: lib/rubygems/digest/digest_adapter.rb
Parent: Object

There is an incompatibility between the way Ruby 1.8.5 and 1.8.6 handles digests. This DigestAdapter will take a pre-1.8.6 digest and adapt it to the 1.8.6 API.

Note that only the digest and hexdigest methods are adapted, since these are the only functions used by RubyGems.

Methods

digest   hexdigest   new   new  

Public Class methods

Initialize a digest adapter.

Public Instance methods

Return the digest of string as a binary string.

Return the digest of string as a hex string.

Return a new digester. Since we are only implementing the stateless methods, we will return ourself as the instance.

[Validate]