fn_document 0.9.4 → 0.9.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fn_document}
8
- s.version = "0.9.4"
8
+ s.version = "0.9.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Colgate Clark", "Kyle Maxwell"]
12
- s.date = %q{2011-10-19}
12
+ s.date = %q{2011-10-20}
13
13
  s.description = %q{This handles complex document creation from XML for the FASI AMS system.}
14
14
  s.email = %q{nathancolgate@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -27,9 +27,18 @@ module FN
27
27
  end
28
28
 
29
29
  def write_xml(xml, file)
30
- xml.root.extend(FN::Node::Root)
31
- xml.root.visit(FN::PDF::Struct.new)
32
- return file
30
+ begin
31
+ xml.root.extend(FN::Node::Root)
32
+ xml.root.visit(FN::PDF::Struct.new)
33
+ return file
34
+ rescue Exception => e
35
+ $stderr.puts "="*88
36
+ $stderr.puts "Tried to write_xml but failed. Logging XML and file:"
37
+ $stderr.puts "xml: #{xml}"
38
+ $stderr.puts "file: #{file}"
39
+ $stderr.puts "="*88
40
+ raise e
41
+ end
33
42
  end
34
43
 
35
44
  def titlecase(str)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fn_document
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 4
10
- version: 0.9.4
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Colgate Clark
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-19 00:00:00 -07:00
19
+ date: 2011-10-20 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency