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 +4 -4
- checksums.yaml.gz.sig +3 -1
- data.tar.gz.sig +0 -0
- data/History.md +11 -0
- data/lib/chione.rb +2 -2
- data/lib/chione/world.rb +11 -0
- data/spec/chione/world_spec.rb +18 -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: f79e1ce68e857e154cee554ac5638a9423c0ac365204c8267476e78b9f8ea6b0
|
|
4
|
+
data.tar.gz: c9e68076453d72b9c3c63e62586a95a6900aabd580d91cba01af632cc9bebcdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45e2873d3323d9952c9cab59a5a6ca66ba07b1133aae4b8aacd7d977189786882362b7594c65710c57f05bb8b08e7fb14928d33eca11ed67210e3ed0c7eb0e42
|
|
7
|
+
data.tar.gz: 7c9094eac8a36a7895888ebf2a3375deba2bb9806f048af3e7b897a713ba2b1b2c4e41f9c74fd75609fb676751a403d13f6991963f0292622279ac7efca8de6e
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
+w�M^�*�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
data/lib/chione.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Chione
|
|
|
12
12
|
extend Loggability
|
|
13
13
|
|
|
14
14
|
# Gem version
|
|
15
|
-
VERSION = '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}"
|
data/lib/chione/world.rb
CHANGED
|
@@ -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
|
data/spec/chione/world_spec.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|