simplepubsub 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/simplepubsub.rb +4 -4
- data.tar.gz.sig +0 -0
- 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: 402cc0c47c92fbb6d31edab18f5ef602f4ebe032
|
4
|
+
data.tar.gz: be5e324d71c9f37d416dfd3caec105871afaddda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0497b8058d23155cc0e5a3206fdb4e080a1c88d7aec5d21a7aa61ba1353b27add3e05af8ac01fab8c40245448e0f2ceef39c01cd1715f84546aba40d656a0ba
|
7
|
+
data.tar.gz: 283b1f4f1d5f573425d3b7a01a7d2e1d0c3d447ff18cde81bc00c223d55a0efe61adacaeae38be7c6ae118b7573f80d851fa3b6439b48679de6c1ed5cd8ee44a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/simplepubsub.rb
CHANGED
@@ -26,8 +26,7 @@ module SimplePubSub
|
|
26
26
|
|
27
27
|
ws.onmessage do |msg, type|
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
msg = '' if not msg[0][/\w/]
|
31
30
|
a = msg.strip.split(/\s*:\s*/,2)
|
32
31
|
|
33
32
|
def ws.subscriber?()
|
@@ -51,7 +50,8 @@ module SimplePubSub
|
|
51
50
|
|
52
51
|
#puts "publish this %s: %s" % a
|
53
52
|
current_topic, message = a
|
54
|
-
return if current_topic
|
53
|
+
return if current_topic[0] == '/'
|
54
|
+
return if current_topic =~ /[^a-zA-Z0-9\/_]/
|
55
55
|
|
56
56
|
reg = XMLRegistry.new
|
57
57
|
reg[current_topic] = message
|
@@ -203,4 +203,4 @@ if __FILE__ == $0 then
|
|
203
203
|
end
|
204
204
|
|
205
205
|
=end
|
206
|
-
end
|
206
|
+
end
|
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: 1.1.
|
4
|
+
version: 1.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
uOVdk9PsRKwYmaspqeSKWj4fpSd1mCtTjPlLbGQC/8sULVs7AlYVp2pAKbkXkbTn
|
32
32
|
EkYZt+RIxgYhhw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-06-13 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: websocket-eventmachine-server
|
metadata.gz.sig
CHANGED
Binary file
|