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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/drb_reg_client.rb +8 -13
- 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: 2d421afa4597b505d1b66f3e6bb7e12e10c08659
|
4
|
+
data.tar.gz: cc4b201a87fbddf946d820aa80919b4263813c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 131fe1ca16381fd032a6b605c2c643ca2e6394765f38cc1f1e25047ae3fb8eeff7de6b37f4153a4dfa48453660b4b9f3ccd9336fd285ee84021a2bf9cd0a5bd6
|
7
|
+
data.tar.gz: ca5f03359496518512ec46b163dc438d2b7f0a0ab01cadf2b95d5afffe3cce4fc0fb4c74783c542cb05b70edf99177404d6c6060f68f080f8372bdf7b0601a20
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/drb_reg_client.rb
CHANGED
@@ -59,14 +59,14 @@ class DRbRegClient
|
|
59
59
|
end
|
60
60
|
|
61
61
|
|
62
|
-
def get_keys(
|
62
|
+
def get_keys(key)
|
63
|
+
|
63
64
|
recordset = @reg.get_keys(key)
|
65
|
+
return unless recordset
|
64
66
|
|
65
|
-
|
66
|
-
|
67
|
-
|
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
metadata.gz.sig
CHANGED
Binary file
|