sablon 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sablon/document_object_model/relationships.rb +1 -1
- data/lib/sablon/version.rb +1 -1
- data/test/fixtures/html_sample.docx +0 -0
- data/test/fixtures/insertion_template.docx +0 -0
- data/test/html_test.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 660482be15bbf9eb3c4fe5bfab0f241e40ec8963
|
|
4
|
+
data.tar.gz: 23c4bba792f8d725d301efd8c8b83dd5d4344dee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d814af12b612cefbf73e0c9a2dae79aa8415d7676aaf62330afba3a67fbc05fe3af820788ffb9dace829abaff49be2ee046f6e16c4cb1d821760e846d69d59a4
|
|
7
|
+
data.tar.gz: 53441ca3c630dfecab9f3455c72564cfe0188d20c47a80f9318a2abf2b038656a3545df9682160af2c5f331332b91fa48f1053d2e4a4a89a1c8bb49ddd9448ac
|
data/Gemfile.lock
CHANGED
|
@@ -104,7 +104,7 @@ module Sablon
|
|
|
104
104
|
# Builds the relationship WordML tag and returns it
|
|
105
105
|
def relationship_tag(rel_attr)
|
|
106
106
|
attr_str = rel_attr.map { |k, v| %(#{k}="#{v}") }.join(' ')
|
|
107
|
-
"<Relationship #{attr_str}/>"
|
|
107
|
+
"<Relationship #{attr_str}/>".gsub(/&(?!amp;)/, '&')
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
110
|
end
|
data/lib/sablon/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
data/test/html_test.rb
CHANGED
|
@@ -20,7 +20,8 @@ class SablonHTMLTest < Sablon::TestCase
|
|
|
20
20
|
'html:content' => content,
|
|
21
21
|
inline_content: {
|
|
22
22
|
'html:should' => '<b><span style="color: #123456">should</span></b>',
|
|
23
|
-
'html:github' => '<a href="http://www.github.com" style="color: #0000FF">GitHub</a>'
|
|
23
|
+
'html:github' => '<a href="http://www.github.com" style="color: #0000FF">GitHub</a>',
|
|
24
|
+
'html:google' => '<a href="https://www.google.com.eg/?gfe_rd=cr&dcr=0&ei=mSKcWqXgIIKZX9zomrAL" style="color: #0000FF">Google</a>'
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
template.render_to_file output_path, context
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sablon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yves Senn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
235
|
version: '0'
|
|
236
236
|
requirements: []
|
|
237
237
|
rubyforge_project:
|
|
238
|
-
rubygems_version: 2.
|
|
238
|
+
rubygems_version: 2.5.1
|
|
239
239
|
signing_key:
|
|
240
240
|
specification_version: 4
|
|
241
241
|
summary: docx template processor
|