redis-hash 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/redis_hash.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb0efcb0893f43a21cfc4f3de01007b68a3e020b
4
- data.tar.gz: 04d74c8e49327e375f95ffdcc7469c82acfaf7bc
3
+ metadata.gz: 12002807f57bffac7e0def4d9fc5d3d87e12032e
4
+ data.tar.gz: 9b3a9d32b5e44ce7d108a3f62b96326de9282932
5
5
  SHA512:
6
- metadata.gz: 9b1985397afe956ef61fd016d6e815addecfae700e8a734655857494626ca040863d0a45476696e1c976929d9de828a7b3c17836984e07503f3dc2c9a444bc16
7
- data.tar.gz: 4300ed544e9eca61f0800652dc958f4095f0e0a8e3447b4a741cdf952a95f1f10b4243526f939e591f57f1d3e0ce12c0cafd79fec5b14e1535dffbbaf6c6f224
6
+ metadata.gz: '0591b608964d26db80ad8a4a235f802cccf69025ab7ed64806fcab8bfcccb4599050ff5cae366798860fe5223cc5173753f11d0d9c17b4395ab18681db4b5087'
7
+ data.tar.gz: fb6b7b26b27d8e9587b230a4e9b9fe85badf3cf7224db2214d4cea73c0d191b02fd8793777b32c159874400769d0407560ac9fb94c841c55acc3c82b006c6eb3
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.5"
6
+ VERSION = "0.0.6"
7
7
 
8
8
  class InvalidNameException < StandardError; end;
9
9
  class InvalidRedisConfigException < StandardError; end;
@@ -44,6 +44,8 @@ class RedisHash
44
44
  keys.each_with_index.map do |k,i|
45
45
  [k, values[i]]
46
46
  end.to_h
47
+ else
48
+ {}
47
49
  end
48
50
  end
49
51
 
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.5
4
+ version: 0.0.6
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-04-02 00:00:00.000000000 Z
11
+ date: 2019-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler