message_bus 2.2.2 → 2.2.3

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
2
  SHA256:
3
- metadata.gz: 79e90ec066435ef35d00e9184481acdb2a03dbecb41b629dd18584c8a824ae4b
4
- data.tar.gz: 8d571923665a26165255e06a4a217ad660b39caad101ae3d3755473d740fd3c1
3
+ metadata.gz: 46de79e771fac3fb31c3edc55b0866842b6dc108df65c5bcbd7d1062568a6279
4
+ data.tar.gz: 201cb983ab710b1fe487f69105a13f0291873bf94c8a5e16f1749993a22ddc74
5
5
  SHA512:
6
- metadata.gz: 4ad3699e51995f038ba76197eed72f9d494f29a3b5ab09be389277cc0b62fe2848eb1d96f090563f75393480768490798c012a16f279f19bbded8b7ea78667d7
7
- data.tar.gz: 2e8772dc961eefaa746d3569ff57ceecea034c406a4749177c9ba1139ac6575891d8448c00cd7c4f314acd72794cf886ecd5066beb5925a5f7a3b0520270979c
6
+ metadata.gz: 633808d11a69d4f6e7c8e53f4805c6bff2d5cd5e57b4c38a166af355e8c6cd2e423c6b27cb0f861597cda6b65dedb0c2bf46edfe5b7fada98b79e8f1bed7d38a
7
+ data.tar.gz: d38cb6e67c791a9e1e3dcaef8764517e47a363fa4045aed35eedff84cdbdf2a7da85bf0e55a2f00c4c877612bf46ce3dbaea430786afb6dd903ae090b4144638
data/CHANGELOG CHANGED
@@ -1,11 +1,18 @@
1
- Unreleased
1
+ 18-10-2019
2
2
 
3
- - Version 2.2.1
3
+ - Version 2.2.3
4
+
5
+ - FIX: Protect redis config from being manipulated in backend
6
+
7
+ 09-08-2019
8
+
9
+ - Version 2.2.2
4
10
 
5
11
  - FEATURE: Support rate limiting by server, 429 status codes are respected and we hold off as needed
6
12
 
7
13
  - FIX: In the redis backend make the `is_readonly?` method compatible with the redis gem both pre and post v4.0 when the `client` attribute was removed
8
14
 
15
+
9
16
  30-04-2019
10
17
 
11
18
  - Version 2.2.1
@@ -327,7 +327,7 @@ LUA
327
327
  private
328
328
 
329
329
  def new_redis_connection
330
- ::Redis.new(@redis_config)
330
+ ::Redis.new(@redis_config.dup)
331
331
  end
332
332
 
333
333
  # redis connection used for publishing messages
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MessageBus
4
- VERSION = "2.2.2"
4
+ VERSION = "2.2.3"
5
5
  end
@@ -406,4 +406,12 @@ describe PUB_SUB_CLASS do
406
406
 
407
407
  got.map { |m| m.data }.must_equal ["12"]
408
408
  end
409
+
410
+ it 'should not lose redis config' do
411
+ test_only :redis
412
+ redis_config = { connector: Redis::Client::Connector }
413
+ @bus.instance_variable_set(:@redis_config, redis_config)
414
+ @bus.send(:new_redis_connection)
415
+ expect(@bus.instance_variable_get(:@redis_config)[:connector]).must_equal Redis::Client::Connector
416
+ end
409
417
  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.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-09 00:00:00.000000000 Z
11
+ date: 2019-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack