lib/sprockets/digest_utils.rb in sprockets-4.0.0.beta4 vs lib/sprockets/digest_utils.rb in sprockets-4.0.0.beta5

- old
+ new

@@ -78,9 +78,12 @@ ADD_VALUE_TO_DIGEST[Bignum] = ->(val, digest) { digest << 'Integer'.freeze digest << val.to_s } end + + ADD_VALUE_TO_DIGEST.compare_by_identity.rehash + ADD_VALUE_TO_DIGEST.default_proc = ->(_, val) { raise TypeError, "couldn't digest #{ val }" } private_constant :ADD_VALUE_TO_DIGEST