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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05992a8037cbdeb0e3f4b2837e5b96969c25f924
4
- data.tar.gz: 00c9070e1d5030b941675757009e6f0db1fbddf3
3
+ metadata.gz: 2d7a82107438ee9f678816478167239e2b785286
4
+ data.tar.gz: 508ac4c332a267b884c221434222854f2de0d40a
5
5
  SHA512:
6
- metadata.gz: 5eedaa29303ba795de7bef50b77c7fc2a9d976551fbca501eb22f8b116249da521ceea0ebfbb2c7dbe01d9e86cc04901fbd56279c6c7ca83e3da3bd368a75a00
7
- data.tar.gz: e57c895e43c494e86efe64c1ef1a224bbb138076843cc0405916c9c17eb3305edc6dae29a5a361e25e23b552121f074b2479fd17aa3c0ef0b6ecdb2a07a5af54
6
+ metadata.gz: 1e3f4c97e9775ff0d00badaaf091da8f932863a102a0faa42808d3cac7572898dce182c6ec52abe11297412732d9cec39e2095cbaf53b8a56f78f2c4669f7431
7
+ data.tar.gz: d439c0eced7604d29e6dd42ec593f67d835a1bf0f7a55c30af030a8a9604f22e00a4c5f1cce63f9bf36279b1a4002f0f14791ec76b9f5e3d820cc290fb6c587c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docx_tools (0.0.3)
4
+ docx_tools (0.0.4)
5
5
  nokogiri (~> 1.6, >= 1.6.6)
6
6
  rubyzip (~> 1.1, >= 1.1.7)
7
7
 
@@ -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(new_tag)
91
+ child.replace(r_elem)
90
92
  end
91
93
  end
92
94
 
@@ -1,4 +1,4 @@
1
1
  module DocxTools
2
2
 
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
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.3
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-05 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri