From bc529e901a531d61f759bc2df184789d2cf942b3 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Wed, 13 Dec 2017 20:10:40 +0100 Subject: [PATCH] require date which is used in parsing pngout version, fixes toy/image_optim_pack#14 --- CHANGELOG.markdown | 2 ++ lib/image_optim/bin_resolver/bin.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index f1f8a589..71638bf1 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -2,6 +2,8 @@ ## unreleased +* Require `'date'` which is used in parsing pngout version [toy/image_optim_pack#14](https://github.com/toy/image_optim_pack/issues/14) [@toy](https://github.com/toy) + ## v0.26.0 (2017-11-13) * Enable `jpegrescan` by default after removing its dependency on `File::Slurp` and fixing for windows [#153](https://github.com/toy/image_optim/issues/153) [@toy](https://github.com/toy) diff --git a/lib/image_optim/bin_resolver/bin.rb b/lib/image_optim/bin_resolver/bin.rb index 68553ad4..2bbb9634 100644 --- a/lib/image_optim/bin_resolver/bin.rb +++ b/lib/image_optim/bin_resolver/bin.rb @@ -5,6 +5,7 @@ require 'image_optim/path' require 'shellwords' require 'digest/sha1' +require 'date' class ImageOptim class BinResolver