sablon 0.2.0 → 0.2.1

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: ed6349a93ba2cb199faa068f080fac477c2bc8d3
4
- data.tar.gz: db1af586f261a43916313337fd504f6a68ddc610
3
+ metadata.gz: 660482be15bbf9eb3c4fe5bfab0f241e40ec8963
4
+ data.tar.gz: 23c4bba792f8d725d301efd8c8b83dd5d4344dee
5
5
  SHA512:
6
- metadata.gz: 63efa28431abe48b000a1cce4a8e22d065997fa8b010b9161c82fa69c13c972d6dbbbe45a8cb6ca100a884c44e867f2a483af0cfe682cfed0bfc2db66d4fbc50
7
- data.tar.gz: 69c728d1c6cb4301e8521a19aabb80d8dfe4f09f8f2fec86a0f8ae6a311e49611a7da9be88e9c27764aaecb96f31fb343eb003283718040f59c8f0feb889232c
6
+ metadata.gz: d814af12b612cefbf73e0c9a2dae79aa8415d7676aaf62330afba3a67fbc05fe3af820788ffb9dace829abaff49be2ee046f6e16c4cb1d821760e846d69d59a4
7
+ data.tar.gz: 53441ca3c630dfecab9f3455c72564cfe0188d20c47a80f9318a2abf2b038656a3545df9682160af2c5f331332b91fa48f1053d2e4a4a89a1c8bb49ddd9448ac
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sablon (0.2.0)
4
+ sablon (0.2.1)
5
5
  nokogiri (>= 1.6.0)
6
6
  rubyzip (>= 1.1.1)
7
7
 
@@ -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;)/, '&amp;')
108
108
  end
109
109
  end
110
110
  end
@@ -1,3 +1,3 @@
1
1
  module Sablon
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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&amp;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.0
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-02-08 00:00:00.000000000 Z
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.6.8
238
+ rubygems_version: 2.5.1
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: docx template processor