lib/coverband/utils/file_hasher.rb in coverband-5.2.3.1 vs lib/coverband/utils/file_hasher.rb in coverband-5.2.3.2

- old
+ new

@@ -3,10 +3,10 @@ module Coverband module Utils class FileHasher @cache = {} - def self.hash(file, path_converter: AbsoluteFileConverter.instance) + 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