Sha256: e5f86a09ac1b96f021d34d22e2bae90ed78fc12ef3c55c4ef8ff5de4fdf6d712
Contents?: true
Size: 414 Bytes
Versions: 7
Compression:
Stored size: 414 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
7 entries across 7 versions & 1 rubygems