obf 0.6.32 → 0.6.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/obf/utils.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: 230b3bb3335c38be94d2476551bb7f5ab940f4d3
|
|
4
|
+
data.tar.gz: 3cd1a4757798cfc38136ed3b5d1fd842d33b59c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d96be893c3d615785089ea1ee57006dcd1549f089ff4e238b7d4c5a1ad03aa1c915ad1c02eae5b8dd8b8e96468bac095844da849f8a2e4fde757db90f714dcda
|
|
7
|
+
data.tar.gz: 324dd7738768df3f7f17b474bf54de254eb97a68e0c93bb59ebf57c23f6b3c09a2ac0c25087ba3e0cb6ce1f17f65723f0e62710de627399327414ed3b59b17f2
|
data/lib/obf/utils.rb
CHANGED
|
@@ -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}`
|