chione 0.7.0 → 0.8.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
- checksums.yaml.gz.sig +1 -3
- data.tar.gz.sig +0 -0
- data/History.md +7 -0
- data/lib/chione.rb +1 -1
- data/lib/chione/entity.rb +9 -0
- data/spec/chione/entity_spec.rb +14 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21a376418607624f09eee0d544f6713a84623e5229e857544fa9029734dd5d77
|
|
4
|
+
data.tar.gz: b37e5e8a256eed89ac9b5bef9a00174d4c14db4907cea7bb59deaa7dd980238f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45852b79b8669cefd557274d2d2af98b84df92c0ba239302966b3bc2057c4c5f41d171f389ac9cbb40726d56297506459130a35eea14fa7f9f4ab7a13f5271ca
|
|
7
|
+
data.tar.gz: 21d21fd326a4a9641fc13dc2c26d1a507b006a776f9234f266dff12dbbe74cf8c3911317a87017fb39242c05b90df1c342047b857ba27b38b5c5c1366b31762c
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
3pz�U������������ 5�w�e��������L�c5t$�v @����釻v�]�R�p�<�ftU2f��dY����?�Fz�D�#�s{eS=
|
|
3
|
-
���orb1*v&Hb��!�R�?0D¼"�QR���6�z�ᶪ�$�"IM.E��?D��M���(�lJ��>A����l��R>E�*�sn�+#Ԋ0ǭ%~ܶd�*)�I0iP�����<A�a�����=��TbA� ��N�e����B�X푝jM��pZ5�mi�GCP�����Q��ѷ�b��a�.�-�*"$6�pj���d�B�f���� ���^�!��؍���@��p*%
|
|
1
|
+
��?F��Յ��� k_I��W*���g����=�;cۥk5����rX�Ε���� ��<7�`�t�ۇ��
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.md
CHANGED
data/lib/chione.rb
CHANGED
data/lib/chione/entity.rb
CHANGED
|
@@ -80,6 +80,15 @@ class Chione::Entity
|
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
### Equality operator -- returns +true+ if the receiver and +other+ belong to
|
|
84
|
+
### the same world, have the same ID, and have equal components.
|
|
85
|
+
def ==( other )
|
|
86
|
+
return other.instance_of?( self.class ) &&
|
|
87
|
+
self.id == other.id
|
|
88
|
+
end
|
|
89
|
+
alias_method :eql?, :==
|
|
90
|
+
|
|
91
|
+
|
|
83
92
|
#########
|
|
84
93
|
protected
|
|
85
94
|
#########
|
data/spec/chione/entity_spec.rb
CHANGED
|
@@ -138,6 +138,20 @@ describe Chione::Entity do
|
|
|
138
138
|
).to be_nil
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
+
|
|
142
|
+
it "is equal to another instance if they have the same ID" do
|
|
143
|
+
other_entity = described_class.new( entity.world, entity.id )
|
|
144
|
+
|
|
145
|
+
expect( entity ).to eq( other_entity )
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
it "is not equal to an instance of another class" do
|
|
150
|
+
other_object = Chione::Aspect.new
|
|
151
|
+
|
|
152
|
+
expect( entity ).to_not eq( other_object )
|
|
153
|
+
end
|
|
154
|
+
|
|
141
155
|
end
|
|
142
156
|
|
|
143
157
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chione
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Granger
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
X0qdrKi+2aZZ0NGuFj9AItBsVmAvkBGIpX4TEKQp5haEbPpmaqO5nIIhV26PXmyT
|
|
36
36
|
OMKv6pWsoS81vw5KAGBmfX8nht/Py90DQrbRvakATGI=
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2018-07-
|
|
38
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: loggability
|
metadata.gz.sig
CHANGED
|
Binary file
|