mushin 0.0.0.pre8 → 0.0.0.pre9

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mushin/base.rb +33 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71fba5c63ac162148f35a69217dc393ccacfbc41
4
- data.tar.gz: 2f77333bfb99970b6b45b9c94953dcd73f843172
3
+ metadata.gz: f737898aa38bea32ac9f1fbbd68e47c5bd063e76
4
+ data.tar.gz: a63c700c3a4c58868607fab997ef0ffddaf5f4c6
5
5
  SHA512:
6
- metadata.gz: 2373b71bd8d9a021e79f7decc8e0f273aebeab5699aaabd6050d873806cce3e193c4d5c0003bd16b2ea0a29e7984a2a64f90ade0be2919496bc3d0204c2524be
7
- data.tar.gz: a54246bf01bd88aa05ea209ba36999c5f8ff3839e256b7d480f81607df05b5184a0c5f8c26545c45df856e291de1ca4cedae341d9059e78b3ece410b2f604e69
6
+ metadata.gz: 808dd0df4f5412c852a7060dc2311e8aaff0a03ccadb1d59cb189a970209dd4d3d866dc246a03d599600fe299b721b00762901792f1a6aa5958d18dc8a736e9b
7
+ data.tar.gz: 1ee9672eb49c90f792133cad9a240ab5b1547c5abff7103275ec66243f0af4579060acb4a87ebb2d43e535811717d261c195f336ceca291c259f4cb101c43ef2
data/lib/mushin/base.rb CHANGED
@@ -36,9 +36,6 @@ module Mushin
36
36
  puts "#{self} extended in #{mod}"
37
37
  #self.send(:include, mod)
38
38
  mod.send(:include, self)
39
- def mod.method_added(method_name)
40
- puts "Adding #{method_name.inspect}"
41
- end
42
39
  end
43
40
 
44
41
  def self.find activity_context, activity_statment
@@ -93,7 +90,7 @@ module Mushin
93
90
  end
94
91
  end
95
92
 
96
-
93
+ =begin
97
94
  class Activities
98
95
  def self.on domain_context, &block
99
96
 
@@ -106,6 +103,10 @@ module Mushin
106
103
 
107
104
  yield Activities.new
108
105
 
106
+ def self.construction game, activity
107
+ Mushin::Engine.run game, activity
108
+ end
109
+
109
110
  @@activities.each do |activity|
110
111
  self.construction @@domain_context, activity
111
112
  end
@@ -118,11 +119,8 @@ module Mushin
118
119
  def self.all
119
120
  @@activities
120
121
  end
121
-
122
- def self.count
123
- @@activities.count
124
- end
125
122
  end
123
+ =end
126
124
  end
127
125
 
128
126
  class Env
@@ -135,10 +133,35 @@ module Mushin
135
133
  class_eval &block
136
134
  end
137
135
 
138
- def Env.activate id, &block
136
+ def Env.activate id, &block
139
137
  @id = id
140
- yield
138
+ def self.on domain_context, &block
139
+ @@domain_context = domain_context
140
+ @@activities = []
141
+ def self.activity statment
142
+ @@activities += [statment]
143
+ end
144
+ instance_eval(&block)
145
+ end
146
+ #yield Env.new
147
+ instance_eval(&block)
148
+ @@activities.each do |activity|
149
+ p activity
150
+ #self.construction @@domain_context, activity
151
+ Mushin::Engine.run @@domain_context, activity
152
+ end
141
153
  end
154
+
155
+ =begin
156
+ def self.construction game, activity
157
+ Mushin::Engine.run game, activity
158
+ end
159
+
160
+ @@activities.each do |activity|
161
+ self.construction @@domain_context, activity
162
+ end
163
+ =end
164
+
142
165
  end
143
166
 
144
167
  module Engine
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre8
4
+ version: 0.0.0.pre9
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy