obf 0.6.5 → 0.6.6

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/pdf.rb +1 -1
  3. data/lib/obf/sgrid.rb +0 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b79ac939f92a647ac73653cccb8609eebc16aace
4
- data.tar.gz: 0b710379e5f53177b90aebbbe93de11809ec0b21
3
+ metadata.gz: 23493c3ec6aa435c0dd83121ab93f6cd6b29f8a5
4
+ data.tar.gz: a93082ed4eed1439917c5d97bdac100e684c5aca
5
5
  SHA512:
6
- metadata.gz: 7d1090c6ca796b367d744564a6acf250ee0c57f4c380d4a3f10d365d23dd6cd854b33727fb721bc5cfd5c9e415346f0d089559847aeca6d86597be1790448214
7
- data.tar.gz: d6ec22573bb37ac5eee8d7320894764317eda2e9039094413a04cd3093a1a415da089c7fd0566be60cbd40c502787466bcd3928e91dfdb759c98d35529a69214
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]
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.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer