structure 2.1.0 → 2.2.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: d28935d786012d93c000fa620c3d2b0f803d7dac763651b08f481a75c7c47020
4
- data.tar.gz: a30fced89ecf18c01a6ce6ec992d819ae6ee29af1f6061811580fdd0d4351cd3
3
+ metadata.gz: ba7cfab709c0800d232bcf33dc717b38d884b8ad3322602701247d9af39e4297
4
+ data.tar.gz: efe78a271e6ddf19e641180bde8469f78f28c6e6a07fbe7b4cd2214460575336
5
5
  SHA512:
6
- metadata.gz: 95c9b8681c349bd345bd2122bec804de274ea43fdbd1184159ef2b7a37a16888bc887d3cca5307e9b1e3a69d885c9cfd313e22f8581689f97dc4c336dd34cd21
7
- data.tar.gz: 55606e2256adebc329f1778fc20ecd22b04943feafffde833559b35346fe3b0061c2d8ebcc977e743730c8728c194f0b3c2abe343ecbeed68725a67346feb3b4
6
+ metadata.gz: 499eb639627d1a27d8b80cbb3cab4e1725d41d108620f1166293b8c05c7c361945fb4680c8ac8ba1b56083d7b23cab14cc7ed0d09172f848149b7815b51ed016
7
+ data.tar.gz: 5dbea4b6be05e2ed97885c8b3031ce0d643f70722ab5627c6a1b4bdf258607153d9a6cb28b12a710268de1df30872b8cab41ea39a87ca86262f8f9d25c6d926a
data/lib/structure.rb CHANGED
@@ -43,7 +43,11 @@ module Structure
43
43
  alias to_s inspect
44
44
 
45
45
  def ==(other)
46
- attributes == other.attributes
46
+ if public_methods(false).include?(:<=>)
47
+ super
48
+ else
49
+ attributes == other.attributes
50
+ end
47
51
  end
48
52
 
49
53
  def eql?(other)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Structure
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-20 00:00:00.000000000 Z
11
+ date: 2019-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest