redis-client 0.17.0 → 0.18.0

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
  SHA256:
3
- metadata.gz: c8038f4b1f7316e16bd3561f43311334a9e69896e54a75b1a9666cb2718ba3b0
4
- data.tar.gz: e37514256b44be8b0d5832c3d944c8d3be2a8228bff1fa05ac3a28347c6445ae
3
+ metadata.gz: '0903a6d92200235e71b687f16de1ec058ca88979a42cc14d2a783ba5d5605061'
4
+ data.tar.gz: 1e772676e34700120320659108e1be493cd4d2067a286056cb8ac87f1c3b51e7
5
5
  SHA512:
6
- metadata.gz: f02d99ca8c468cf38a4527817257169104d7f64cea5110c170d434d82b7f30cfea8338e0e746504d2d8c29866f81ef6cf4e81d014400ff364d5138d7653dfdc3
7
- data.tar.gz: 2a66a02666e43b17c5007f2ae99c08f331cc46eb4645330b0f3df31fec39080ab779860bebcaa40add2beacc057d7a4ce586a7bc4453c50ddb0c4a10b677281f
6
+ metadata.gz: 66e2d650fe13befeb44b06514e0523d571dfa749f0f787bf7c95126b16d7e54a6b7cb3aa7ed99375f761a302892c2de50c14ad2c011bd42266f4a441a6c9b24b
7
+ data.tar.gz: 14b28ce893f07569688acb16a404c2f98bb8cdcd3eaca6d68264a2f1c790cb52c483cd252cc243e8f3f8b4f6e858daf34204d78c7689dcfb2146fc960d45bf3a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.18.0
4
+
5
+ - Expose more connection details such as `host`, `db`, etc on `RedisClient`.
6
+
7
+ # 0.17.1
8
+
9
+ - Add support for `NaN` in RESP3 protocol doubles.
10
+ This was initially missing from the spec and added about a year ago.
11
+
3
12
  # 0.17.0
4
13
 
5
14
  - Adds `sentinel_username` and `sentinel_password` options for `RedisClient#sentinel`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis-client (0.17.0)
4
+ redis-client (0.18.0)
5
5
  connection_pool
6
6
 
7
7
  GEM
@@ -175,6 +175,8 @@ class RedisClient
175
175
 
176
176
  def parse_double(io)
177
177
  case value = io.gets_chomp
178
+ when "nan"
179
+ Float::NAN
178
180
  when "inf"
179
181
  Float::INFINITY
180
182
  when "-inf"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RedisClient
4
- VERSION = "0.17.0"
4
+ VERSION = "0.18.0"
5
5
  end
data/lib/redis_client.rb CHANGED
@@ -179,6 +179,38 @@ class RedisClient
179
179
  config.server_url
180
180
  end
181
181
 
182
+ def id
183
+ config.id
184
+ end
185
+
186
+ def timeout
187
+ config.read_timeout
188
+ end
189
+
190
+ def db
191
+ config.db
192
+ end
193
+
194
+ def host
195
+ config.host unless config.path
196
+ end
197
+
198
+ def port
199
+ config.port unless config.path
200
+ end
201
+
202
+ def path
203
+ config.path
204
+ end
205
+
206
+ def username
207
+ config.username
208
+ end
209
+
210
+ def password
211
+ config.password
212
+ end
213
+
182
214
  def size
183
215
  1
184
216
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.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-09-06 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool