openxml_docx_templater 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openxml_docx_templater/template.rb +1 -1
- data/lib/openxml_docx_templater/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: ec5500c1eb171b62b497c06eedd2763c93d69b9f
|
4
|
+
data.tar.gz: d4e2068d21c64e4957c138e1f1efd44958e7b9a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c329680563c90e49ebd633b18d4bcb2a456bc331fc7d3cc5ac1548d84f8ef7c9f04f47340d5efe454be1fbd6bf1507d7db095d15ef6f39b0644a9dd1340154
|
7
|
+
data.tar.gz: c349e628d27377d7c6ea80d5b634cd238a8eea08e8e66b399eeb4f1b21e5ff1133358e624095be87b5401d6394e3173cedf72b0ce88ec8639fa478003366a5ce
|
@@ -13,7 +13,7 @@ module OpenxmlDocxTemplater
|
|
13
13
|
def process context
|
14
14
|
tmpfiles = []
|
15
15
|
Zip::File.open(@template) do |zipfile|
|
16
|
-
|
16
|
+
zipfile.entries.select { |entry| entry.name[/\.xml$/] }.each do |xml_file|
|
17
17
|
content = zipfile.read(xml_file).refact.force_encoding("utf-8")
|
18
18
|
|
19
19
|
docxeruby = DocxEruby.new(XmlReader.new(content))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openxml_docx_templater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Ageev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|