obf 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe29351cb9dbcd697ff6aaa20e6989e52b3e6c0d
4
- data.tar.gz: fa30e3203fb42f03822d7aa5dd476dd6a85c28e7
3
+ metadata.gz: 1915660dacca273497702204f9950fbb1b233e88
4
+ data.tar.gz: 4cf715b2d432814c876e5e764f3cc413efdb33c9
5
5
  SHA512:
6
- metadata.gz: f7d431ebd7f27dd87cad0f2a2dc9d4f623aff96493ad3be651ca56db150329fad791cdaf5f390ad994619841a4eed4fcab9712e81f29aa585d0dab7f74531647
7
- data.tar.gz: b929d215542ea4844186cca30aa2d4bac5dfc01d33d36d80698d33141255fa78b4bb50a36054c4ef3bbc83ccf8960e9dc145100cc31b7b50df126d49510d2ad2
6
+ metadata.gz: 3c6013923795b65000fa54d4f1ffe05a7e1091d3dff4d77c8aa6bc4fbaca5fa785a0f7c184cee3fc5b70931f289ae644945a5c0abe3ff8822dabfd6b8ce264af
7
+ data.tar.gz: b6a0b843f551e19abc5ff5f4df5dccb2e493687cb1382f6506120138e204a7b6a98c5a5d1d78f82872a760b24187a95613eaecc17a8ff8ab5ae9e006f1e897b8
@@ -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'],
@@ -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
@@ -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.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-02-17 00:00:00.000000000 Z
11
+ date: 2018-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json