virtual_assembly-semantizer 1.0.5 → 1.1.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: fe29003dc39de713a7bc46b5874cbae84b7b67bf37174cf77359a4a07e26ec20
4
- data.tar.gz: a4c3cf7410d3440cbd164482eba1ec14749056639b19adc49e752dcdbab85f33
3
+ metadata.gz: ff8073ee3f4e317ed4b2768f4f8decfb1f34db0fb41d7247ffb9857e652f2851
4
+ data.tar.gz: 1a22bde6e63efb0ce8a2954bb3cda173250ecd12e17a5bd0a8b2bc16922bba1d
5
5
  SHA512:
6
- metadata.gz: 6cb10e4e1edb5c51ee937d6daf6d2687e2b6ad4130cc1eaf9a492d4f785885ce59a52354012978f64ff6b1327d0df88a0159ed3da76e5373ba42f12e2f1d3bc8
7
- data.tar.gz: 92671cd75919f29ccd2ea99fe00611ce41598ff48e076872ebe19db7190220fb1f4f5b5c72bf592e966e5631edd94ad572f4ddf7c21216c74e2ab97d75d35166
6
+ metadata.gz: 3dc9607f1388cce8be64daa78842512c921ff28d70428953f3bd713a1820cf2375ad5a9b495f690267a3804d2a36ab7a3b70ed39af40a85f9c848599244aacf5
7
+ data.tar.gz: 956db524a38cfb0f81334a53333db86667ce5157456049b9895bda87e0785ff50ad8efe2fc14dd9cd94681e90acb78fad938e261c78fc32c331fc9aaa2047ec4
@@ -141,6 +141,12 @@ module VirtualAssembly
141
141
  serializer.process(self)
142
142
  end
143
143
 
144
+ def ==(other)
145
+ return false unless other.respond_to?(:semanticProperties)
146
+
147
+ semanticProperties == other.semanticProperties
148
+ end
149
+
144
150
  protected
145
151
 
146
152
  # If the semantic property already exist in this object, this
@@ -72,6 +72,10 @@ module VirtualAssembly
72
72
  def value=(new_value)
73
73
  @valueSetter.call(new_value)
74
74
  end
75
+
76
+ def ==(other)
77
+ other && name == other.name && value == other.value
78
+ end
75
79
  end
76
80
  end
77
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtual_assembly-semantizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Lecoq
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-10 00:00:00.000000000 Z
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-ld