simplepubsub 0.5.0 → 0.5.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/simplepubsub.rb +9 -7
- metadata +2 -2
- 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: 5f26a296f3e51d5569ad1b5d366cb84397e0821b
|
4
|
+
data.tar.gz: be15107a6a624d28aadf926d0398a8cc626b702e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aaf6b7b39f5c62b1f6f63c35263ab45409040cfc19af10a0185fd8f1102bdfc4df393689c60ec35646f2831b623cd808a236ba519706e0a6db08e5ce8df98f2
|
7
|
+
data.tar.gz: 7b8228008b5993554f14159fad158c2ed1fd600acb96631b283003c185fce2b3093fc4a0c86c2dd75f928a1290635033844717b50e89d1719c4e7b9a823d3fe1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/simplepubsub.rb
CHANGED
@@ -7,7 +7,8 @@ require 'drb'
|
|
7
7
|
require 'dws-registry'
|
8
8
|
require 'socket'
|
9
9
|
|
10
|
-
|
10
|
+
|
11
|
+
USER_AGENT = 'SimplePbSub client 0.5'
|
11
12
|
|
12
13
|
module SimplePubSub
|
13
14
|
|
@@ -104,6 +105,7 @@ module SimplePubSub
|
|
104
105
|
.inject({}) do |r,x|
|
105
106
|
r.merge({x.name.to_s => x.text('address')})
|
106
107
|
end
|
108
|
+
|
107
109
|
'done'
|
108
110
|
end
|
109
111
|
|
@@ -154,14 +156,15 @@ module SimplePubSub
|
|
154
156
|
if topic_subscribers then
|
155
157
|
|
156
158
|
topic_subscribers.each do |uri|
|
157
|
-
|
159
|
+
|
158
160
|
next if @subscribers['#'].include? uri
|
159
161
|
|
160
162
|
Thread.new {
|
161
|
-
|
162
|
-
|
163
|
-
|
163
|
+
begin
|
164
|
+
|
165
|
+
echo = DRbObject.new nil, uri
|
164
166
|
echo.message topic, msg
|
167
|
+
|
165
168
|
rescue DRb::DRbConnError => e
|
166
169
|
|
167
170
|
@subscribers[topic].delete uri
|
@@ -175,7 +178,6 @@ module SimplePubSub
|
|
175
178
|
end
|
176
179
|
|
177
180
|
@reg.delete_key key
|
178
|
-
|
179
181
|
end
|
180
182
|
}
|
181
183
|
|
@@ -184,9 +186,9 @@ module SimplePubSub
|
|
184
186
|
|
185
187
|
@subscribers['#'].each do |uri|
|
186
188
|
Thread.new {
|
187
|
-
echo = DRbObject.new nil, uri
|
188
189
|
|
189
190
|
begin
|
191
|
+
echo = DRbObject.new nil, uri
|
190
192
|
echo.message topic, msg
|
191
193
|
rescue DRb::DRbConnError => e
|
192
194
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplepubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
i0PBE6fLwlIMk8jNNUcX3J1csSMgLNTwE8CwrlSZE8sueHj0pQzICM7lF0gGREO6
|
32
32
|
hQHD0LljU3MusQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2013-07-
|
34
|
+
date: 2013-07-31 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dws-registry
|
metadata.gz.sig
CHANGED
Binary file
|