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 +4 -4
- data/lib/doctor_ninja/parsers/blip_fill.rb +1 -1
- data/lib/doctor_ninja/parsers/drawing.rb +3 -1
- data/lib/doctor_ninja/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69493954cdb5c01dd3e04330677366a94acc01c3
|
4
|
+
data.tar.gz: ce77c13df76d025adca85eaef82380771432755e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
16
|
+
context = @context.dup
|
17
|
+
context[:canvas] = canvas
|
18
|
+
parse_children(context)
|
17
19
|
end
|
18
20
|
|
19
21
|
format = "png"
|
data/lib/doctor_ninja/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|