mushin 0.0.0.pre10 → 0.0.0.pre11
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
- data/lib/mushin/base.rb +3 -20
- 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: fde05e6ae369f23fbce12c733f4501a756cbbf6a
|
4
|
+
data.tar.gz: 914ef424ab19730468d800babc0077ed3d082c25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50a89ed803083cce60a4764b282ec14c85ea86b4b71d20897fb42538ab12f8fc4bfbffa380e30c681b89250326585dcc4e71701ac78ef6077df71c57581f026
|
7
|
+
data.tar.gz: 36c9e96a0045a484c477e86a256d3065670efa9804a9ff1b3cd60f67e34578bd07603369d1a9930e00321e3f418714a614343340837edac345a5dcc342914869
|
data/lib/mushin/base.rb
CHANGED
@@ -51,11 +51,10 @@ module Mushin
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
54
|
-
|
55
|
-
|
56
|
-
p "use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
54
|
+
#@@middlewares.each do |middleware|
|
55
|
+
# p "use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
57
56
|
#use middleware.name, middleware.opts, middleware.params
|
58
|
-
end
|
57
|
+
#end
|
59
58
|
@@middlewares
|
60
59
|
end
|
61
60
|
|
@@ -129,7 +128,6 @@ module Mushin
|
|
129
128
|
end
|
130
129
|
|
131
130
|
def Env.register &block
|
132
|
-
#instance_eval &block
|
133
131
|
class_eval &block
|
134
132
|
end
|
135
133
|
|
@@ -143,26 +141,12 @@ module Mushin
|
|
143
141
|
end
|
144
142
|
instance_eval(&block)
|
145
143
|
end
|
146
|
-
#yield Env.new
|
147
144
|
instance_eval(&block)
|
148
145
|
@@activities.each do |activity|
|
149
|
-
p activity
|
150
|
-
#self.construction @@domain_context, activity
|
151
146
|
Mushin::Engine.setup [GameOn::Persistence::DS]
|
152
147
|
Mushin::Engine.run @@domain_context, activity
|
153
148
|
end
|
154
149
|
end
|
155
|
-
|
156
|
-
=begin
|
157
|
-
def self.construction game, activity
|
158
|
-
Mushin::Engine.run game, activity
|
159
|
-
end
|
160
|
-
|
161
|
-
@@activities.each do |activity|
|
162
|
-
self.construction @@domain_context, activity
|
163
|
-
end
|
164
|
-
=end
|
165
|
-
|
166
150
|
end
|
167
151
|
|
168
152
|
module Engine
|
@@ -171,7 +155,6 @@ module Mushin
|
|
171
155
|
end
|
172
156
|
|
173
157
|
def Engine.run domain_context, activity
|
174
|
-
p 'Mushin::Engine is running'
|
175
158
|
@@domain_context = domain_context
|
176
159
|
@@activity = activity
|
177
160
|
|