victor 0.2.6 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0ab2068f7e282cb882055ad6be0cba8dbc49b220d6116cd5c6806cdfc8b1712
4
- data.tar.gz: 12fda11a74dca2ff5a1832bb99de61bce490db80a8af26ce7026daf7ccfa3485
3
+ metadata.gz: 657af0eb3c52eeb9014c4d4fadfaead6c1d7c62c6a3bf5e25e842946de9901d4
4
+ data.tar.gz: 3d5b52371eef51e4fbb29df6bc1b8e7fe4c74fcd16d1b2f263d84b9ef294d87a
5
5
  SHA512:
6
- metadata.gz: fd3680c0acb878cae500167ff68ab978aba427e729bf2ffbc1d556779c513c4243db8b0d9af09516cfb2f85c10ddfcb8a210a6fd115439d6bc65db77e1db569a
7
- data.tar.gz: 58a967624007c0171c6e176b46dcd2593ab0c781901de752802581a59253fd161e9ab3c4eb14692cc092b0f47fd327610e978c9b80cf6de0fd56430247d5da30
6
+ metadata.gz: 79c74bd26dc7b35b9d3f3ba851adf7010380d6ca690df961b3916d28aab22e5779673dca92c4822c80e9f420360d4b015ad8d9d937856c19666f45d1775bc4ab
7
+ data.tar.gz: 3a48dfff5502de95253c2593e9c7b92fc500e608b32480ffd92891ab6ba965a921c29fe460e7788fe271ad334c5205de77fe0fead9c457d8c580f353ca856356
@@ -19,7 +19,7 @@ module Victor
19
19
  elsif value.is_a? Array
20
20
  "#{key}=\"#{value.join ' '}\""
21
21
  else
22
- "#{key}=\"#{value}\""
22
+ "#{key}=#{value.to_s.encode(xml: :attr)}"
23
23
  end
24
24
  end
25
25
 
@@ -33,7 +33,7 @@ module Victor
33
33
 
34
34
  if block_given? || value
35
35
  content.push "<#{name} #{attributes}".strip + ">" unless empty_tag
36
- value ? content.push(value) : yield
36
+ value ? content.push(value.to_s.encode(xml: :text)) : yield
37
37
  content.push "</#{name}>" unless empty_tag
38
38
  else
39
39
  content.push "<#{name} #{attributes}/>"
@@ -1,3 +1,3 @@
1
1
  module Victor
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: victor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-02 00:00:00.000000000 Z
11
+ date: 2019-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Build SVG images with ease
14
14
  email: db@dannyben.com