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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e801a172eedccefac1aa7769c889e58d7a498110
4
- data.tar.gz: 0f0b8c936dab5643f24cb79c61e3f611f9fa5a1b
3
+ metadata.gz: 5102769cf2a2b614cddad0a77555c56c288247d8
4
+ data.tar.gz: c68370cbe654c2e1445ce9bb7daa30ec602a94bf
5
5
  SHA512:
6
- metadata.gz: b9698ba61797de05701997566f4c759041d246ab49fbca7cbcf1ba177f3e4f159b51c44cecf5e3e98fbd2dd9665267a97236de8aac219fd1e9f3d477013caf57
7
- data.tar.gz: 1661769a5f0e5f5e797d2ab7db1372ddedd3fc67a1d55102ea0a6a352b4137858875e3a445ee4bbc9617588f3f8e49422da291828470e9b53b00edfb684a32b3
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 hashify(e)
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 hashify(x)
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(hashify(self), attributes: {key: @path})
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- �Qj��iOP.�u���2[�Lzն+���{�od�qT��b[L-U؋�:v����� *FB�+a��Q�1��Y��"icu��?��i������*���� wM����>�%�
2
- -td
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�