kvx 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/kvx.rb +8 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc814fe7c23ceb5e0956ea8dd6c3ecdf63bd20aa
|
4
|
+
data.tar.gz: 4710c9a9528b7344548c10c969b9750f7b1f7d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b35e115424b75dd5ee0fa289743b9c47e9d271cacb8425a1b49ed60f72e292b9cc8087e2c4690e3a73b3a82f9d4bc2fca364986c9a68192a0e283c9ca6ceaf75
|
7
|
+
data.tar.gz: 5006379ee8b4597b51e48d3b87918b94fe27032bf441233c7e2780ceca1ef005c1bb9fd5ee812d61157da70251d6b16afd6601e16ece035cc73146fe059879c8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/kvx.rb
CHANGED
@@ -72,9 +72,14 @@ class Kvx
|
|
72
72
|
|
73
73
|
def to_xml(options={pretty: true})
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
if @summary.empty? then
|
76
|
+
a = [self.class.to_s.downcase, @attributes, '', *make_xml(@body)]
|
77
|
+
else
|
78
|
+
summary = [:summary, {}, *make_xml(@summary)]
|
79
|
+
body = [:body, {}, *make_xml(@body)]
|
80
|
+
a = [self.class.to_s.downcase, @attributes, '', summary, body]
|
81
|
+
end
|
82
|
+
|
78
83
|
Rexle.new(a).xml(options)
|
79
84
|
|
80
85
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|