gameon 0.0.0.pre125 → 0.0.0.pre126
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/gameon/base.rb +5 -3
- 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: 4bfec88c888b44859ee334623b32302675532ee9
|
4
|
+
data.tar.gz: c1247a3d0d210c24f8f1da9ca937bc1f55a982d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56eb661367e1373f018321dc1665838bbbb9ea1325652484a7d2ec34496f634fcc176762cf0ae2ebab1b04fa901457dbfc9252b12e0d9c3d891cf2cf04d3d44c
|
7
|
+
data.tar.gz: bf5a45adcf8f140f7f16d59b8eeecb0f53fd8d9d368a39f0746df612969a475fcaf546fd7dff12e4178020fd8097f8949f9775fd0172448298a9945ea6ce63bf
|
data/lib/gameon/base.rb
CHANGED
@@ -47,9 +47,11 @@ module GameOn
|
|
47
47
|
extend Mushin::Engine
|
48
48
|
class << self
|
49
49
|
#attr_accessor :middlewares, :stack
|
50
|
-
def run domain_context, activity
|
50
|
+
def run id, domain_context, activity
|
51
51
|
#@middlewares = GameOn::DSL.find domain_context, activity
|
52
|
+
|
52
53
|
stack = Mushin::Middleware::Builder.new do
|
54
|
+
use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
|
53
55
|
(GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
|
54
56
|
p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
55
57
|
use middleware.name, middleware.opts, middleware.params
|
@@ -113,9 +115,9 @@ module GameOn
|
|
113
115
|
instance_eval(&block)
|
114
116
|
|
115
117
|
#GameOn::Env.id = @id
|
116
|
-
GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
|
118
|
+
#GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
|
117
119
|
@activities.uniq.each do |current_activity_title|
|
118
|
-
GameOn::Engine.run @current_context_title, current_activity_title
|
120
|
+
GameOn::Engine.run @id, @current_context_title, current_activity_title
|
119
121
|
end
|
120
122
|
#@activities = [] # reset the activities
|
121
123
|
return GameOn::Persistence::DS.load @id
|