simplepubsub 1.1.1 → 1.1.2
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 +2 -2
- data.tar.gz.sig +0 -0
- data/lib/simplepubsub.rb +4 -3
- metadata +3 -3
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1645d664bb8d17df53546e410a8f3949dcafd45
|
4
|
+
data.tar.gz: 873640bc3f729fe73680bf4e0e1d03f7c476e92d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddb62ee9595b7936bf9a5e16916c67800ee98f5800dee305c8eef39223ee4bf80b85acc59f3c5c66947ff6f319053a9c9858733eff6e5569507e89fbebb06286
|
7
|
+
data.tar.gz: 77e342c3f03f92ef2cc2a7c717f245f6299b357d9a1f410b2d491fd8ffefe7ee91f253f46a1ac7d41eb5779f379d1d1810844a65976893316651b52ebea9fbdb
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
�
|
2
|
-
|
1
|
+
�Yc��m�8������^M����T����L���=�I�^��7�4��^�� ����Dj�q
|
2
|
+
9�M��680C~����>���9��M;�5`ց*7Ѻ��!o���
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/simplepubsub.rb
CHANGED
@@ -36,7 +36,8 @@ module SimplePubSub
|
|
36
36
|
|
37
37
|
if a.first == 'subscribe to topic' then
|
38
38
|
|
39
|
-
topic = a.last.rstrip.gsub('+','*')
|
39
|
+
topic = a.last.rstrip.gsub('+','*')\
|
40
|
+
.gsub('#','*//').gsub('or','|')
|
40
41
|
subscribers[topic] ||= []
|
41
42
|
subscribers[topic] << ws
|
42
43
|
|
@@ -56,9 +57,9 @@ module SimplePubSub
|
|
56
57
|
|
57
58
|
subscribers.each do |topic,conns|
|
58
59
|
|
59
|
-
node = reg
|
60
|
+
node = reg.doc.root.xpath topic.gsub(/\S\b/,'\0/text()')
|
60
61
|
|
61
|
-
if node
|
62
|
+
if node.any? then
|
62
63
|
conns.each {|x| x.send current_topic + ': ' + message}
|
63
64
|
end
|
64
65
|
|
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: 1.1.
|
4
|
+
version: 1.1.2
|
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: 2014-
|
34
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: websocket-eventmachine-server
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.2.2
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: simplepubsub
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
�
|
1
|
+
ꯕ������ؽ�;�$���T��^~�iux��A
|
2
|
+
�x���R�ܭ6�Mܿ���N§5GWA�6��h�FUb���r--���!�y ��άK����U�Oc�B��@�3k��axg�З�����}rN(����9-��rSŝ)�W)���
|
3
|
+
�ŔmF��o����ɾ�z���['�D~8��-K-��!Mu��YZV%��t�()�[��2�މ�A9L! gI"A}����$�;~�2�>��0��
|