drsi 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/drsi/dci/context.rb +1 -1
- data/lib/drsi/version.rb +1 -1
- data/spec/multiplayers_spec.rb +0 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94aae14ff4de08a20726540d5b43141bbbdc8d24
|
4
|
+
data.tar.gz: b63c09ef0f0299d85f3a65fd0cb4bf1c6de39c87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1399b95a5dc17b649cd11da703f255278b54ecd6b1088be0a06be14b6666b0a0e5856ce3a89332631ed0daf65aaa3eab388e3679d49cef406ab195dcd2a78eb
|
7
|
+
data.tar.gz: be8217e6295ed0731fc35e93cec412ffb15200627eab2afcb32a73f6cefd4c2e6f36b1c0e59f7769b639d7878bdf2caf34167a32a455f33e6427c7f20f0f9ffc
|
data/lib/drsi/dci/context.rb
CHANGED
@@ -112,7 +112,7 @@ module DCI
|
|
112
112
|
# Non players args are associated to instance_variables and readers defined.
|
113
113
|
def initialize(args={})
|
114
114
|
check_all_roles_provided_in!(args)
|
115
|
-
players, noplayers = args.partition {|key, *| roles.has_key?(key)}.map {|group| Hash[*group.flatten]}
|
115
|
+
players, noplayers = args.partition {|key, *| roles.has_key?(key)}.map {|group| Hash[*group.flatten(1)]}
|
116
116
|
@_players = players
|
117
117
|
@settings = noplayers
|
118
118
|
end
|
data/lib/drsi/version.rb
CHANGED
data/spec/multiplayers_spec.rb
CHANGED
@@ -19,11 +19,6 @@ describe 'Role MultiPlayers' do
|
|
19
19
|
def private_role2method2; :private_rolemethod_return_value end
|
20
20
|
end
|
21
21
|
|
22
|
-
def check_role1_identity(obj)
|
23
|
-
[role1 == obj, role1.role1self == obj, role1.respond_to?(:role1method1), obj.respond_to?(:role1method1),
|
24
|
-
role1.role1method1 == :role1method1_executed, obj.role1method1 == :role1method1_executed].uniq == [true]
|
25
|
-
end
|
26
|
-
|
27
22
|
def get_role2_from_role1
|
28
23
|
role1.send(:role2)
|
29
24
|
end
|
@@ -127,8 +122,6 @@ describe 'Role MultiPlayers' do
|
|
127
122
|
(@player22.private_methods.map(&:to_s) & ['role1', 'context', 'settings']).should be_empty
|
128
123
|
end
|
129
124
|
|
130
|
-
|
131
|
-
|
132
125
|
end
|
133
126
|
|
134
127
|
end
|