obf 0.6.24 → 0.6.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/utils.rb +2 -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: 5d32af2a7afac37302f6831234855acc8b76acb5
|
4
|
+
data.tar.gz: 6caa045b647e96566f2f5f7069e02a391839550b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2958ffbb2fe203cf4165cafdd3efc30d0fb85693a8e0d7dad109e3ee8d258d2a6d035f9e8dcd26bc9190dc2ff0ca0fb425aae88367fa6a8d4d7dcc3e8972b4fe
|
7
|
+
data.tar.gz: 54c0505badbec10c49a553856ac48453f4bdc8602d59d3ffac5487c4cf602fb7ea327c1874d5ac8f32351f3c35091c5f14dda8221f362ed36af94666afc203c7
|
data/lib/obf/utils.rb
CHANGED
@@ -270,7 +270,9 @@ module OBF::Utils
|
|
270
270
|
end
|
271
271
|
|
272
272
|
def self.image_attrs(path)
|
273
|
+
res = {}
|
273
274
|
if path.match(/^data:/)
|
275
|
+
res['content_type'] = path.split(/;/)[0].split(/:/)[1]
|
274
276
|
raw = Base64.strict_decode64(path.split(/\,/, 2)[1])
|
275
277
|
file = Tempfile.new('file')
|
276
278
|
path = file.path
|
@@ -288,7 +290,6 @@ module OBF::Utils
|
|
288
290
|
end
|
289
291
|
end
|
290
292
|
data = `identify -verbose #{path}`
|
291
|
-
res = {}
|
292
293
|
data.split(/\n/).each do |line|
|
293
294
|
pre, post = line.sub(/^\s+/, '').split(/:\s/, 2)
|
294
295
|
if pre == 'Geometry'
|