lm_docstache 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/lm_docstache/document.rb +1 -1
- data/lib/lm_docstache/version.rb +1 -1
- data/lm_docstache.gemspec +2 -2
- data/spec/example_input/ExampleTemplate2.docx +0 -0
- data/spec/integration_spec.rb +11 -3
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab76fe58e63d2b57612f1b63cde29861a5552f08549dfdef6487127d63ee30c
|
4
|
+
data.tar.gz: 397def49df4c8a2fcb5688c5b52ca2d1b2940b9efebf37747ff745b33b4561d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ab02fac2c3e0033522d89d739be8fb16c2431952dea35485c9f1d6aca2264c6d8bb06ab2fb0e9a491f03077e54c870802c77ff51888a03a53208dc86d2bcbc
|
7
|
+
data.tar.gz: 0b9ac7bfac5f4a106d12da49a75291f1a5740a154e64641db1d93caa9187089c028de6e12648b074079867750b65fbced6de6cff48b7bad64d2acbea1cfaccb9
|
data/CHANGELOG.md
CHANGED
data/lib/lm_docstache/version.rb
CHANGED
data/lm_docstache.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "lm_docstache/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "lm_docstache"
|
7
7
|
s.version = LMDocstache::VERSION
|
8
|
-
s.authors = ["Roey Chasman", "Jonathan Stevens", "Will Cosgrove"]
|
9
|
-
s.email = ["roey@lawmatics.com", "jonathan@lawmatics.com", "will@willcosgrove.com"]
|
8
|
+
s.authors = ["Roey Chasman", "Frederico Assunção", "Jonathan Stevens", "Will Cosgrove"]
|
9
|
+
s.email = ["roey@lawmatics.com", "fred@lawmatics.com", "jonathan@lawmatics.com", "will@willcosgrove.com"]
|
10
10
|
s.homepage = "https://www.lawmatics.com"
|
11
11
|
s.summary = %q{Merges Hash of Data into Word docx template files using mustache syntax}
|
12
12
|
s.description = %q{Integrates data into MS Word docx template files. Processing supports loops and replacement of strings of data both outside and within loops.}
|
Binary file
|
data/spec/integration_spec.rb
CHANGED
@@ -35,7 +35,7 @@ end
|
|
35
35
|
describe 'integration test', integration: true do
|
36
36
|
let(:data) { LMDocstache::TestData::DATA }
|
37
37
|
let(:base_path) { SPEC_BASE_PATH.join('example_input') }
|
38
|
-
let(:input_file) { "#{base_path}/
|
38
|
+
let(:input_file) { "#{base_path}/ExampleTemplate2.docx" }
|
39
39
|
let(:output_dir) { "#{base_path}/tmp" }
|
40
40
|
let(:output_file) { "#{output_dir}/IntegrationTestOutput.docx" }
|
41
41
|
let(:document) { LMDocstache::Document.new(input_file) }
|
@@ -64,11 +64,19 @@ describe 'integration test', integration: true do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'has the expected amount of usable tags' do
|
67
|
-
expect(document.usable_tags.count).to be(
|
67
|
+
expect(document.usable_tags.count).to be(30)
|
68
|
+
end
|
69
|
+
|
70
|
+
it 'has the expected amount of signature tags' do
|
71
|
+
expect(document.signature_tags.count).to be(6)
|
72
|
+
end
|
73
|
+
|
74
|
+
it 'has the expected amount of usable signature tags' do
|
75
|
+
expect(document.usable_signature_tags.count).to be(6)
|
68
76
|
end
|
69
77
|
|
70
78
|
it 'has the expected amount of unique tag names' do
|
71
|
-
expect(document.usable_tag_names.count).to be(
|
79
|
+
expect(document.usable_tag_names.count).to be(18)
|
72
80
|
end
|
73
81
|
|
74
82
|
it 'renders file using data' do
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lm_docstache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roey Chasman
|
8
|
+
- Frederico Assunção
|
8
9
|
- Jonathan Stevens
|
9
10
|
- Will Cosgrove
|
10
|
-
autorequire:
|
11
|
+
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2020-09-
|
14
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: nokogiri
|
@@ -92,6 +93,7 @@ description: Integrates data into MS Word docx template files. Processing suppor
|
|
92
93
|
loops and replacement of strings of data both outside and within loops.
|
93
94
|
email:
|
94
95
|
- roey@lawmatics.com
|
96
|
+
- fred@lawmatics.com
|
95
97
|
- jonathan@lawmatics.com
|
96
98
|
- will@willcosgrove.com
|
97
99
|
executables: []
|
@@ -116,6 +118,7 @@ files:
|
|
116
118
|
- spec/data_scope_spec.rb
|
117
119
|
- spec/empty_data_scope_spec.rb
|
118
120
|
- spec/example_input/ExampleTemplate.docx
|
121
|
+
- spec/example_input/ExampleTemplate2.docx
|
119
122
|
- spec/example_input/blank.docx
|
120
123
|
- spec/example_input/word/document.xml
|
121
124
|
- spec/integration_spec.rb
|
@@ -125,7 +128,7 @@ homepage: https://www.lawmatics.com
|
|
125
128
|
licenses:
|
126
129
|
- MIT
|
127
130
|
metadata: {}
|
128
|
-
post_install_message:
|
131
|
+
post_install_message:
|
129
132
|
rdoc_options: []
|
130
133
|
require_paths:
|
131
134
|
- lib
|
@@ -141,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
144
|
version: '0'
|
142
145
|
requirements: []
|
143
146
|
rubygems_version: 3.0.3
|
144
|
-
signing_key:
|
147
|
+
signing_key:
|
145
148
|
specification_version: 4
|
146
149
|
summary: Merges Hash of Data into Word docx template files using mustache syntax
|
147
150
|
test_files:
|
@@ -149,6 +152,7 @@ test_files:
|
|
149
152
|
- spec/data_scope_spec.rb
|
150
153
|
- spec/empty_data_scope_spec.rb
|
151
154
|
- spec/example_input/ExampleTemplate.docx
|
155
|
+
- spec/example_input/ExampleTemplate2.docx
|
152
156
|
- spec/example_input/blank.docx
|
153
157
|
- spec/example_input/word/document.xml
|
154
158
|
- spec/integration_spec.rb
|