obf 0.6.6 → 0.6.7
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 +3 -0
- data/lib/obf/pdf.rb +1 -1
- 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: 5b251556cc8a9274711c1fa358cc952f2ce280a0
|
4
|
+
data.tar.gz: 6ba042655211c8f6b06ec0e8f00aafdbcf744900
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|