redis-client 0.5.0 → 0.5.1

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: 770636c5814252674d680c45f75af4ea291b698c18382b49d93bec4e3d7ab45b
4
- data.tar.gz: bdef4f0f80574a9aaf29613ec23d31d7a0c3d916ca3945ac412b36b55eecd73a
3
+ metadata.gz: b23930fc431afe23313aca3ef90ba49f219a6ed1a50f8153075a09b4c43678c0
4
+ data.tar.gz: 502388c79068a1dfe166543a6eb91cead665f42e404f679a598f5a8e2844ee82
5
5
  SHA512:
6
- metadata.gz: 3367281b907b6e38e73ba1e9a74f63404e40f422b319c551645fec1efa694e87c09cd96c67d308c362407c84be59eb62435b9951740cd515727a554050ae3137
7
- data.tar.gz: 9dc6f5e6638405c8841b267d0c9cf882d0721cbd04655984af71bddb66cc7e2f4698e7199e752582064e4db3ca8e3f45a77b56241df309ae0c2e231ebff1cf2b
6
+ metadata.gz: 9f6d4422b8c3e6608a5a8c53a55335ad0c44c034bc2cf26c7b5aace8dfdbe799409dd9783bd5928da3453d60ed28579594676f95c951a6a4dfff5e04dd09d28d
7
+ data.tar.gz: 3ee257ab6d509606c959079a16886389d76bfe232876aba9de1ae8922031746ad2576224fc5b0fae44a09ef13ba4d14ea862098860f923f432f63454499c1677
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.5.1
4
+
5
+ - Fix a regression in the `scan` familly of methods, they would raise with `ArgumentError: can't issue an empty redis command`. Fix: #24
6
+
7
+ # 0.5.0
8
+
3
9
  - Fix handling of connection URLs with empty passwords (`redis://:pass@example.com`).
4
10
  - Handle URLs with IPv6 hosts.
5
11
  - Add `RedisClient::Config#server_url` as a quick way to identify which server the client is pointing to.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis-client (0.5.0)
4
+ redis-client (0.5.1)
5
5
  connection_pool
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RedisClient
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
data/lib/redis_client.rb CHANGED
@@ -233,8 +233,8 @@ class RedisClient
233
233
  return to_enum(__callee__, *args, **kwargs)
234
234
  end
235
235
 
236
- args = @command_builder.generate!(args, kwargs)
237
- scan_list(1, ["SCAN", 0, *args], &block)
236
+ args = @command_builder.generate!(["SCAN", 0] + args, kwargs)
237
+ scan_list(1, args, &block)
238
238
  end
239
239
 
240
240
  def sscan(key, *args, **kwargs, &block)
@@ -242,8 +242,8 @@ class RedisClient
242
242
  return to_enum(__callee__, key, *args, **kwargs)
243
243
  end
244
244
 
245
- args = @command_builder.generate!(args, kwargs)
246
- scan_list(2, ["SSCAN", key, 0, *args], &block)
245
+ args = @command_builder.generate!(["SSCAN", key, 0] + args, kwargs)
246
+ scan_list(2, args, &block)
247
247
  end
248
248
 
249
249
  def hscan(key, *args, **kwargs, &block)
@@ -251,8 +251,8 @@ class RedisClient
251
251
  return to_enum(__callee__, key, *args, **kwargs)
252
252
  end
253
253
 
254
- args = @command_builder.generate!(args, kwargs)
255
- scan_pairs(2, ["HSCAN", key, 0, *args], &block)
254
+ args = @command_builder.generate!(["HSCAN", key, 0] + args, kwargs)
255
+ scan_pairs(2, args, &block)
256
256
  end
257
257
 
258
258
  def zscan(key, *args, **kwargs, &block)
@@ -260,8 +260,8 @@ class RedisClient
260
260
  return to_enum(__callee__, key, *args, **kwargs)
261
261
  end
262
262
 
263
- args = @command_builder.generate!(args, kwargs)
264
- scan_pairs(2, ["ZSCAN", key, 0, *args], &block)
263
+ args = @command_builder.generate!(["ZSCAN", key, 0] + args, kwargs)
264
+ scan_pairs(2, args, &block)
265
265
  end
266
266
 
267
267
  def connected?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier