obf 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/external.rb +3 -0
  3. data/lib/obf/pdf.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23493c3ec6aa435c0dd83121ab93f6cd6b29f8a5
4
- data.tar.gz: a93082ed4eed1439917c5d97bdac100e684c5aca
3
+ metadata.gz: 5b251556cc8a9274711c1fa358cc952f2ce280a0
4
+ data.tar.gz: 6ba042655211c8f6b06ec0e8f00aafdbcf744900
5
5
  SHA512:
6
- metadata.gz: 9b52b08f5561836e1ad6eeaeb21726a4fac35ee4f9322e08cc152af296edbca530ff3bf290046adc5de556be2d49d65407ca7e415c6c094cc86f4ddff505ccaa
7
- data.tar.gz: 884e6303131afb9e55923a03dcb63bfd9358a5acdd30e3c2f71321f51cb597bc08cdffb39d4a77a2a5aaf1523e82a11ae82c9e81408818f01ec281f90a3af985
6
+ metadata.gz: 0776169545a98e29e6f0f8c470263b3142fa2fbd0aaa248fe966e128514253221222e31bf350e65634f563b6eb9fa1dc040525353646121b6030c872d5555a83
7
+ data.tar.gz: 87059a2a78e79ad6015ed7ebdf44fbd8cbf7a50804d0752655937b41f441d8f138b90d45b4a7b353ce56cc3c64cbe692a42573c7a0a20f3487238d9e42019521
data/lib/obf/external.rb CHANGED
@@ -55,6 +55,9 @@ module OBF::External
55
55
  button['load_board']['path'] = "board_#{original_button['load_board']['id']}.obf"
56
56
  end
57
57
  end
58
+ if original_button['hidden']
59
+ button['hidden'] = original_button['hidden']
60
+ end
58
61
  if original_button['url']
59
62
  button['url'] = original_button['url']
60
63
  end
data/lib/obf/pdf.rb CHANGED
@@ -111,7 +111,7 @@ module OBF::PDF
111
111
  obj['grid']['order'].each_with_index do |buttons, row|
112
112
  buttons.each_with_index do |button_id, col|
113
113
  button = obj['buttons'].detect{|b| b['id'] == button_id }
114
- next unless button && button['hidden'] != true
114
+ next if !button || button['hidden'] == true
115
115
  x = (padding * col) + (col * button_width)
116
116
  y = text_height + padding - (padding * row) + grid_height - (row * button_height)
117
117
  pdf.bounding_box([x, y], :width => button_width, :height => button_height) do
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.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer