lib/image_optim/cache.rb in image_optim-0.26.2 vs lib/image_optim/cache.rb in image_optim-0.26.3
- old
+ new
@@ -5,9 +5,10 @@
class ImageOptim
# Handles image cache
class Cache
def initialize(image_optim, workers_by_format)
return unless image_optim.cache_dir
+
@cache_dir = FSPath.new(image_optim.cache_dir)
@cache_worker_digests = image_optim.cache_worker_digests
@options_by_format = Hash[workers_by_format.map do |format, workers|
[format, workers.map(&:inspect).sort.join(', ')]
end]