mock_redis 0.49.0 → 0.50.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: c6fef8f0d7eddda743cb337e4f52543ee2ea8c5eb94ece6b882835061a2fb946
4
- data.tar.gz: bd415f8d7e7362ba93a519388424e30d89d051419f492c82f0de9ceb02401f4b
3
+ metadata.gz: 3ebac8e6fd9d4e182a49424a808557b615e6e38826d2d2db7ae93b1b04ccde99
4
+ data.tar.gz: bd088b4ef698618171b361c1f3adfd54a3e9c204abc06a5b1f8668dad1edf65f
5
5
  SHA512:
6
- metadata.gz: 30eb06426f7e609fe78e10809c0492b771e1ec608d29fb6a5a488fb01dfbccb9efc48071b016cfa695f9dfa8ba9577d8c9fe6a189ed8be5cddb6ac9f62972c8a
7
- data.tar.gz: 981a665dbb3e15c84e5800071d838ca53e1e2425e16d9182745c67130883f7b29f4c4f8b2bfb1ac0a496a1f334c6e0f47604e26106589a15b89d50b88cc1a350
6
+ metadata.gz: ea51c2b29a803c5621d5dbd8261fa67436f94f53522fb7b143e7846c699a1c9d6946e69bf2cfc0b374548b238f0272d69014eba70d36ade7eef05512b55325ec
7
+ data.tar.gz: 9bbb1f219a89c020242949cc43b00c0324dc56082348c543089fa87cd56499d4873c92fda288d9cf5cc1a3e7e99eb40bcc52a60b46bc74e9a35ec97caca3c2ce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # MockRedis Changelog
2
2
 
3
+ ### 0.50.0
4
+
5
+ * Allow `#call` to accept array or multiple arguments
6
+
3
7
  ### 0.49.0
4
8
 
5
9
  * Move `redis` from development dependency to runtime dependency
@@ -48,7 +48,9 @@ class MockRedis
48
48
  # FIXME: Current implementation of `call` does not work propetly with kwarg-options.
49
49
  # i.e. `call("EXPIRE", "foo", 40, "NX")` (which redis-rb will simply transmit to redis-server)
50
50
  # will be passed to `#expire` without keywords transformation.
51
- def call(command, &_block)
51
+ def call(*command, &_block)
52
+ # allow for single array argument or multiple arguments
53
+ command = command[0] if command.length == 1
52
54
  public_send(command[0].downcase, *command[1..])
53
55
  end
54
56
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  class MockRedis
5
- VERSION = '0.49.0'
5
+ VERSION = '0.50.0'
6
6
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  - Samuel Merritt
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-12-04 00:00:00.000000000 Z
11
+ date: 2025-05-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: redis
@@ -125,11 +124,10 @@ licenses:
125
124
  - MIT
126
125
  metadata:
127
126
  bug_tracker_uri: https://github.com/sds/mock_redis/issues
128
- changelog_uri: https://github.com/sds/mock_redis/blob/v0.49.0/CHANGELOG.md
129
- documentation_uri: https://www.rubydoc.info/gems/mock_redis/0.49.0
127
+ changelog_uri: https://github.com/sds/mock_redis/blob/v0.50.0/CHANGELOG.md
128
+ documentation_uri: https://www.rubydoc.info/gems/mock_redis/0.50.0
130
129
  homepage_uri: https://github.com/sds/mock_redis
131
- source_code_uri: https://github.com/sds/mock_redis/tree/v0.49.0
132
- post_install_message:
130
+ source_code_uri: https://github.com/sds/mock_redis/tree/v0.50.0
133
131
  rdoc_options: []
134
132
  require_paths:
135
133
  - lib
@@ -144,8 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
142
  - !ruby/object:Gem::Version
145
143
  version: '0'
146
144
  requirements: []
147
- rubygems_version: 3.0.3.1
148
- signing_key:
145
+ rubygems_version: 3.6.2
149
146
  specification_version: 4
150
147
  summary: Redis mock that just lives in memory; useful for testing.
151
148
  test_files: []