tablesalt 0.15.0 → 0.15.1

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: fad423cad249f5d151a29b67af5f45dec565dd49d4ab0361361643808bd02a94
4
- data.tar.gz: d0df34430aad677a7bba669fc4b2747bfdecae4aea39a968d6560617614ef1ae
3
+ metadata.gz: 05533f05e1b1860908b9165cceed13b082afbb0324fc1f4e2989234dfe8202ec
4
+ data.tar.gz: 1ae1017cb59268d3d5fa975dab2178de7e8bb55d316418262fbbd4f50c77ceb1
5
5
  SHA512:
6
- metadata.gz: fb59cc4b9c3a123863445279e7e4c3d93f9b72770d134ff7473a59952c640ed6f7a36585ac7297ab72c049c2ad2713158f215523c8e8f0cb41c81049a61a02b0
7
- data.tar.gz: 3c95b0a16e4df680de795ae2b9a2f76980df03f4e01f75a473571d7dca601d4aeafa9905d4c03a2b844f38e564d7c4ceaba8c76d9c451e6108183d731fa8a32f
6
+ metadata.gz: 0751e08eb2b8312282aa5ff426b505ee55e2e914a3783d17fc1592021f203137fa6d7d5122b3aef740839835075c7e069325500644e546d349d423b2284d1b12
7
+ data.tar.gz: c0b9534b609cf10f7a138d4b12b785ccddd46d1dc24fc83f655c3c2bb5513958194c7d1b57593c36e3074f507dca2bc0df89643db4897def4bcf973c04ea81e2
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tablesalt
4
+ module UsesHashForEquality
5
+ extend ActiveSupport::Concern
6
+
7
+ def ==(other)
8
+ hash == other.hash
9
+ end
10
+ alias_method :eql?, :==
11
+ end
12
+ end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Tablesalt
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.15.0"
5
+ VERSION = "0.15.1"
6
6
  end
data/lib/tablesalt.rb CHANGED
@@ -6,5 +6,6 @@ require "short_circu_it"
6
6
  require "tablesalt/version"
7
7
 
8
8
  require "tablesalt/stringable_object"
9
+ require "tablesalt/uses_hash_for_equality"
9
10
 
10
11
  module Tablesalt; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tablesalt
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
  - Jordan Minneti
@@ -50,6 +50,7 @@ files:
50
50
  - README.md
51
51
  - lib/tablesalt.rb
52
52
  - lib/tablesalt/stringable_object.rb
53
+ - lib/tablesalt/uses_hash_for_equality.rb
53
54
  - lib/tablesalt/version.rb
54
55
  homepage: https://github.com/Freshly/spicerack/tree/master/tablesalt
55
56
  licenses: