Open awead opened 9 years ago
Allow users to pass their own checksum method for datastream verification.
def has_matching_checksums? checksum(datastream) == target_checksum end
def checksum content content.respond_to?(:checksum) ? content.checksum : Digest::SHA1.hexdigest(content) end
:smiley_cat:
Allow users to pass their own checksum method for datastream verification.