mushin 0.0.0.pre11 → 0.0.0.pre12
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 +1 -37
- 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: 69c4849ab80cb7ffc74416803b51ecd4b24ad415
|
4
|
+
data.tar.gz: 7bc1fd7dbfa0a41611ef55865c4dc3b64da6913a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93215756028220250ce90316749905e8360eddafe65486351f167b07e67024b3c30e0cf89ff472df1f23c76f6af0eb916de8bf8af9e3c704ae236e11fddeb093
|
7
|
+
data.tar.gz: 6d7fccffab091c3117d7aa191fc9d06b761e5692bbf7375f28d3866adf3a78ae6a2d0ffa6a1312640f8a391473934118caa971c3be72b55eda565b32fb7ecbc8
|
data/lib/mushin/base.rb
CHANGED
@@ -51,10 +51,6 @@ module Mushin
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
54
|
-
#@@middlewares.each do |middleware|
|
55
|
-
# p "use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
56
|
-
#use middleware.name, middleware.opts, middleware.params
|
57
|
-
#end
|
58
54
|
@@middlewares
|
59
55
|
end
|
60
56
|
|
@@ -88,38 +84,6 @@ module Mushin
|
|
88
84
|
alias_method context_construct, :context
|
89
85
|
end
|
90
86
|
end
|
91
|
-
|
92
|
-
=begin
|
93
|
-
class Activities
|
94
|
-
def self.on domain_context, &block
|
95
|
-
|
96
|
-
@@domain_context = domain_context
|
97
|
-
@@activities = []
|
98
|
-
|
99
|
-
def add activity=[]
|
100
|
-
@@activities += [activity]
|
101
|
-
end
|
102
|
-
|
103
|
-
yield Activities.new
|
104
|
-
|
105
|
-
def self.construction game, activity
|
106
|
-
Mushin::Engine.run game, activity
|
107
|
-
end
|
108
|
-
|
109
|
-
@@activities.each do |activity|
|
110
|
-
self.construction @@domain_context, activity
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
def self.domain_context
|
115
|
-
@@domain_context
|
116
|
-
end
|
117
|
-
|
118
|
-
def self.all
|
119
|
-
@@activities
|
120
|
-
end
|
121
|
-
end
|
122
|
-
=end
|
123
87
|
end
|
124
88
|
|
125
89
|
class Env
|
@@ -143,7 +107,7 @@ module Mushin
|
|
143
107
|
end
|
144
108
|
instance_eval(&block)
|
145
109
|
@@activities.each do |activity|
|
146
|
-
Mushin::Engine.setup [GameOn::Persistence::DS]
|
110
|
+
#Mushin::Engine.setup [GameOn::Persistence::DS]
|
147
111
|
Mushin::Engine.run @@domain_context, activity
|
148
112
|
end
|
149
113
|
end
|