sorbet-struct-comparable 1.2.0 → 1.3.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sorbet-struct-comparable/version.rb +1 -1
- data/lib/t/struct/acts_as_comparable.rb +5 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 250d183579edd0b3cec7a62398e1eb966c30d1cadf2bde41ea1f860680342d75
|
|
4
|
+
data.tar.gz: a7e47b96f4d5680bb3d099b47db1d55c2efca2f4fa7dfc6cf3670151367b3077
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bf7a867ac5245cdb856ab66a2254e12882f445bfb4ab08723b1289f2c40559b15e6a864bfe0811b74eccab0023703c36a19773d20c9a87f4767ab229efad115
|
|
7
|
+
data.tar.gz: c37da47bfddd23095bcc91f78564008038296cea1fcf439b84ce5e5592c2153c88c8da1177fed847f43b4abbc25cdc9afd20bbb7fc2b6aa52af4a677baaa2fb5
|
data/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,11 @@ module T
|
|
|
22
22
|
return EQUAL
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
sig { params(other: Object).returns(T::Boolean) }
|
|
26
|
+
def eql?(other)
|
|
27
|
+
self == other
|
|
28
|
+
end
|
|
29
|
+
|
|
25
30
|
sig { returns(Integer) }
|
|
26
31
|
def hash
|
|
27
32
|
T.unsafe(self).class.decorator.props.keys.map { |attribute_key| T.unsafe(self).send(attribute_key).hash }.hash
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sorbet-struct-comparable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bellroy Tech Team
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 1980-01-01 00:00:00.000000000 Z
|
|
@@ -80,7 +80,7 @@ dependencies:
|
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0.5'
|
|
83
|
-
description:
|
|
83
|
+
description:
|
|
84
84
|
email:
|
|
85
85
|
- michael.webb@bellroy.com
|
|
86
86
|
- sam@samuelgil.es
|
|
@@ -136,7 +136,7 @@ metadata:
|
|
|
136
136
|
homepage_uri: https://github.com/bellroy/sorbet-struct-comparable
|
|
137
137
|
source_code_uri: https://github.com/bellroy/sorbet-struct-comparable
|
|
138
138
|
changelog_uri: https://github.com/bellroy/sorbet-struct-comparable/blob/master/CHANGELOG.md
|
|
139
|
-
post_install_message:
|
|
139
|
+
post_install_message:
|
|
140
140
|
rdoc_options: []
|
|
141
141
|
require_paths:
|
|
142
142
|
- lib
|
|
@@ -151,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: '0'
|
|
153
153
|
requirements: []
|
|
154
|
-
rubygems_version: 3.
|
|
155
|
-
signing_key:
|
|
154
|
+
rubygems_version: 3.2.16
|
|
155
|
+
signing_key:
|
|
156
156
|
specification_version: 4
|
|
157
157
|
summary: Comparable T::Struct's for the equality focused typed Ruby developer.
|
|
158
158
|
test_files: []
|