obf 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/external.rb +1 -0
- data/lib/obf/pdf.rb +1 -1
- data/lib/obf/validator.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1915660dacca273497702204f9950fbb1b233e88
|
4
|
+
data.tar.gz: 4cf715b2d432814c876e5e764f3cc413efdb33c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c6013923795b65000fa54d4f1ffe05a7e1091d3dff4d77c8aa6bc4fbaca5fa785a0f7c184cee3fc5b70931f289ae644945a5c0abe3ff8822dabfd6b8ce264af
|
7
|
+
data.tar.gz: b6a0b843f551e19abc5ff5f4df5dccb2e493687cb1382f6506120138e204a7b6a98c5a5d1d78f82872a760b24187a95613eaecc17a8ff8ab5ae9e006f1e897b8
|
data/lib/obf/external.rb
CHANGED
@@ -39,6 +39,7 @@ module OBF::External
|
|
39
39
|
'label' => original_button['label'],
|
40
40
|
'vocalization' => original_button['vocalization'],
|
41
41
|
'action' => original_button['action'],
|
42
|
+
'actions' => original_button['actions'],
|
42
43
|
'left' => original_button['left'],
|
43
44
|
'top' => original_button['top'],
|
44
45
|
'width' => original_button['width'],
|
data/lib/obf/pdf.rb
CHANGED
@@ -2,7 +2,7 @@ module OBF::PDF
|
|
2
2
|
@@footer_text ||= nil
|
3
3
|
@@footer_url ||= nil
|
4
4
|
|
5
|
-
RTL_SCRIPTS = %w(Arabic Hebrew Nko Kharoshthi Phoenician Syriac Thaana Tifinagh)
|
5
|
+
RTL_SCRIPTS = %w(Arabic Hebrew Nko Kharoshthi Phoenician Syriac Thaana Tifinagh Tamil)
|
6
6
|
|
7
7
|
def self.footer_text
|
8
8
|
@@footer_text
|
data/lib/obf/validator.rb
CHANGED
@@ -535,8 +535,11 @@ module OBF
|
|
535
535
|
if button['action'] && !button['action'].match(/^(:|\+)/)
|
536
536
|
err "button.action must start with either : or + if defined"
|
537
537
|
end
|
538
|
+
if button['action'] && !button['action'].is_a?(Array)
|
539
|
+
err "button.actions must be an array of strings"
|
540
|
+
end
|
538
541
|
|
539
|
-
attrs = ['id', 'label', 'vocalization', 'image_id', 'sound_id', 'hidden', 'background_color', 'border_color', 'action', 'load_board', 'top', 'left', 'width', 'height']
|
542
|
+
attrs = ['id', 'label', 'vocalization', 'image_id', 'sound_id', 'hidden', 'background_color', 'border_color', 'action', 'actions', 'load_board', 'top', 'left', 'width', 'height']
|
540
543
|
button.keys.each do |key|
|
541
544
|
if !attrs.include?(key) && !key.match(/^ext_/)
|
542
545
|
warn "button.#{key} attribute is not defined in the spec, should be prefixed with ext_yourapp_"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Whitmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|