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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb9c522f87754fb3b35dc8beabcdae04ac78e1ca
4
- data.tar.gz: f36a883a542bfe73c180a51e279983fff2ae88d6
3
+ metadata.gz: fc78605a19c74df4fd6a16de9d339b13bcc2633a
4
+ data.tar.gz: faf89565b9512de0b39453ca0fd988cead7661e6
5
5
  SHA512:
6
- metadata.gz: 11d4d4e480eb0edde819cc69fd8b98496ef6ccd013ef3d0212c56b795f92e711bc61de51c68f2d2f80a36dde69dbcdc10dfe1becd2d5cbfb406292095a3324d7
7
- data.tar.gz: ac85bf1eb757ac9ec648e791e2e4f8b7d7f127954775d21b25d2836f99b0d3d2730b8b5636f37e12dbd838ff1952590fc776a2fb6da5431d9be4c5b69a60ca64
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.2'
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
- key = "hkey_apps/simplepubsub/subscription_topics/%s/subscribers/%s" % \
119
- [topic, uri[/[^\/]+$/].sub(':','')]
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplepubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file