obf 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/validator.rb +10 -0
- 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: d7bc4108de1735c572aa335fd826174d0d10aa7d
|
4
|
+
data.tar.gz: ac27300e004ff579c4c98d2203584cd903a0a313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d13ab85d3dbbdd78d6677d1b0b530aeafb2b376c951eda2e40511e5f6e75a1d6b8553e6338410d28d3c2bf6f80867c58cca52c501d68de246195478d073c824d
|
7
|
+
data.tar.gz: ea87f701639ade7b7aea96915d27933f071cbafd006a06677edbf57df3474ec1dc514256e9823a29142e6b72e6f90ee42abec919610269537820057d19c22331
|
data/lib/obf/validator.rb
CHANGED
@@ -526,6 +526,16 @@ module OBF
|
|
526
526
|
end
|
527
527
|
end
|
528
528
|
|
529
|
+
if button['load_board'] && button['load_board']['path']
|
530
|
+
if !opts['zipper']
|
531
|
+
err "button.load_board.path is set but this isn't a zipped file"
|
532
|
+
else
|
533
|
+
json = JSON.parse(opts['zipper'].read(button['load_board']['path'])) rescue nil
|
534
|
+
if !json || !json['id']
|
535
|
+
err "button.load_board.path references #{button['load_board']['path']} which isn't found in the zipped file"
|
536
|
+
end
|
537
|
+
end
|
538
|
+
end
|
529
539
|
end
|
530
540
|
end
|
531
541
|
end
|