lib/fontist/utils/cache.rb in fontist-1.15.2 vs lib/fontist/utils/cache.rb in fontist-1.16.0

- old
+ new

@@ -19,9 +19,14 @@ path = save_cache(generated_file, key) downloaded_file(path) end + def already_fetched?(keys) + map = load_cache + keys.find { |k| cache_exist?(map[k]) } + end + def delete(key) lock(lock_path) do map = load_cache return unless map[key]