kvx 0.5.2 → 0.5.3
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
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +0 -0
- data/lib/kvx.rb +15 -2
- metadata +2 -2
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65e9a48bcfcc5a08d464590fcf33594ba71e37fd
|
|
4
|
+
data.tar.gz: 2a691c71a48ba3c1c9885f92f462b916424982b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aed7980cf2f6e09945f25c0105fac06f4c8d5dd6387769efbde0dc2c55f0ccea4a63ba6e598a031d3fb8592e919c31ee2deea58f9393263ed06e07df16e48b40
|
|
7
|
+
data.tar.gz: 196e8405b49eb286b95fc72206920cdc5dee82a8e3ea80301fc7e5b73b8e0683798a9d81c24e783f3b432f8a122d4fbfc493d68c836f86191f75b5baf7872a16
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e粲��\�4��A��S�C�i���WW-{���akT2R����u� ���y7\���:��
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/kvx.rb
CHANGED
|
@@ -73,11 +73,24 @@ class Kvx
|
|
|
73
73
|
def to_xml(options={pretty: true})
|
|
74
74
|
|
|
75
75
|
if @summary.empty? then
|
|
76
|
+
|
|
76
77
|
a = [self.class.to_s.downcase, @attributes, '', *make_xml(@body)]
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
|
|
79
|
+
else
|
|
80
|
+
|
|
81
|
+
summary = make_xml(@summary)
|
|
82
|
+
|
|
83
|
+
tags_found = summary.assoc(:tags)
|
|
84
|
+
|
|
85
|
+
if tags_found then
|
|
86
|
+
tags = tags_found.pop
|
|
87
|
+
tags_found.push *tags.split.map {|x| [:tag,{},x]}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
summary = [:summary, {}, *summary]
|
|
79
91
|
body = [:body, {}, *make_xml(@body)]
|
|
80
92
|
a = [self.class.to_s.downcase, @attributes, '', summary, body]
|
|
93
|
+
|
|
81
94
|
end
|
|
82
95
|
|
|
83
96
|
Rexle.new(a).xml(options)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kvx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
Vo86eJaJUXJbywrm97pYB2utyzWPyxJihIh0eFuNbCk+XOWfv6vUEyuXMiCsiyrF
|
|
32
32
|
azRHJ6uLeQu4hw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-05-
|
|
34
|
+
date: 2015-05-05 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: line-tree
|
metadata.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�7�J�=m�[���d�FmE��B��w y3W����1�I��`�j��K��� �6�������J�����gz��� \M��� @�1HTCO�\P���ʲ��k��K�Ȁm�*��m`�6}4���Cu.i�gF�mƙ��q�h߾T�3���E���2fT,?[��^h�(�x��T����(�`~f|>*VC�$��o{�]4���1�M�%B�ome�Q�w�q��)X���J�����G4XF��̰
|