lib/hanko/fingerprint.rb in hanko-0.1.2 vs lib/hanko/fingerprint.rb in hanko-0.1.3
- old
+ new
@@ -20,10 +20,10 @@
@cached_pon ||= {}
end
def generate_pon(assets_dir, source)
path = File.join(assets_dir || '', source)
- File.exist?(path) ? file_digest(path) : ''
+ File.file?(path) ? file_digest(path) : ''
end
def file_digest(path)
digest_class.file(path).hexdigest
end