store_model 0.10.0 → 0.11.0

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: 1c612c06744ac1427fd3c3d718e414592ce983734f6aa547e7ffe052b6ac0ef3
4
- data.tar.gz: 349b6f3625d2d94a585c119a3e2080519f9509ee738633062a95364ffd47eb98
3
+ metadata.gz: 3f94bfdbb51a596617e73ce1df8cffc444906bbbb2f2815f603b487673ac4038
4
+ data.tar.gz: 85545a53223eee0ab626d6f2c21974270cb16505c239308c656bf84d24bda54c
5
5
  SHA512:
6
- metadata.gz: d1df9be55ae81ae2648a1d1c9dc287731ae2954cbfbe9ea618d27aa50b954e5c867900b147aa7ede58382ecf21fcba8e62e6f1b2571700e1e64e76c834c16f69
7
- data.tar.gz: 9224ce8f181e58f02e0fec9864acf1ba4c22e8a575d40ad6e3a66e354178c4c2b4478cb19e8290304da98fe06b0d862fd8da558f71f91ae4dc577d1f2a827000
6
+ metadata.gz: 9b8dd9df6fd3f0c3d4307e647b95e7e568cf84a177b91d5e2c6fcb6a5ab8dfc8be3dfaa6f71b4bc352f0889b4f64c7f8bba46785d2882cbe83f6b299fd333385
7
+ data.tar.gz: b05e55818779210c5d1fe6458316f51b940adc09e51521c431eef470d09ba7cecfb6233dcf42b22238e3889fa43c2e9298f1e5895d5b3f1ba538d4b767a80ea3
@@ -43,6 +43,13 @@ module StoreModel
43
43
  attributes.all? { |name, value| value == other.attributes[name] }
44
44
  end
45
45
 
46
+ # Returns hash for a StoreModel::Model instance based on attributes hash
47
+ #
48
+ # @return [Integer]
49
+ def hash
50
+ attributes.hash
51
+ end
52
+
46
53
  # Allows to call :presence validation on the association itself.
47
54
  #
48
55
  # @return [Boolean]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StoreModel # :nodoc:
4
- VERSION = "0.10.0"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord