simplepubsub 0.3.2 → 0.3.3
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/lib/simplepubsub.rb +9 -3
- data.tar.gz.sig +0 -0
- 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: fc78605a19c74df4fd6a16de9d339b13bcc2633a
|
4
|
+
data.tar.gz: faf89565b9512de0b39453ca0fd988cead7661e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b3ae6f73ae5882354e583030fbd3a1c14fc710eb940751f65dbc0c43df80207e2bf46f98624cb3d0d713d6fe23ab0cdddab193fc6ba89a3c8fa275ce1f9e4d
|
7
|
+
data.tar.gz: f382b7a18d5cd514e8a26464fe0641942d2fb6d04f4c876c0afc5a1df9b660a9bfca427bdeb6328721cb4c1739778cb2c31e9225fea65d431ffa5f9b752896f2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/simplepubsub.rb
CHANGED
@@ -7,7 +7,7 @@ require 'drb'
|
|
7
7
|
require 'dws-registry'
|
8
8
|
|
9
9
|
|
10
|
-
USER_AGENT = 'SimplePubSub client 0.3.
|
10
|
+
USER_AGENT = 'SimplePubSub client 0.3.3'
|
11
11
|
|
12
12
|
module SimplePubSub
|
13
13
|
|
@@ -115,8 +115,14 @@ module SimplePubSub
|
|
115
115
|
|
116
116
|
# e.g. 'hkey_apps/simplepubsub/subscription_topics/magic/subscribers/niko',
|
117
117
|
# 'druby://niko:353524'
|
118
|
-
|
119
|
-
|
118
|
+
if topic == '#' then
|
119
|
+
key = "hkey_apps/simplepubsub/subscription_all_topics/subscribers/%s" % \
|
120
|
+
[uri[/[^\/]+$/].sub(':','')]
|
121
|
+
else
|
122
|
+
key = "hkey_apps/simplepubsub/subscription_topics/%s/subscribers/%s" % \
|
123
|
+
[topic, uri[/[^\/]+$/].sub(':','')]
|
124
|
+
end
|
125
|
+
|
120
126
|
@reg.set_key key, uri
|
121
127
|
end
|
122
128
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|