gameon 0.0.0.pre131 → 0.0.0.pre132
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +7 -11
- 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: 2b2d74e0deb17b1a0597e5f8fcb4fe91f4d01ce4
|
4
|
+
data.tar.gz: 8330082c1308cc65966f45a27019c687e9e25d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2e64ec69db3e777a9fe54ec815b85d44bf6587a66fc943630d5c568b8a058afc0dde9e88e7566284717eac52ad4abe6d81281b47d8bfcd00b5ef7dad88dd0a9
|
7
|
+
data.tar.gz: 7ce8004b59f0c8c0fba236865d25528b419174cec34595e2ba460c94e4a3bb4bb76585e77985bc48e2ec73d5c22626fb725eadfa05c890697c48149d2180cd71
|
data/lib/gameon/base.rb
CHANGED
@@ -46,21 +46,17 @@ module GameOn
|
|
46
46
|
module Engine
|
47
47
|
extend Mushin::Engine
|
48
48
|
class << self
|
49
|
-
|
50
|
-
#def run id, domain_context, activity
|
51
|
-
def run domain_context, activity
|
52
|
-
#@middlewares = GameOn::DSL.find domain_context, activity
|
53
|
-
|
49
|
+
def run id, domain_context, activity
|
54
50
|
stack = Mushin::Middleware::Builder.new do
|
55
|
-
|
51
|
+
use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
|
56
52
|
(GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
|
57
53
|
p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
58
54
|
use middleware.name, middleware.opts, middleware.params
|
59
55
|
end
|
60
56
|
end
|
61
|
-
|
62
|
-
|
63
|
-
end
|
57
|
+
#@setup_middlewares.each do |setup_middleware|
|
58
|
+
# stack.insert_before 0, setup_middleware
|
59
|
+
#end
|
64
60
|
stack.call
|
65
61
|
end
|
66
62
|
end
|
@@ -120,10 +116,10 @@ module GameOn
|
|
120
116
|
# [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]].each do |e|
|
121
117
|
# p "#{e[0]}, #{e[1]}, #{e[2]}"
|
122
118
|
# end
|
123
|
-
GameOn::Engine.setup "#{Object.const_get('GameOn::Persistence::DS')}, #{{}}, #{{:id => @id}}"
|
119
|
+
#GameOn::Engine.setup "#{Object.const_get('GameOn::Persistence::DS')}, #{{}}, #{{:id => @id}}"
|
124
120
|
|
125
121
|
@activities.uniq.each do |current_activity_title|
|
126
|
-
GameOn::Engine.run @current_context_title, current_activity_title
|
122
|
+
GameOn::Engine.run @id, @current_context_title, current_activity_title
|
127
123
|
end
|
128
124
|
#@activities = [] # reset the activities
|
129
125
|
return GameOn::Persistence::DS.load @id
|