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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68568324cd3702ff7d9fcb81ab3ff0c28872b64aae1159a408a7ca712828e5cd
4
- data.tar.gz: 9a935e5afdc2a19fd050b1fd7dac4fd6a0c4c3c9c6bfced6d227dcac73bb267a
3
+ metadata.gz: 21a376418607624f09eee0d544f6713a84623e5229e857544fa9029734dd5d77
4
+ data.tar.gz: b37e5e8a256eed89ac9b5bef9a00174d4c14db4907cea7bb59deaa7dd980238f
5
5
  SHA512:
6
- metadata.gz: cb0b3390ee788d9071941d7b2925875ddc6151e4804b6682cb397703452d6e4f119889f3564adb9c51c5e7d869341c26a38177212ab23768cf2ebd92d1d784fc
7
- data.tar.gz: f056e79be5aa6d75367272f2c8935c7d9842cf4c8c607b5353d2016937f1efd1dcf3a8652529dde7730e6a694eac34044cbc7427b260f1ba1bbb9b4a220e1743
6
+ metadata.gz: 45852b79b8669cefd557274d2d2af98b84df92c0ba239302966b3bc2057c4c5f41d171f389ac9cbb40726d56297506459130a35eea14fa7f9f4ab7a13f5271ca
7
+ data.tar.gz: 21d21fd326a4a9641fc13dc2c26d1a507b006a776f9234f266dff12dbbe74cf8c3911317a87017fb39242c05b90df1c342047b857ba27b38b5c5c1366b31762c
@@ -1,3 +1 @@
1
- D�|��o���6Ђ��iA{�����lV�6��
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
@@ -1,3 +1,10 @@
1
+ ## v0.8.0 [2018-07-18] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Enhancements:
4
+
5
+ - Add the equality operator to Chione::Entity.
6
+
7
+
1
8
  ## v0.7.0 [2018-07-11] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  Enhancements:
@@ -12,7 +12,7 @@ module Chione
12
12
  extend Loggability
13
13
 
14
14
  # Gem version
15
- VERSION = '0.7.0'
15
+ VERSION = '0.8.0'
16
16
 
17
17
 
18
18
  # Loggability API -- set up a log host
@@ -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
  #########
@@ -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.7.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-11 00:00:00.000000000 Z
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