docx_tools 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/docx_tools/mail_merge.rb +3 -1
- data/lib/docx_tools/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: 2d7a82107438ee9f678816478167239e2b785286
|
4
|
+
data.tar.gz: 508ac4c332a267b884c221434222854f2de0d40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3f4c97e9775ff0d00badaaf091da8f932863a102a0faa42808d3cac7572898dce182c6ec52abe11297412732d9cec39e2095cbaf53b8a56f78f2c4669f7431
|
7
|
+
data.tar.gz: d439c0eced7604d29e6dd42ec593f67d835a1bf0f7a55c30af030a8a9604f22e00a4c5f1cce63f9bf36279b1a4002f0f14791ec76b9f5e3d820cc290fb6c587c
|
data/Gemfile.lock
CHANGED
@@ -84,9 +84,11 @@ module DocxTools
|
|
84
84
|
match_data = REGEXP.match(child.attribute('instr'))
|
85
85
|
next if (child.node_name != 'fldSimple') || !match_data
|
86
86
|
|
87
|
+
r_elem = Nokogiri::XML::Node.new('r', part)
|
87
88
|
new_tag = Nokogiri::XML::Node.new('MergeField', part)
|
89
|
+
new_tag.parent = r_elem
|
88
90
|
new_tag.content = match_data[1]
|
89
|
-
child.replace(
|
91
|
+
child.replace(r_elem)
|
90
92
|
end
|
91
93
|
end
|
92
94
|
|
data/lib/docx_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docx_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Deisz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|