redis-client 0.23.0 → 0.23.2

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
  SHA256:
3
- metadata.gz: 588c7b4963a757c4d297236e15e0fd2b84d1137f42f14ca26dcfdf3349588126
4
- data.tar.gz: cc68ebf122ca5c9044c9c0e08713071e60b151c526f37699d7fa5d28c2e52e5f
3
+ metadata.gz: a3aa8079ed55ab823901c58ee7fc725142ac9f2a964a7db9df9b6eaa8bf3b668
4
+ data.tar.gz: 59127fed6458c327bd964a02e7e53de5172ba17eef7fc79b5dcae4a9cf339d6b
5
5
  SHA512:
6
- metadata.gz: 3a23804a8dbf13a35f8dae709586c44b3b81bd4d6d671ed79890b734b9e722f996c6d514bc609da511a0695deeefbfdfafcf8545fd6a0f7d8144d1936f72f417
7
- data.tar.gz: 1be3aff9e63209a7424c0078f1fe26d8f45212034f0a8d18fa8cb778f7bdb12200effa4796082dd7a1096f18f840cdf84ddff8a9ab3ff2ad6a552db9db595484
6
+ metadata.gz: e0cb0139b70d63b59379364699b0ff4a883df931cd8ee60248dd5db23c20c789e752904babce6d48ecd215ef12eae8783c007b85aff1c6cb84057431d3cb1d1e
7
+ data.tar.gz: 8fe7a3923239ca5143ac01d1b92e724d6ad3001cdb477032e7ed182358c16b0f38037f2f92e2e0b0f329c97967b477df65a041eace290605734d73dfcc7ab050
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.23.2
4
+
5
+ - Fix retry logic not to attempt to retry on an open circuit breaker. Fix #227.
6
+
7
+ # 0.23.1
8
+
9
+ - Fix a potential crash in `hiredis-client` when using subcriptions (`next_event`). See #221.
10
+
3
11
  # 0.23.0
4
12
 
5
13
  - Allow `password` to be a callable. Makes it easy to implement short lived password authentication strategies.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RedisClient
4
- VERSION = "0.23.0"
4
+ VERSION = "0.23.2"
5
5
  end
data/lib/redis_client.rb CHANGED
@@ -710,9 +710,14 @@ class RedisClient
710
710
  end
711
711
  rescue ConnectionError, ProtocolError => error
712
712
  preferred_error ||= error
713
- preferred_error = error unless error.is_a?(CircuitBreaker::OpenCircuitError)
714
713
  close
715
714
 
715
+ if error.is_a?(CircuitBreaker::OpenCircuitError)
716
+ raise preferred_error
717
+ else
718
+ preferred_error = error
719
+ end
720
+
716
721
  if !@disable_reconnection && config.retry_connecting?(tries, error)
717
722
  tries += 1
718
723
  retry
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-01-16 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: connection_pool
@@ -24,7 +23,6 @@ dependencies:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
27
- description:
28
26
  email:
29
27
  - jean.boussier@gmail.com
30
28
  executables: []
@@ -58,7 +56,6 @@ metadata:
58
56
  homepage_uri: https://github.com/redis-rb/redis-client
59
57
  source_code_uri: https://github.com/redis-rb/redis-client
60
58
  changelog_uri: https://github.com/redis-rb/redis-client/blob/master/CHANGELOG.md
61
- post_install_message:
62
59
  rdoc_options: []
63
60
  require_paths:
64
61
  - lib
@@ -73,8 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
70
  - !ruby/object:Gem::Version
74
71
  version: '0'
75
72
  requirements: []
76
- rubygems_version: 3.0.3.1
77
- signing_key:
73
+ rubygems_version: 3.6.2
78
74
  specification_version: 4
79
75
  summary: Simple low-level client for Redis 6+
80
76
  test_files: []