drb_reg_client 0.1.0 → 0.1.1

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: 3179364ce3e178c8f7f4d7ef895f2100b17684a5
4
- data.tar.gz: 8a22304a8ef1df652d9f59beeb934b6f8ab7aae9
3
+ metadata.gz: 2d421afa4597b505d1b66f3e6bb7e12e10c08659
4
+ data.tar.gz: cc4b201a87fbddf946d820aa80919b4263813c23
5
5
  SHA512:
6
- metadata.gz: 38155a56d129934ac08199fe12d0d893c701eb538e505cb1bd246cbb3203bdd4cd29598d5c1fdd960ac5cc19e4e5d0b78372bdb19980a199dfd7f7732f0e6ca6
7
- data.tar.gz: 19c432c12fb9bfa8ead9c8d0f097231c8ec086a5906851475db3be12313f266ec240726d6f088ee565dd44f209206b62bed870839e19364ba8373ec1049ce66d
6
+ metadata.gz: 131fe1ca16381fd032a6b605c2c643ca2e6394765f38cc1f1e25047ae3fb8eeff7de6b37f4153a4dfa48453660b4b9f3ccd9336fd285ee84021a2bf9cd0a5bd6
7
+ data.tar.gz: ca5f03359496518512ec46b163dc438d2b7f0a0ab01cadf2b95d5afffe3cce4fc0fb4c74783c542cb05b70edf99177404d6c6060f68f080f8372bdf7b0601a20
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -59,14 +59,14 @@ class DRbRegClient
59
59
  end
60
60
 
61
61
 
62
- def get_keys(path)
62
+ def get_keys(key)
63
+
63
64
  recordset = @reg.get_keys(key)
65
+ return unless recordset
64
66
 
65
- if recordset then
66
- recordset.to_doc(root: 'recordset').root.xml
67
- else
68
- nil
69
- end
67
+ doc = Rexle.new(recordset)
68
+ doc.root.elements ? doc.root.elements.to_a : []
69
+
70
70
  end
71
71
 
72
72
  def set_key(key, value)
@@ -84,13 +84,8 @@ class DRbRegClient
84
84
 
85
85
  return [] if r.empty?
86
86
 
87
- doc = Rexle.new(r)
88
-
89
- if doc.root.elements then
90
- doc.root.elements.to_a
91
- else
92
- []
93
- end
87
+ doc = Rexle.new(r)
88
+ doc.root.elements ? doc.root.elements.to_a : []
94
89
  end
95
90
 
96
91
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drb_reg_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file