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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6245244626ebe2a463273f0b1dce350ed5fd0dc0
4
- data.tar.gz: ebec25f36ecd682be8b136e6349bf20e3d05aec2
3
+ metadata.gz: af76252f339b832f27899e36d1f93d19cb0a3e6c
4
+ data.tar.gz: e733a8f8d33b4bd49d498de10b8d98d248f9e290
5
5
  SHA512:
6
- metadata.gz: c82f6ea6727ac06dc8b50e09df1d2524dca48e31752d06c9cc4c9a282f775166be7dee70193a1d9532736f6e723b1047326f1b7e7afc8436b892d28800956176
7
- data.tar.gz: 64d6f2af4adc7c63442318a434796523fda4bc1569109599aa2a585dc84d4f03d4ec303c5da90b2b7a1874a673e9638b8c4f4083c7f59f4156ad997fe45c8b7c
6
+ metadata.gz: 0c41931d8fd6af4ee3a82de6de571fad77b2e6c93e9cf02de054880652e86fec50b4d3e1557328c0e63db76f1b1e0dbe6507dc80634527f854276425a1bc4d62
7
+ data.tar.gz: 874075666f3b16e3dbde7a16b1e283770dabec61dd05ad5348d49738734dc7e890223563385f58664ad19496afc7ae92a5d96f5141e980b8788423f38bee672e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 of the broker ID
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.1
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: 2017-06-16 00:00:00.000000000 Z
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.8
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