gameon 0.0.0.pre127 → 0.0.0.pre128
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 +8 -5
- 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: f6ff730f39489a0ed9b6b6f96affeb80c8999420
|
4
|
+
data.tar.gz: 1d2f4703862b5921f738e6968956cfcd38018136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 144677dcf8fd56de0bcbc9b323f8822481940c2b0cf56a9558abb88df250debb5e3f7e4baa35e4a942de14a6565942715e596b289a29a63325e03f46090ef015
|
7
|
+
data.tar.gz: 5f16277971d8818345efacbb785c8883ce90125bafbc052e088ba5e216f79553838c3162d5dc2eb1bee2292cacf5b565cc16294cd014af58c13605c50c650419
|
data/lib/gameon/base.rb
CHANGED
@@ -47,19 +47,20 @@ module GameOn
|
|
47
47
|
extend Mushin::Engine
|
48
48
|
class << self
|
49
49
|
#attr_accessor :middlewares, :stack
|
50
|
-
def run id, domain_context, activity
|
50
|
+
#def run id, domain_context, activity
|
51
|
+
def run domain_context, activity
|
51
52
|
#@middlewares = GameOn::DSL.find domain_context, activity
|
52
53
|
|
53
54
|
stack = Mushin::Middleware::Builder.new do
|
54
|
-
use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
|
55
|
+
#use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
|
55
56
|
(GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
|
56
57
|
p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
57
58
|
use middleware.name, middleware.opts, middleware.params
|
58
59
|
end
|
59
60
|
end
|
60
|
-
|
61
|
-
|
62
|
-
|
61
|
+
@setup_middlewares.each do |setup_middleware|
|
62
|
+
stack.insert_before 0, setup_middleware
|
63
|
+
end
|
63
64
|
stack.call
|
64
65
|
end
|
65
66
|
end
|
@@ -116,6 +117,8 @@ module GameOn
|
|
116
117
|
|
117
118
|
#GameOn::Env.id = @id
|
118
119
|
#GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
|
120
|
+
GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
|
121
|
+
|
119
122
|
@activities.uniq.each do |current_activity_title|
|
120
123
|
GameOn::Engine.run @id, @current_context_title, current_activity_title
|
121
124
|
end
|