rinda2 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rinda2/ring.rb +2 -2
- data/lib/rinda2/service.rb +3 -3
- data/lib/rinda2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f1c02c602d44455d05070dbfbe20e4072c6a1fe
|
4
|
+
data.tar.gz: 6c48d6f6f71d4a33ab100986e1ac795aa66fc431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9d138aa385dd963fd106f74e3ade180aeb0435c672aecee84386104219f409abfeffedb94700bbeca8d5709493e9b157fecda0783f083becc78b4a62b08e5d7
|
7
|
+
data.tar.gz: 7419586d09c2b5760dc8a81a356d091ea47d9c410907e7245cf0d46a1773bba4d5f10c21e96078c9ee947138254de84547ca3548e23eb7b8acc3548eb67d681c
|
data/lib/rinda2/ring.rb
CHANGED
data/lib/rinda2/service.rb
CHANGED
@@ -8,15 +8,15 @@ module Rinda
|
|
8
8
|
attr_accessor :description
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.start (*args)
|
11
|
+
def self.start (addresses, *args)
|
12
12
|
DRb.start_service
|
13
13
|
Rinda::RingProvider.new(self.name.to_sym, self.new(*args), description, Rinda::SimpleRenewer.new(5)).provide
|
14
14
|
DRb.thread.join
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.open (name)
|
17
|
+
def self.open (addresses, name)
|
18
18
|
DRb.start_service
|
19
|
-
Rinda::RingFinger.
|
19
|
+
Rinda::RingFinger.new(addresses).each.first.read([:name, name, nil, nil])[2]
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
data/lib/rinda2/version.rb
CHANGED