evt-schema 2.2.8.0 → 2.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/schema/schema.rb +6 -0
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94736ae92e68e59dfefff646d9badab3e2cfaca3473e73ca63a9f89a955642df
4
- data.tar.gz: 493fb2b4ead8fb99964f5af02b153f8e4d0c59184fd2bd62799165817c627ef6
3
+ metadata.gz: 6298a47ba57d055166492488cc80134821dc6c8854623a1828ab126beeb2f05f
4
+ data.tar.gz: c8bbcbc6d8ada0ce2169b1aa35cba6f117bd03928511d320fa4040820a65cd0d
5
5
  SHA512:
6
- metadata.gz: 7d51cd1ee0d54afba9729353363db0a3dc19c70c88b641dea84a34c68c16664e2ddf8b82189c4aa3c2a53961733f39931c45eca8d65d4541b469a9ffe7e04fd6
7
- data.tar.gz: ac1509e0206ea9b2ba30721101cf0d6dc9010b5978f9c85f17fc17e2220bcd697f8c02d0bbbfae41123545a54f4bb55e0178b41362f333c6eecc1dc9fee68df8
6
+ metadata.gz: 1c0b44340c1d7dacb2eaff58411ddbf8e0decf77fc132590c290a7aed8314b719446076eb88e25ecd7a795ae1298e90416bd58f476a8ea5bc6a1ef89648ce5d8
7
+ data.tar.gz: bd84b8ee4f51e07275fc1b21bc44edc275cc33985bc0b20148a825fcd796bdd902e9fd4f17228e18493e08248c92b1c79c3597da9e6214ddeb3807a5f0fa04d6
@@ -184,6 +184,12 @@ module Schema
184
184
  end
185
185
 
186
186
  def ==(other, attributes_names=nil, ignore_class: nil)
187
+ ignore_class ||= false
188
+
189
+ if not ignore_class
190
+ return false if self.class != other.class
191
+ end
192
+
187
193
  comparison = Compare.(self, other, attributes_names)
188
194
 
189
195
  different = comparison.different?(ignore_class: ignore_class)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8.0
4
+ version: 2.3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-09 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-attribute
@@ -123,7 +123,7 @@ homepage: https://github.com/eventide-project/schema
123
123
  licenses:
124
124
  - MIT
125
125
  metadata: {}
126
- post_install_message:
126
+ post_install_message:
127
127
  rdoc_options: []
128
128
  require_paths:
129
129
  - lib
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  requirements: []
141
141
  rubygems_version: 3.1.2
142
- signing_key:
142
+ signing_key:
143
143
  specification_version: 4
144
144
  summary: Primitives for schema and data structure
145
145
  test_files: []