obf 0.6.24 → 0.6.25

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 +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f3c7e96df362af96cf087174c168966ffd4a6ab
4
- data.tar.gz: e20af5e343433d5904a173e9fe225b21a1df49ef
3
+ metadata.gz: 5d32af2a7afac37302f6831234855acc8b76acb5
4
+ data.tar.gz: 6caa045b647e96566f2f5f7069e02a391839550b
5
5
  SHA512:
6
- metadata.gz: 384045a98a8ec10543edf9420a56119093136a2ec16f502abcfa6a5aa592cffe3fa89863109cb7aff2c0ac96feb18244b626bf684de11707379a2ff34807fde0
7
- data.tar.gz: f2458355e5fe943f31244389a9b342584b118302e3a7b784ba59acc01a8e27f4a1ca952c8b9db2beacc20cae9261cd35a8649bfee0bef637a5fb0f5ff46e20f6
6
+ metadata.gz: 2958ffbb2fe203cf4165cafdd3efc30d0fb85693a8e0d7dad109e3ee8d258d2a6d035f9e8dcd26bc9190dc2ff0ca0fb425aae88367fa6a8d4d7dcc3e8972b4fe
7
+ data.tar.gz: 54c0505badbec10c49a553856ac48453f4bdc8602d59d3ffac5487c4cf602fb7ea327c1874d5ac8f32351f3c35091c5f14dda8221f362ed36af94666afc203c7
@@ -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'
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.24
4
+ version: 0.6.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer