message_bus 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of message_bus might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ab4e02e88e557c6eeeedbe109bdcde769d139ea8
4
- data.tar.gz: 39009dd918e0218b44817bcbe76af71f7dc756d4
2
+ SHA256:
3
+ metadata.gz: bc63e91243c887e17566c8e993d8a1974095fb5dbd526f975532a49cc21b53df
4
+ data.tar.gz: 58721c57100d84323d839c9c6ffbb9dd49a86e4f31e241058bf89c6c88224646
5
5
  SHA512:
6
- metadata.gz: cbf23d9b541c1045074433945d9cccf10c0b40f445ac5f4692a6d3308dfc21d60f70f70cf4d5a93d83e653f570c7966ce1384def2c1b569daa49c9dd89b872c1
7
- data.tar.gz: 3bf340e084d49dfeb09a07e80b23e2dc9698f2863feb579e668c449891c9bc7dec2f67b52dc891e7f1c772ecd0ce9f9b33f00b7fb9f34d1014d9dc6942496d0f
6
+ metadata.gz: 996048cdb5e4f4834ec943fbd9dad61b40e5a1c2977046a426c3ec1ec621ba8990d272ec21f916e2d098f7096489d516bdc56d0bfb0dc1d859c2759f42bf83c6
7
+ data.tar.gz: da9e30f25a9918d7d2290a508e6d068d93ec18a5f8d69423426c381838c00dcd7b8480d5a1760196ceb66ea7bb30da209b6c7046f8a2c74fc3a8322d40a730dc
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 16-05-2018
2
+
3
+ - Version 2.1.5
4
+
5
+ - FIX: In some cases a 30 second initial delay could happen cause client lost info about long poller
6
+
1
7
  20-04-2018
2
8
 
3
9
  - Version 2.1.4
@@ -386,7 +386,11 @@
386
386
  data[callbacks[i].channel] = callbacks[i].last_id;
387
387
  }
388
388
 
389
- me.longPoll = longPoller(poll, data);
389
+ // could possibly already be started
390
+ // notice the delay timeout above
391
+ if (!me.longPoll) {
392
+ me.longPoll = longPoller(poll, data);
393
+ }
390
394
  };
391
395
 
392
396
 
@@ -436,6 +440,10 @@
436
440
  lastId = -1;
437
441
  }
438
442
 
443
+ if (typeof(channel) !== "string") {
444
+ throw "Channel name must be a string!";
445
+ }
446
+
439
447
  callbacks.push({
440
448
  channel: channel,
441
449
  func: func,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module MessageBus
3
- VERSION = "2.1.4"
3
+ VERSION = "2.1.5"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-20 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.6.13
145
+ rubygems_version: 2.7.6
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: ''