obf 0.7.7 → 0.7.8

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 +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abd25c02539cdc01e06d0621a266aff2ffcaccb9
4
- data.tar.gz: fd5b2cdbe77059ff5059a04832a29b6b2ac8a56f
3
+ metadata.gz: 788567d03c7151ff15b66282e2d46f7a8a22d0e6
4
+ data.tar.gz: e011d9cbeeb62e7ea6b659f0873171e0464de84b
5
5
  SHA512:
6
- metadata.gz: 1f4f0079d4cabbebbf5c83c0c2f9d1cc37fc85080c23ff3793dcc7cf2d007fa46764604fd4d864571036028e654611881b7d8905f16cd16d3ff09162bb75f1f2
7
- data.tar.gz: 72bb40d9f7930309e79c3e2628f2dd2e446b1b8a93c9f75dd065696c5a7e9ecd1dd82005466085f7720872c940ccfe76d75b06f5d3b7bc39a15401359f1c94ce
6
+ metadata.gz: 92f4a1eae16c80a59e777cdce633774f8a2d3098b8298017146d673cd15478abe3c175a982edf60aefe3cef2d69ca74ba61c7f72d3bd0b29ee40da1b8be0f47e
7
+ data.tar.gz: 2543a5dc57b45a74f5423818c05ce8c4fd6b8f249bfc6e374e9e6451ed5ecc207e6d830c5115db5fd0641ee23ac88c50fc9a9cd0a6d99b5b1632650c3a49c19e
@@ -226,15 +226,15 @@ module OBF::Utils
226
226
  if button['image_id']
227
227
  # find image in list, if it has an id but no path, use the path from the manifest
228
228
  image = (json['images'] || []).detect{|i| i['id'] == button['image_id'] }
229
- if image && !image['path'] && !image['data'] && opts['manifest'] && opts['manifest']['images'] && opts['manifest']['images'][button['image_id']]
230
- image['path'] = opts['manifest']['images'][button['image_id']]
229
+ if image && !image['path'] && !image['data'] && opts['manifest'] && opts['manifest']['paths'] && opts['manifest']['paths']['images'] && opts['manifest']['paths']['images'][button['image_id']]
230
+ image['path'] = opts['manifest']['paths']['images'][button['image_id']]
231
231
  end
232
232
  end
233
233
  if button['sound_id']
234
234
  # find sound in list, if it has an id but no path, use the path from the manifest
235
235
  sound = (json['sounds'] || []).detect{|s| s['id'] == button['sound_id'] }
236
- if sound && !sound['path'] && !sound['data'] && opts['manifest'] && opts['manifest']['sounds'] && opts['manifest']['sounds'][button['sound_id']]
237
- sound['path'] = opts['manifest']['sounds'][button['sound_id']]
236
+ if sound && !sound['path'] && !sound['data'] && opts['manifest'] && opts['manifest']['paths'] && opts['manifest']['paths']['sounds'] && opts['manifest']['paths']['sounds'][button['sound_id']]
237
+ sound['path'] = opts['manifest']['paths']['sounds'][button['sound_id']]
238
238
  end
239
239
  end
240
240
  end
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.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer