lib/dionysus/digest.rb in dionysus-0.4.0 vs lib/dionysus/digest.rb in dionysus-1.0.0

- old
+ new

@@ -115,10 +115,10 @@ private def self._digest_lengths( bits_per_char ) # :nodoc: padding_factor = (bits_per_char.lcm(8) / bits_per_char) - returning result={} do + {}.tap do |result| self.digests.each do |dig, info| result[dig] = len = info[:bit_length] / bits_per_char if (t_ = len % padding_factor) != 0 result[dig] = len + (padding_factor - t_) end