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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92ea1b7d7874b1e6ee6596e7d1ff74934ff7faaf
4
- data.tar.gz: e2da03ccffe38c5d4a07b47c4ade629daa5daf37
3
+ metadata.gz: 94aae14ff4de08a20726540d5b43141bbbdc8d24
4
+ data.tar.gz: b63c09ef0f0299d85f3a65fd0cb4bf1c6de39c87
5
5
  SHA512:
6
- metadata.gz: bff09ba36627ace4931fde461587d988b6cb46033af254d5445d4494711f8254e90821303a40a4437af06627d5437124f65b9e81cb49fcc62e3189fdaf52d150
7
- data.tar.gz: 917f13107b5a9ee8abc8459434a91421ff150d4e7c970d064e625151eee619d6f3386b62b98b0a7657fe316d9500dddf5045661536ad61d7496c73049dda7f70
6
+ metadata.gz: b1399b95a5dc17b649cd11da703f255278b54ecd6b1088be0a06be14b6666b0a0e5856ce3a89332631ed0daf65aaa3eab388e3679d49cef406ab195dcd2a78eb
7
+ data.tar.gz: be8217e6295ed0731fc35e93cec412ffb15200627eab2afcb32a73f6cefd4c2e6f36b1c0e59f7769b639d7878bdf2caf34167a32a455f33e6427c7f20f0f9ffc
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Drsi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drsi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorenzo Tello