redis_hash 0.15.0 → 0.15.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: 70525bff609dd594e49a110684ef7fda2148f74f3e139a74f6056ae8e3c0c73d
4
- data.tar.gz: e0f8c2182f467a90f04f57c2b8c83c3bd6b241e59bdc62f963ac4a074708d7b3
3
+ metadata.gz: 2032c03eda1586ddd8e1308adbc194c26b11c70e0a0c9cdbcc5e7d52e23571e7
4
+ data.tar.gz: 2215578d8b2522c49dd53d655224518a62f9ae4de9e7a8e9ef0241b935abbb1e
5
5
  SHA512:
6
- metadata.gz: a451178e2caaeaa56889a1bbfc48a0776a86a46e508af677d5463b7f951faea08cd18315741bfc9447fe87fda40ad8783abd46f1a96ab1fe524761d6e6b357de
7
- data.tar.gz: 730107a8dc4e7d392c8f2e606b254f62c507d0e42a3afd34164135b3345b8f1542d6086b4c6513848af6fca8c02dd1032848256193660a1562b2fc058a8c0667
6
+ metadata.gz: 339f957c2f7cdfd2d7e78f5a66079199a3cdc7c36228b37aad60ced7c8b85de0da2d092f87ba97668baefaec02e139f4222a34fdf24f9dfaa2cce58b22d6379d
7
+ data.tar.gz: 14d52c6779d4f347dd9ad764e563316858a21a514c3c18c40f38f9744f1428e494ca9cd7c8de3d07ed3c9d3fcc5ba706ff387906c58528176b052b13d42c71cb
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "tablesalt/uses_hash_for_equality"
4
+
3
5
  require_relative "concerns/adapter"
4
6
  require_relative "concerns/default"
5
7
  require_relative "concerns/callbacks"
@@ -19,6 +21,8 @@ require_relative "concerns/expiration"
19
21
 
20
22
  module RedisHash
21
23
  class Base
24
+ include Tablesalt::UsesHashForEquality
25
+
22
26
  include RedisHash::Adapter
23
27
  include RedisHash::Default
24
28
  include RedisHash::Callbacks
@@ -8,10 +8,5 @@ module RedisHash
8
8
  included do
9
9
  delegate :<, :<=, :>, :>=, :compare_by_identity, :compare_by_identity?, to: :to_h
10
10
  end
11
-
12
- def eql?(other)
13
- other.hash == hash
14
- end
15
- alias_method :==, :eql?
16
11
  end
17
12
  end
@@ -1,4 +1,4 @@
1
1
  module RedisHash
2
2
  # This constant is managed by spicerack
3
- VERSION = "0.15.0"
3
+ VERSION = "0.15.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: tablesalt
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.15.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.15.1
41
55
  description: A full implementation of Ruby's Hash API which transparently wraps a
42
56
  Redis hash
43
57
  email: