mock_redis 0.45.0 → 0.46.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: 5d1b68c8d02b25dcd30e463797ca26ad87142cbba1e85f43ef635e59adc1b6f2
4
- data.tar.gz: 7daf9875e33a704d73917a83d71878ea931671c5a34d4382b3b8f888b98c18ff
3
+ metadata.gz: ced935cd314aee4b33828b9e04c890b4bf4cf36b6e09b93cf6b3b3a3a0bd619a
4
+ data.tar.gz: def8f4648486a13f063a906df2fade9e33f703e9e5c019516f227049217c64b2
5
5
  SHA512:
6
- metadata.gz: 60b2f391b1ce3e8bce7986bdc19918c5ef5f8453bcea9ffc0ced69e61fd8233ade6c93a9efa71aff4ec7f8b348b8737a1347bb2494f7d5f6587c32a2c4698a18
7
- data.tar.gz: 9dd87f2dfae5a2fd7e97cbc3f8396b70f5cc6f30d29d1c9f3b5849b60b7180d02a32a17e8686f9cdc716cbb44d04ae411839aaa518d4da70cc07cca9b1893f66
6
+ metadata.gz: c73c851717ac57510e528adad4f5a6f4277abef68338d49be40871bc366937270f90d977c777e18eb0b2d0d0b1e787f3a8e3cd59a51886a57c045f655211cebe
7
+ data.tar.gz: b47fbb5cffd0d47270915cb786ac50fa30dd00fc1b064d82b1e3d754ad746b2da2a1cbdbc53e5210cd098174b7e1bac2ecbc880ee32576fe24eeea4b7e0376ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # MockRedis Changelog
2
2
 
3
+ ### 0.46.0
4
+
5
+ * Fix `hset` for array of key-value pairs
6
+
3
7
  ### 0.45.0
4
8
 
5
9
  * Add support for `count` argument of `rpop`
@@ -137,6 +137,7 @@ class MockRedis
137
137
 
138
138
  def hset(key, *args)
139
139
  added = 0
140
+ args.flatten!(1)
140
141
  with_hash_at(key) do |hash|
141
142
  if args.length == 1 && args[0].is_a?(Hash)
142
143
  args = args[0].to_a.flatten
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  class MockRedis
5
- VERSION = '0.45.0'
5
+ VERSION = '0.46.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-13 00:00:00.000000000 Z
12
+ date: 2024-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -124,10 +124,10 @@ licenses:
124
124
  - MIT
125
125
  metadata:
126
126
  bug_tracker_uri: https://github.com/sds/mock_redis/issues
127
- changelog_uri: https://github.com/sds/mock_redis/blob/v0.45.0/CHANGELOG.md
128
- documentation_uri: https://www.rubydoc.info/gems/mock_redis/0.45.0
127
+ changelog_uri: https://github.com/sds/mock_redis/blob/v0.46.0/CHANGELOG.md
128
+ documentation_uri: https://www.rubydoc.info/gems/mock_redis/0.46.0
129
129
  homepage_uri: https://github.com/sds/mock_redis
130
- source_code_uri: https://github.com/sds/mock_redis/tree/v0.45.0
130
+ source_code_uri: https://github.com/sds/mock_redis/tree/v0.46.0
131
131
  post_install_message:
132
132
  rdoc_options: []
133
133
  require_paths: