Sha256: 7eebcd8005ec2d901ba631a0fdb05296665342a13998e67254809b003f213a47
Contents?: true
Size: 363 Bytes
Versions: 10
Compression:
Stored size: 363 Bytes
Contents
# frozen_string_literal: true module Coverband module Utils class FileHasher @cache = {} def self.hash_file(file, path_converter: AbsoluteFileConverter.instance) @cache[file] ||= begin file = path_converter.convert(file) Digest::MD5.file(file).hexdigest if File.exist?(file) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems