obf 0.6.14 → 0.6.15

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 +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8c10c2dae743466f7598663539f5217ce8dcb95
4
- data.tar.gz: eaaf655f14ac7f999b4f798883bbe643c3030887
3
+ metadata.gz: 097eca86a2f35febf310b4337cd104a982218b99
4
+ data.tar.gz: b8a58e436e40e4f789fc80f8869aabae20b6b476
5
5
  SHA512:
6
- metadata.gz: 2086258ef0e206331916219f38cd5dca25a7b70683ec5fd1e41d7167481027bc680e20b09e2f5acae0ab564c12c5d2245fb60b67b3770c56967a86f9c9c80d78
7
- data.tar.gz: 8d044b03e5f00e352185503da7ff20ad603143ca492e991ecd9b23b1ca40194a3499775a6f1da27b8bce5a7869273a852376077d17ab35c967cb3c00a9177422
6
+ metadata.gz: 9e06fab745ea341376182b5f14e6aed45805608c0c0972c8889f93b6b0d7e6b0bfbcb971c2ae444b30770a6f14119efa3ca481cc50b7555e04ce1a661cdcf8c1
7
+ data.tar.gz: b673495b1f2c3f58d5f6b95531e2ad6016d5c15aa57ac890d012dc09576ee03b53358199d44d8045cbd16e8dabb5bf4cd78a87e4bb512fdd7d0d161313927b66
data/lib/obf/validator.rb CHANGED
@@ -424,8 +424,8 @@ module OBF
424
424
  err "image.height must be a valid positive number"
425
425
  elsif !image['content_type'] || !image['content_type'].match(/^image\/.+$/)
426
426
  err "image.content_type must be a valid image mime type"
427
- elsif !image['url'] && !image['data'] && !image['symbol']
428
- err "image must have data, url or symbol attribute defined"
427
+ elsif !image['url'] && !image['data'] && !image['symbol'] && !image['path']
428
+ err "image must have data, url, path or symbol attribute defined"
429
429
  elsif image['data'] && !image['data'].match(/^data:image\/.+;base64,.+$/)
430
430
  err "image.data must be a valid data URI if defined"
431
431
  elsif image['symbol'] && !image['symbol'].is_a?(Hash)
@@ -470,8 +470,8 @@ module OBF
470
470
  err "sound.duration must be a valid positive number"
471
471
  elsif !sound['content_type'] || !sound['content_type'].match(/^audio\/.+$/)
472
472
  err "sound.content_type must be a valid audio mime type"
473
- elsif !sound['url'] && !sound['data'] && !sound['symbol']
474
- err "sound must have data, url or symbol attribute defined"
473
+ elsif !sound['url'] && !sound['data'] && !sound['symbol'] && !sound['path']
474
+ err "sound must have data, url, path or symbol attribute defined"
475
475
  elsif sound['data'] && !sound['data'].match(/^data:audio\/.+;base64,.+$/)
476
476
  err "sound.data must be a valid data URI if defined"
477
477
  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.6.14
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer