fn_document 0.9.16 → 0.9.17

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.16
1
+ 0.9.17
data/fn_document.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fn_document"
8
- s.version = "0.9.16"
8
+ s.version = "0.9.17"
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 = "2013-04-08"
12
+ s.date = "2013-04-16"
13
13
  s.description = "This handles complex document creation from XML for the FASI AMS system."
14
14
  s.email = "nathancolgate@gmail.com"
15
15
  s.extra_rdoc_files = [
data/lib/fn/pdf/writer.rb CHANGED
@@ -116,7 +116,7 @@ module FN
116
116
  # image = doc.resource(block.src).path_from(root)
117
117
  # tmp = Magick::Image::read(image).first
118
118
  # http://stackoverflow.com/questions/7264895/rmagick-can-not-read-remote-image
119
- image = open(block.src)
119
+ image = open(doc.resource(block.src))
120
120
  tmp = Magick::Image::from_blob(image.read).first
121
121
  dims = [tmp.columns.to_f, tmp.rows.to_f]
122
122
  x, y, width, height = calculate(block, dims)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fn_document
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.16
4
+ version: 0.9.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-08 00:00:00.000000000 Z
13
+ date: 2013-04-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: libxslt-ruby
@@ -215,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  segments:
217
217
  - 0
218
- hash: 1740738281591036719
218
+ hash: 1328308713880127
219
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  none: false
221
221
  requirements: