simplepubsub 1.3.0 → 1.3.1
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 +6 -3
- 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: 6245244626ebe2a463273f0b1dce350ed5fd0dc0
|
4
|
+
data.tar.gz: ebec25f36ecd682be8b136e6349bf20e3d05aec2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c82f6ea6727ac06dc8b50e09df1d2524dca48e31752d06c9cc4c9a282f775166be7dee70193a1d9532736f6e723b1047326f1b7e7afc8436b892d28800956176
|
7
|
+
data.tar.gz: 64d6f2af4adc7c63442318a434796523fda4bc1569109599aa2a585dc84d4f03d4ec303c5da90b2b7a1874a673e9638b8c4f4083c7f59f4156ad997fe45c8b7c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/simplepubsub.rb
CHANGED
@@ -14,9 +14,9 @@ module SimplePubSub
|
|
14
14
|
class Broker
|
15
15
|
|
16
16
|
|
17
|
-
def self.start(host: '0.0.0.0', port: 59000, brokers: [])
|
18
|
-
|
17
|
+
def self.start(host: '0.0.0.0', port: 59000, brokers: [], debug: false)
|
19
18
|
|
19
|
+
|
20
20
|
EM.run do
|
21
21
|
|
22
22
|
subscribers = {}
|
@@ -28,7 +28,10 @@ module SimplePubSub
|
|
28
28
|
end
|
29
29
|
|
30
30
|
ws.onmessage do |msg, type|
|
31
|
-
|
31
|
+
|
32
|
+
puts 'msg: ' + msg.inspect if debug
|
33
|
+
next if msg.empty?
|
34
|
+
|
32
35
|
msg = '' if not msg[0][/[\w:]/]
|
33
36
|
a = msg.lstrip.split(/\s*:\s/,2)
|
34
37
|
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
ESZzN7k2ND/MlTmSRterWKMTHfqcRezLMwpCUfuiwqBZjmitwfxLISVSb6KbdmAP
|
32
32
|
gwvxzXnCp16BVQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sps-pub
|
metadata.gz.sig
CHANGED
Binary file
|