simplepubsub 1.3.1 → 1.3.2
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.tar.gz.sig +0 -0
- data/lib/simplepubsub.rb +6 -1
- metadata +3 -3
- 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: af76252f339b832f27899e36d1f93d19cb0a3e6c
|
|
4
|
+
data.tar.gz: e733a8f8d33b4bd49d498de10b8d98d248f9e290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c41931d8fd6af4ee3a82de6de571fad77b2e6c93e9cf02de054880652e86fec50b4d3e1557328c0e63db76f1b1e0dbe6507dc80634527f854276425a1bc4d62
|
|
7
|
+
data.tar.gz: 874075666f3b16e3dbde7a16b1e283770dabec61dd05ad5348d49738734dc7e890223563385f58664ad19496afc7ae92a5d96f5141e980b8788423f38bee672e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/simplepubsub.rb
CHANGED
|
@@ -53,6 +53,11 @@ module SimplePubSub
|
|
|
53
53
|
|
|
54
54
|
ws.subscriber_topic = topic
|
|
55
55
|
|
|
56
|
+
elsif a.first == 'shutdown' then
|
|
57
|
+
|
|
58
|
+
puts 'shutting down ...'
|
|
59
|
+
EM.stop
|
|
60
|
+
|
|
56
61
|
elsif a.length > 1 and a.first != ''
|
|
57
62
|
|
|
58
63
|
current_topic, message = a
|
|
@@ -61,7 +66,7 @@ module SimplePubSub
|
|
|
61
66
|
|
|
62
67
|
if current_topic[0] == ':' then
|
|
63
68
|
|
|
64
|
-
# strip
|
|
69
|
+
# strip off the broker ID
|
|
65
70
|
current_topic.sub!(/:\w+\//,'')
|
|
66
71
|
|
|
67
72
|
elsif brokers.any?
|
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.2
|
|
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:
|
|
34
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: sps-pub
|
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
120
|
version: '0'
|
|
121
121
|
requirements: []
|
|
122
122
|
rubyforge_project:
|
|
123
|
-
rubygems_version: 2.6.
|
|
123
|
+
rubygems_version: 2.6.13
|
|
124
124
|
signing_key:
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: The SimplePubSub gem is a messaging broker which uses Eventmachine + websockets.
|
metadata.gz.sig
CHANGED
|
Binary file
|