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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2214fa2f3b252ab64e52061e6aada2fee996510
4
- data.tar.gz: 6ec485dc699141d8d37f2648f4efde55abb7ff80
3
+ metadata.gz: 5f26a296f3e51d5569ad1b5d366cb84397e0821b
4
+ data.tar.gz: be15107a6a624d28aadf926d0398a8cc626b702e
5
5
  SHA512:
6
- metadata.gz: 077aec88f5af2dc1e86369f60404185dfda397d74d11e1026daa905a5dd5e78f45d03ccd1e8ee18a865c286763e46334a44e2138d13a9ab925f0643143296471
7
- data.tar.gz: a61df4f17cabf07785dd2867fc4061955eef86303e3dc570b750617fead67bd1161cb70c1c9934597a56f2707dccacaed8dc1845cf2360b744faa5c796bb7a4c
6
+ metadata.gz: 8aaf6b7b39f5c62b1f6f63c35263ab45409040cfc19af10a0185fd8f1102bdfc4df393689c60ec35646f2831b623cd808a236ba519706e0a6db08e5ce8df98f2
7
+ data.tar.gz: 7b8228008b5993554f14159fad158c2ed1fd600acb96631b283003c185fce2b3093fc4a0c86c2dd75f928a1290635033844717b50e89d1719c4e7b9a823d3fe1
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -7,7 +7,8 @@ require 'drb'
7
7
  require 'dws-registry'
8
8
  require 'socket'
9
9
 
10
- USER_AGENT = 'SimplePubSub client 0.5'
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
- echo = DRbObject.new nil, uri
162
-
163
- begin
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.0
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-30 00:00:00.000000000 Z
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