obf 0.7.7 → 0.7.8
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 +4 -4
- 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: 788567d03c7151ff15b66282e2d46f7a8a22d0e6
|
4
|
+
data.tar.gz: e011d9cbeeb62e7ea6b659f0873171e0464de84b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92f4a1eae16c80a59e777cdce633774f8a2d3098b8298017146d673cd15478abe3c175a982edf60aefe3cef2d69ca74ba61c7f72d3bd0b29ee40da1b8be0f47e
|
7
|
+
data.tar.gz: 2543a5dc57b45a74f5423818c05ce8c4fd6b8f249bfc6e374e9e6451ed5ecc207e6d830c5115db5fd0641ee23ac88c50fc9a9cd0a6d99b5b1632650c3a49c19e
|
data/lib/obf/utils.rb
CHANGED
@@ -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
|