obf 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/pdf.rb +1 -1
- data/lib/obf/sgrid.rb +0 -3
- 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: 23493c3ec6aa435c0dd83121ab93f6cd6b29f8a5
|
4
|
+
data.tar.gz: a93082ed4eed1439917c5d97bdac100e684c5aca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b52b08f5561836e1ad6eeaeb21726a4fac35ee4f9322e08cc152af296edbca530ff3bf290046adc5de556be2d49d65407ca7e415c6c094cc86f4ddff505ccaa
|
7
|
+
data.tar.gz: 884e6303131afb9e55923a03dcb63bfd9358a5acdd30e3c2f71321f51cb597bc08cdffb39d4a77a2a5aaf1523e82a11ae82c9e81408818f01ec281f90a3af985
|
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
|
114
|
+
next unless 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
|
data/lib/obf/sgrid.rb
CHANGED
@@ -13,8 +13,6 @@ module OBF::Sgrid
|
|
13
13
|
def self.to_external(path)
|
14
14
|
xml = Nokogiri::XML(File.open(path))
|
15
15
|
grid = xml.css('sensorygrid grid')[0]
|
16
|
-
puts grid.to_s
|
17
|
-
puts grid.css('rows')[0].to_s
|
18
16
|
rows = html_at(grid, 'rows').to_i
|
19
17
|
columns = html_at(grid, 'cols').to_i
|
20
18
|
board = {
|
@@ -119,7 +117,6 @@ module OBF::Sgrid
|
|
119
117
|
'id' => image_id
|
120
118
|
}
|
121
119
|
image_id += 1
|
122
|
-
puts picture.to_json
|
123
120
|
match = picture.match(/^(\[\w+\])?(.+)$/)
|
124
121
|
symbol_set = match && match[1][1..-2]
|
125
122
|
filename = match && match[2]
|