chione 0.9.0 → 0.10.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: 499f4f5ac15a4abdc2e443cc3cb89c0961be6fecb97251e014199cfb0ba82dde
4
- data.tar.gz: f0cc3da0ebcb1a8aea02cf10dac2eeb7bd26986df587db3a39238bbff69133a1
3
+ metadata.gz: f79e1ce68e857e154cee554ac5638a9423c0ac365204c8267476e78b9f8ea6b0
4
+ data.tar.gz: c9e68076453d72b9c3c63e62586a95a6900aabd580d91cba01af632cc9bebcdc
5
5
  SHA512:
6
- metadata.gz: bfeda410c67704987bc1b049f9fe2b2521bfce8411d4360d878db767883590b874e165e6c965b68f1181d82fde2305fe36a93fb3d7d9941a2f8b477c97950132
7
- data.tar.gz: eeddaa0889e2e6dc59f7c8f9e217a8c6a72902449bab6e7f397b232dfb4da114b07873b1fa6d9a991abecd118ad1403be203983e6c96922d30d9afe7dd666b53
6
+ metadata.gz: 45e2873d3323d9952c9cab59a5a6ca66ba07b1133aae4b8aacd7d977189786882362b7594c65710c57f05bb8b08e7fb14928d33eca11ed67210e3ed0c7eb0e42
7
+ data.tar.gz: 7c9094eac8a36a7895888ebf2a3375deba2bb9806f048af3e7b897a713ba2b1b2c4e41f9c74fd75609fb676751a403d13f6991963f0292622279ac7efca8de6e
@@ -1 +1,3 @@
1
- ��G&/�9Cߎ�D�h�צ���`>3�����|SRF�s���,꺅�1���0-� ��D�ϳ�4tu�߲��[6���0?T3����q.��)}AwQK[��cs��C!�d\�,�A7�����a�X��m��Z'����e�Z���Y��<�O�.���+�@&"Ɏ5d��� ��)��|7O�}����9���J?��Y��&�W{z�u�y�)e�2X���z��3��2,N?y=N=+5q흵qs� %��:�8U�z��-�J�= B��uDkiݴ�Ȉo^c>�X(� (��!N�cO�Y�b��Y��_�"-�һ�!H]��?U~��Z�Z��익h�犦��H��(+U�8�{%� �Y,^޼&��
1
+ +wM^�*�L�Z�F��Z`�� &l*Rں|lIw�ӥ�׫�vK[�@.Z�򜘭�a,8�/wT�t_��6o츚�8��bD����,��l(��
2
+ �z���ʫ�$�S7�+�:�#;f�����Q�F� ~Αt�ƛ�����w�|�|u1d���
3
+ ��yhG�F���pw����I��6{+����1{��[�eMRoN��|�dvĹt.�|i�dJ��G &��=������d�Q���P=xC��\� �ٻ�U��{��d� 7[��w�,!������i$a�6^�\��ĩ.2C����7`gȼ���Djv�� PZ���纏�uh�٣O}pBr�f � =_D2��^�����SZ;�|k��{u8��,ς��C�
data.tar.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## v0.10.0 [2018-07-20] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Enhancements:
4
+
5
+ - Add World#status.
6
+
7
+ Bugfixes:
8
+
9
+ - Fixed deprecation code for Assemblage.
10
+
11
+
1
12
  ## v0.9.0 [2018-07-19] Michael Granger <ged@FaerieMUD.org>
2
13
 
3
14
  Enhancements:
@@ -12,7 +12,7 @@ module Chione
12
12
  extend Loggability
13
13
 
14
14
  # Gem version
15
- VERSION = '0.9.0'
15
+ VERSION = '0.10.0'
16
16
 
17
17
 
18
18
  # Loggability API -- set up a log host
@@ -49,7 +49,7 @@ module Chione
49
49
 
50
50
  ### Warn about deprecated constants.
51
51
  def self::const_missing( name )
52
- super unless name == :Assemblage
52
+ return super unless name == :Assemblage
53
53
  warn "Chione::Assemblage has been renamed to Chione::Archetype. " \
54
54
  "This alias will be removed before 1.0\n" \
55
55
  "Used at #{caller(1).first}"
@@ -110,6 +110,17 @@ class Chione::World
110
110
  attr_reader :deferred_events
111
111
 
112
112
 
113
+ ### Return a Hash of information about the world suitable for display in tools.
114
+ def status
115
+ return {
116
+ versions: { chione: Chione::VERSION },
117
+ tick: self.tick_count,
118
+ systems: self.systems.keys.map( &:name ),
119
+ managers: self.managers.keys.map( &:name )
120
+ }
121
+ end
122
+
123
+
113
124
  ### Start the world; returns the Thread in which the world is running.
114
125
  def start
115
126
  @main_thread = Thread.new do
@@ -34,6 +34,7 @@ describe Chione::World do
34
34
  end
35
35
  end
36
36
  end
37
+
37
38
  let( :test_manager ) do
38
39
  Class.new( Chione::Manager ) do
39
40
  def self::name; "TestManager"; end
@@ -91,6 +92,23 @@ describe Chione::World do
91
92
  end
92
93
 
93
94
 
95
+ it "can return a Hash of status information" do
96
+ world.tick_count = 131
97
+ world.add_system( test_system )
98
+ world.add_manager( test_manager )
99
+
100
+ result = world.status
101
+
102
+ expect( result ).to be_a( Hash )
103
+ expect( result ).to include(
104
+ versions: a_hash_including( chione: Chione::VERSION ),
105
+ tick: 131,
106
+ systems: an_instance_of( Array ).and( include 'TestSystem' ),
107
+ managers: an_instance_of( Array ).and( include 'TestManager' )
108
+ )
109
+ end
110
+
111
+
94
112
  describe "configuration" do
95
113
 
96
114
  it "is done via the Configurability API" do
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.9.0
4
+ version: 0.10.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-19 00:00:00.000000000 Z
38
+ date: 2018-07-20 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: loggability
metadata.gz.sig CHANGED
Binary file