lib/coverband/utils/file_hasher.rb in coverband-5.2.6.rc.4 vs lib/coverband/utils/file_hasher.rb in coverband-5.2.6.rc.5
- 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