definition 0.8.0 → 0.8.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: 9e79beba1853328e9b03847f3b8f9b3a088d381965cba2fd1ccedd283b57bd0c
4
- data.tar.gz: b0835b29633b6887e39bbb6b6d34146c6870a13ab82415492e70050a9727831c
3
+ metadata.gz: 655f6829758cc85e1efc33680f590a54006043b15c785f4ee35297bb8fcefc6b
4
+ data.tar.gz: 4d0ee181accc4325fbf25da77bee5fe016faf4f2bbf8d68db92469edc054b88f
5
5
  SHA512:
6
- metadata.gz: ca5aae1db840f6ee3b45fd59cf8698a66a83a5d40d7f5f06be1413c0ce40ee979932382e4e3c866423faffda6a113f6f926053b84a76bd5986ba68eb37cda2f8
7
- data.tar.gz: 86c2aad58a186b58f71f43f4e5a137ced0e2f472d1ee5bcd970045b76e252fa6ef2b258e005d9ffa169b0cbe7dea028d6e4ec3cda21dd38d4e23dc337e3ad330
6
+ metadata.gz: e9e5f6d19ca60ae2ffb0d00fb42045c1404bd24d90a001e4bc393732285571465b254efbc6532722825e4880093d30bf505859305fcab15d32898787d1a73799
7
+ data.tar.gz: 8a544b9c0fc1623d621973c95e3b9a734e39648262b946046be3a33735762de51367ec1fc8f9aab05785a62e41daf55e4e2011e263cc147bdd16664d4a0f054c
data/Changelog.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [0.8.1] - 2022-10-05
10
+ ### Fixed
11
+ - Definition::Model#eql? returns true when comparing two models with the same content
12
+
9
13
  ## [0.8.0] - 2022-10-05
10
14
  ### Added
11
15
  - A Definition::Initializer mixin that can be used to validate keyword arguments of a class constructor
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- definition (0.8.0)
4
+ definition (0.8.1)
5
5
  activesupport
6
6
  i18n
7
7
 
@@ -55,7 +55,12 @@ module Definition
55
55
  def ==(other)
56
56
  return false unless other.is_a?(self.class)
57
57
 
58
- @_attributes == other.instance_variable_get(:@_attributes)
58
+ @_attributes.hash == other.instance_variable_get(:@_attributes).hash
59
+ end
60
+ alias eql? ==
61
+
62
+ def hash
63
+ @_attributes.hash
59
64
  end
60
65
 
61
66
  def to_h
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Definition
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: definition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Goltermann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-05 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport