obf 0.6.17 → 0.6.18

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/pdf.rb +6 -4
  3. data/lib/obf/utils.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 143faf79ca1edd262dd8601959daf80e5d17e813
4
- data.tar.gz: c7e1a61e81ba0f7424443651e1a44c0b0c2acd5b
3
+ metadata.gz: e7c3abd85b51992f1f4799c614b9bd9bbf7ebc4a
4
+ data.tar.gz: bb987c80108a276f15cbd59df075a695f506bd2f
5
5
  SHA512:
6
- metadata.gz: 1cacd176d740713620bf40d6774aec2324aa7add9effb5233058afe2708a218a26a3c5552e1e4480c75a451267c45628119ffb5b9dd80be5c606d0c223dd6c86
7
- data.tar.gz: 85724db3be49b12fb3dfd1895ea2677e406b668d875d70a7542329ca7a72c9372b5604f7683d341e2aba3609a286132a7d3ecea70e3d44ee210284bd4f613ac4
6
+ metadata.gz: 499b6a223fb47fdd8d69d0507aebe7948fbebaf008e259ae10fb3d2a4b252873ba51af9a32fa3ac847491ce78033be987a09ad3c573f1ce0e95b0cdb532ad1b9
7
+ data.tar.gz: 8e68996c743a16a0cd64f3a0323f514bc090069ab9bd65a7987136ee504a880fbb446f375cd10245536b148b8ca3356756ed8caef030c97c29050bdff83c8c0a
@@ -185,10 +185,12 @@ module OBF::PDF
185
185
  all_boards = visited_boards + unvisited_boards
186
186
  if all_boards.none?{|b| b['id'] == button['load_board']['id'] || b['path'] == button['load_board']['path'] }
187
187
  path = button['load_board']['path'] || manifest[button['load_board']['id']]
188
- b = OBF::Utils.parse_obf(zipper.read(path))
189
- b['path'] = path
190
- button['load_board']['id'] = b['id']
191
- unvisited_boards << b
188
+ if path
189
+ b = OBF::Utils.parse_obf(zipper.read(path))
190
+ b['path'] = path
191
+ button['load_board']['id'] = b['id']
192
+ unvisited_boards << b
193
+ end
192
194
  end
193
195
  end
194
196
  end
@@ -265,7 +265,7 @@ module OBF::Utils
265
265
  end
266
266
 
267
267
  def read(path)
268
- entry = @zipfile.glob(path).first
268
+ entry = @zipfile.glob(path).first rescue nil
269
269
  entry ? entry.get_input_stream.read : nil
270
270
  end
271
271
 
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.17
4
+ version: 0.6.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer