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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c09c24cbe7b55dc45dd32dff4b5364908ac04d1
4
- data.tar.gz: 74aaa262f40b837e50786f30984c75562c19fdf3
3
+ metadata.gz: ec5500c1eb171b62b497c06eedd2763c93d69b9f
4
+ data.tar.gz: d4e2068d21c64e4957c138e1f1efd44958e7b9a2
5
5
  SHA512:
6
- metadata.gz: a141f4016ecb1049f560c19bec09cd41492adb0b7f377bea207db0347ad63eff0851c16f89e1ff79982863dc62d5a86e9734a9a5aba6207ead713164e68afabb
7
- data.tar.gz: 50455c60ecab41687c829fa05023612bf5aa02fd8d46fed9e164aa9b01814cacda0919f2abbe866c9587f4d14fec123c898ad3b48d62e88c9a0c17a63d6a7faf
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
- %w(word/document.xml word/styles.xml).each do |xml_file|
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))
@@ -1,3 +1,3 @@
1
1
  module OpenxmlDocxTemplater
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler