Lines Matching refs:digests
2 # IO wrapper that creates digests of contents written to the IO it wraps.
7 # Collected digests for wrapped writes.
14 attr_reader :digests
18 # the +digests+ Hash. Returns the digests hash. Example:
21 # digests = {
26 # Gem::Package::DigestIO.wrap io, digests do |digest_io|
30 # digests['SHA1'].hexdigest #=> "aaf4c61d[...]"
31 # digests['SHA512'].hexdigest #=> "9b71d224[...]"
33 def self.wrap io, digests
34 digest_io = new io, digests
38 return digests
43 # ::wrap documentation for documentation of +io+ and +digests+.
45 def initialize io, digests
47 @digests = digests
51 # Writes +data+ to the underlying IO and updates the digests
56 @digests.each do |_, digest|