obf 0.6.14 → 0.6.15
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 +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: 097eca86a2f35febf310b4337cd104a982218b99
|
4
|
+
data.tar.gz: b8a58e436e40e4f789fc80f8869aabae20b6b476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|