gameon 0.0.0.pre63 → 0.0.0.pre64
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 +0 -23
- 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: 57c688255a963fa32d647c836641284a064f57e9
|
4
|
+
data.tar.gz: ba6670431800a35927805a4486b2b8d006ea58ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d28347fdd7b8e6c2027962be76699b5b939060d54d9b654c0f37eec45db7dae5ff5c2d428b93d0144b178c5f057bdd52dfc34599bce8f1b8e27ac6bf61d5a066
|
7
|
+
data.tar.gz: d42ac05015979f7ff8090112cf992fec76efb95b6eda615c142d9405f1f1fe46ef833458ba0fa2cd8cedc7684af13bcccd8b73679950d15405ff9db2e1003947
|
data/lib/gameon/base.rb
CHANGED
@@ -22,32 +22,10 @@ module GameOn
|
|
22
22
|
Mushin::DSL.middlewares
|
23
23
|
end
|
24
24
|
end
|
25
|
-
=begin
|
26
|
-
module Engine
|
27
|
-
extend Mushin::Engine
|
28
|
-
attr_accessor :middlewares, :stack
|
29
|
-
def self.run domain_context, activity
|
30
|
-
@@middlewares = GameOn::DSL.find domain_context, activity
|
31
|
-
@stack = Mushin::Middleware::Builder.new do
|
32
|
-
@@middlewares.each do |middleware|
|
33
|
-
p "Mushin Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
34
|
-
use middleware.name, middleware.opts, middleware.params
|
35
|
-
end
|
36
|
-
end
|
37
|
-
@setup_middlewares.each do |setup_middleware|
|
38
|
-
@stack.insert_before 0, setup_middleware
|
39
|
-
end
|
40
|
-
@stack.call
|
41
|
-
@@middlewares = []
|
42
|
-
end
|
43
|
-
end
|
44
|
-
=end
|
45
25
|
module Engine
|
46
26
|
extend Mushin::Engine
|
47
27
|
class << self
|
48
|
-
#attr_accessor :middlewares, :stack
|
49
28
|
def run domain_context, activity
|
50
|
-
#@middlewares = GameOn::DSL.find domain_context, activity
|
51
29
|
@stack = Mushin::Middleware::Builder.new do
|
52
30
|
(GameOn::DSL.find domain_context, activity).each do |middleware|
|
53
31
|
p "Mushin Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
@@ -58,7 +36,6 @@ module GameOn
|
|
58
36
|
@stack.insert_before 0, setup_middleware
|
59
37
|
end
|
60
38
|
@stack.call
|
61
|
-
#@middlewares = []
|
62
39
|
end
|
63
40
|
end
|
64
41
|
end
|