hiredis-client 0.19.1 → 0.21.0

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: 6fca3cf8fc6ec3d278b045025946060403d0ab94f8222a114364afad034ca94b
4
- data.tar.gz: aa46473c0bbe84c4b279cb9bbab14246b39a74578d55932b602ccca15c79eb51
3
+ metadata.gz: cd5b06a3ec6de726dad3f73e18bc5ed120f2be25ec01dd20701779dcab180cad
4
+ data.tar.gz: 90516f98a33310c2ade0bb7d9c4962e9b73ae5923cec37c2d10764b7167b5cd8
5
5
  SHA512:
6
- metadata.gz: 9944f993c9c111c504a66e5a2a976e3480ed10943732410bf68e6142a0c0b0c01c545133f4e021e08c0c8205113b41170bd1ee3da937ae198ef0c9ab768c6a1b
7
- data.tar.gz: efa20c614f0224f8ea72fbe5bee26a9a260a12b8ee0b4dac4f9a0bd6a2c1e9146e0dbb273419f24c1abc2cf141d0d8272d021e64d55a62db21ac5b7068b45b26
6
+ metadata.gz: 947ac0fb4a39a0c79dd19738e22517a0fd7aab186ae5b69311b1528ee726c35f4d94397ee9dd51e5f13c41791c8107bd4b9b916217d052c213d37e7f13d354b0
7
+ data.tar.gz: 273aaa26963abb196965bcc5e9d8b44aae377e39cfb2be13ef07d28f191a27b839a48b869d88251cd0f3cde4575e480431b471bcb81dfb6cd088ffaf88832ac9
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Hiredis binding for redis-client"
12
12
  spec.homepage = "https://github.com/redis-rb/redis-client"
13
13
  spec.license = "MIT"
14
- spec.required_ruby_version = ">= 2.5.0"
14
+ spec.required_ruby_version = ">= 2.6.0"
15
15
 
16
16
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
17
17
 
@@ -39,6 +39,8 @@ class RedisClient
39
39
  end
40
40
  end
41
41
 
42
+ attr_reader :config
43
+
42
44
  def initialize(config, connect_timeout:, read_timeout:, write_timeout:)
43
45
  super()
44
46
  @config = config
@@ -98,14 +100,20 @@ class RedisClient
98
100
  end
99
101
  end
100
102
  rescue SystemCallError, IOError => error
101
- raise ConnectionError, error.message
103
+ raise ConnectionError.with_config(error.message, config)
104
+ rescue Error => error
105
+ error._set_config(config)
106
+ raise error
102
107
  end
103
108
 
104
109
  def write(command)
105
110
  _write(command)
106
111
  flush
107
112
  rescue SystemCallError, IOError => error
108
- raise ConnectionError, error.message
113
+ raise ConnectionError.with_config(error.message, config)
114
+ rescue Error => error
115
+ error._set_config(config)
116
+ raise error
109
117
  end
110
118
 
111
119
  def write_multi(commands)
@@ -114,7 +122,10 @@ class RedisClient
114
122
  end
115
123
  flush
116
124
  rescue SystemCallError, IOError => error
117
- raise ConnectionError, error.message
125
+ raise ConnectionError.with_config(error.message, config)
126
+ rescue Error => error
127
+ error._set_config(config)
128
+ raise error
118
129
  end
119
130
 
120
131
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiredis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-21 00:00:00.000000000 Z
11
+ date: 2024-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.21.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.19.1
26
+ version: 0.21.0
27
27
  description:
28
28
  email:
29
29
  - jean.boussier@gmail.com
@@ -98,14 +98,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 2.5.0
101
+ version: 2.6.0
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.4.10
108
+ rubygems_version: 3.5.5
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Hiredis binding for redis-client