xml-registry 0.4.2 → 0.4.3
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/lib/xml-registry.rb +4 -5
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5102769cf2a2b614cddad0a77555c56c288247d8
|
4
|
+
data.tar.gz: c68370cbe654c2e1445ce9bb7daa30ec602a94bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec38bf36b5cdf68f6af0d5f9cc9c311188506cf84ed719a311769737bef1f8b2988b752893c002630753066a98a2ecfd16bbd8ed263327312b84e276e919c77
|
7
|
+
data.tar.gz: d8bc39768266e4c5cded6ac76fe8a761b1baea7cece5d839374cc3217ce209645453ae40337f1f015eec1a4647b9b9cceabf49e920c5f45efc27830fb8e38def
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/xml-registry.rb
CHANGED
@@ -62,11 +62,11 @@ class XMLRegistry
|
|
62
62
|
key.instance_eval {
|
63
63
|
@path = path
|
64
64
|
|
65
|
-
def
|
65
|
+
def to_h(e)
|
66
66
|
|
67
67
|
v = if e.has_elements? then
|
68
68
|
e.elements.inject({}) do |r, x|
|
69
|
-
r.merge
|
69
|
+
r.merge to_h(x)
|
70
70
|
end
|
71
71
|
else
|
72
72
|
e.text
|
@@ -76,7 +76,7 @@ class XMLRegistry
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def to_config()
|
79
|
-
SimpleConfig.new(
|
79
|
+
SimpleConfig.new(to_h(self), attributes: {key: @path})
|
80
80
|
end
|
81
81
|
}
|
82
82
|
|
@@ -237,5 +237,4 @@ class XMLRegistry
|
|
237
237
|
out
|
238
238
|
end
|
239
239
|
|
240
|
-
end
|
241
|
-
|
240
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�_#c�A\�\�D��|��VT�tY�����4���e��^���6��^��W�f�S�5����6�>�J���?�O���mV��3�3Ȱ�ZG�-�zz�j��Lǚ8���~�߽�� (V�hvi��
|
1
|
+
xs<\�c��g�.���C��d6�x�G�'<J�in.6���=�U��E;o-
|
2
|
+
�1eу�S9�py4av���K��K�ۺ�e~�+�6k=��Q?!w�D�u�|U4Ԇ�����9)!+#T�
|