photo-cook 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photo-cook/optimization/image-optim.rb +1 -1
- data/lib/photo-cook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57662a56aec686360df745ef1056fd757f4202e7
|
4
|
+
data.tar.gz: 3e21ae9a44c4bb00f543166930131f4de6b76ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255b1ea74b0c6465f6bb6d8ee6c8914d8ebb6631758d61f5e8c58a74a022b6dc8a0dfc4107447a094224881a78f2d27cd33f9ddcc3cf0b7b0c2b9ccc728c806a
|
7
|
+
data.tar.gz: 6aba23454e90333ceca55cc6bddf4b353cbfd4d1abf78f295c70e7d1fc44ce4916419bc4618daba7ea296b6c1200878b7b030e3ddfbee70236f32c9794db02fa
|
@@ -8,7 +8,7 @@ module PhotoCook
|
|
8
8
|
|
9
9
|
def optimize(path)
|
10
10
|
result = image_optim.optimize_image!(path)
|
11
|
-
if result.kind_of?(::ImageOptim::
|
11
|
+
if result.kind_of?(::ImageOptim::OptimizedPath)
|
12
12
|
{ before: result.original_size, after: result.size }
|
13
13
|
else
|
14
14
|
false
|
data/lib/photo-cook/version.rb
CHANGED