obf 0.7.5 → 0.7.6

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/validator.rb +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a27fdff7261fbbfe6858eb43c17d1002cc4ec334
4
- data.tar.gz: 19ec68d9b18b28e450e9168104baf467fcdcadc2
3
+ metadata.gz: d7bc4108de1735c572aa335fd826174d0d10aa7d
4
+ data.tar.gz: ac27300e004ff579c4c98d2203584cd903a0a313
5
5
  SHA512:
6
- metadata.gz: ba3b5347b52726daebe6ef9922b10b78a3d70991815f1f6ce9e56f50b90994cc34a573f8750cc348d5295ad6ed05027afba4472c4df1d7803fc060ca9ebbf9fc
7
- data.tar.gz: f0df2604eef61c2ffea95a4f71c7fbdcd6a51bcbf07c734196a34c46f2d9ceb47763b56ae96bf485b11d9f65c8dc292badc4314bab0e1b48e4fa451ccb3826eb
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
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.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer