definition 0.8.0 → 0.8.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 +4 -4
- data/Changelog.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/definition/model.rb +6 -1
- data/lib/definition/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 655f6829758cc85e1efc33680f590a54006043b15c785f4ee35297bb8fcefc6b
|
|
4
|
+
data.tar.gz: 4d0ee181accc4325fbf25da77bee5fe016faf4f2bbf8d68db92469edc054b88f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/lib/definition/model.rb
CHANGED
|
@@ -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
|
data/lib/definition/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|