Sha256: dac2562a0a34854dd6392e2b2757f175290ed5ad5f4343e2b4261891a372fec3
Contents?: true
Size: 409 Bytes
Versions: 47
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true module Coverband module Utils class FileHasher @cache = {} def self.hash(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
47 entries across 47 versions & 1 rubygems