doctor_ninja 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a33725d75467cbeaefdf4f19fbe2c6276e40d0f
4
- data.tar.gz: 498f09c3b37a0b3d487ef0aee06cacc82ec522cd
3
+ metadata.gz: 69493954cdb5c01dd3e04330677366a94acc01c3
4
+ data.tar.gz: ce77c13df76d025adca85eaef82380771432755e
5
5
  SHA512:
6
- metadata.gz: 91a5ec6ebc7d043f0d6f2d6129a24e6b9ba7d1b6197c483e32615ce5d41f8d52552a5cedb1e2cdae1443837510e517192eae16a4711045bf436ea9d97dc6e178
7
- data.tar.gz: 203f948a66bfdfc1c2b70f03fd83b61a63cd5a99f1c08eacac3263d0772b688ab83e9b4a6d1dd43e6d06d45771365840081b4035247583f36ba4c5494428705a
6
+ metadata.gz: f66d98d62289f85b49a949412cee3561e1405475ef8c72b7a8541bcead009cc433eba04145e29ff3aeaabe2f02b6e224444a86e1362b1fcaeb57d938913e05b8
7
+ data.tar.gz: 27753e82fc6aab455c6001f96b305ee0c9816863e30c096a6ac3734a5f1d9b1d2844fe400aa6f74e8d6b753a4b8849944ddf743707a272375d8aee414dc6fb3c
@@ -8,7 +8,7 @@ class DoctorNinja::Parsers::BlipFill < DoctorNinja::Parsers::Base
8
8
  def parse
9
9
  @image = Magick::Image.from_blob(@document.relationships[rel_id]).first
10
10
  transform
11
- @context.background_image = @image
11
+ @context[:canvas].background_image = @image
12
12
  end
13
13
 
14
14
  private
@@ -13,7 +13,9 @@ class DoctorNinja::Parsers::Drawing < DoctorNinja::Parsers::Base
13
13
  height = extent[:y]/DoctorNinja::EMU_PER_PIXEL
14
14
 
15
15
  rvg = RVG.new(width,height).viewbox(0,0,width,height) do |canvas|
16
- parse_children(canvas)
16
+ context = @context.dup
17
+ context[:canvas] = canvas
18
+ parse_children(context)
17
19
  end
18
20
 
19
21
  format = "png"
@@ -1,3 +1,3 @@
1
1
  module DoctorNinja
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doctor_ninja
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernardo Amorim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-30 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler