obf 0.6.32 → 0.6.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/utils.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dedc95448e2b00a85d37a4d9f5f4bb66757f605
4
- data.tar.gz: edd01f088aa2c707c6e1537464b56f2503102602
3
+ metadata.gz: 230b3bb3335c38be94d2476551bb7f5ab940f4d3
4
+ data.tar.gz: 3cd1a4757798cfc38136ed3b5d1fd842d33b59c7
5
5
  SHA512:
6
- metadata.gz: 09cd638178247d79039caa951dd9df024350aa0ad36c5ca185465703f81ed0f86c9f57ba811e03f5d297a489171416bbe437c82eb3fd7165cd1eb182d23e1176
7
- data.tar.gz: c770c9b2b41736f8c3d986d06228663a3e251e25e196ec922c504bc2170bd23e52a776adb8f2b0ea70efecf9b7a90d61cbe3d9baead946b919c743f05d9d6d7c
6
+ metadata.gz: d96be893c3d615785089ea1ee57006dcd1549f089ff4e238b7d4c5a1ad03aa1c915ad1c02eae5b8dd8b8e96468bac095844da849f8a2e4fde757db90f714dcda
7
+ data.tar.gz: 324dd7738768df3f7f17b474bf54de254eb97a68e0c93bb59ebf57c23f6b3c09a2ac0c25087ba3e0cb6ce1f17f65723f0e62710de627399327414ed3b59b17f2
@@ -153,7 +153,7 @@ module OBF::Utils
153
153
  return nil
154
154
  end
155
155
  file.close
156
- if extension && ['image/jpeg', 'image/jpg', 'image/gif'].include?(image['content_type']) && image['width'] < 1000 && image['width'] == image['height']
156
+ if extension && ['image/jpeg', 'image/jpg', 'image/gif'].include?(image['content_type']) && image['width'] && image['width'] < 1000 && image['width'] == image['height']
157
157
  # png files need to be converted to make sure they don't have a transparent bg, or
158
158
  # else performance takes a huge hit.
159
159
  `cp #{file.path} #{file.path}.#{extension}`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.32
4
+ version: 0.6.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer