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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25e1d4cb02a5f3df0c262f908f01fa2700175a24
4
- data.tar.gz: 399f1a7f03866e622e0a7be870188969c7d30daf
3
+ metadata.gz: 57662a56aec686360df745ef1056fd757f4202e7
4
+ data.tar.gz: 3e21ae9a44c4bb00f543166930131f4de6b76ebb
5
5
  SHA512:
6
- metadata.gz: 6888c03a0795f408bf93998625379a139d0499a8e5100701ad0a1bef8c56181921e3a18b89fee4c35d2350aa5331416d9251106b441ed6bd0241936e29a65679
7
- data.tar.gz: 1eee4cb845f7d93d8e9733eb96e2c0cb276a369f22b478e5b05ec0ea9e429e5ef9395066d6002f75ed5deb115ec3517014b091cecd3d630fe8a72e20b8898fbb
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::ImagePath::Optimized)
11
+ if result.kind_of?(::ImageOptim::OptimizedPath)
12
12
  { before: result.original_size, after: result.size }
13
13
  else
14
14
  false
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module PhotoCook
5
- VERSION = '1.2.5'
5
+ VERSION = '1.2.6'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: photo-cook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov