redis-hash 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/redis_hash.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c26c4082f43c09a74b7da2b2c74171d3d821c7b1
|
4
|
+
data.tar.gz: f1ab70bc59ee5fe54a2a0ff7ff5bf35dc7ec0d38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebdb31264d8e57cb6ed8227df5b1ffdaeb96e75d0c0c75f4e4bb88ec436bd499af880e185bf37d9a4a381106bd45534d9b1a031a3638dcdcd4d4c1b01cfdf6c5
|
7
|
+
data.tar.gz: 9784a09b4bc8ae3e71f87cba36bcc8a2c1cd0bc3423ad5d733bdbfb1843eedfcd561ae0e7f27178a07f629cd0de1869bd54e1e2ca3f2e276b3088eea21f75874
|
data/Gemfile.lock
CHANGED
data/lib/redis_hash.rb
CHANGED
@@ -3,7 +3,7 @@ require "redis"
|
|
3
3
|
class RedisHash
|
4
4
|
attr_reader :name
|
5
5
|
|
6
|
-
VERSION = "0.0.
|
6
|
+
VERSION = "0.0.7"
|
7
7
|
|
8
8
|
class InvalidNameException < StandardError; end;
|
9
9
|
class InvalidRedisConfigException < StandardError; end;
|
@@ -36,7 +36,7 @@ class RedisHash
|
|
36
36
|
keys = keys.flatten
|
37
37
|
if keys.size > 0
|
38
38
|
values = if 1 == keys.size
|
39
|
-
with{|redis| redis.hget
|
39
|
+
[with{|redis| redis.hget(name, keys.first) }]
|
40
40
|
else
|
41
41
|
with{|redis| redis.hmget name, *keys }
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Misha Conway
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|