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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3eebf1de4a72aeac11dcbcce95290b93b4a0fc2c
4
- data.tar.gz: ddccd6756fbe4a6966df3a531122c503a38710bc
3
+ metadata.gz: 6245244626ebe2a463273f0b1dce350ed5fd0dc0
4
+ data.tar.gz: ebec25f36ecd682be8b136e6349bf20e3d05aec2
5
5
  SHA512:
6
- metadata.gz: b1672e08f3427c42c85b4fdf5fe90db13c4fb054ee3792554e2de0927823f6f65f44648e43bea329063395d21084ee3f85587567ff6c7f0d5bcdd9797dce7ae1
7
- data.tar.gz: d25884ca74467d9539a0187fd7db6e3f6229fb80a66b2a9f7a6068e98d5ebbccea84fce5adbe5d82fc3e1c16e3dbf2bcd99cc682521e4b6387273628250f876c
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.0
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-05-20 00:00:00.000000000 Z
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