gameon 0.0.0.pre86 → 0.0.0.pre87
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 +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8e77b06194b70fca196c091944bfc8ca224c7e
|
4
|
+
data.tar.gz: 14eef7ac4623fb7ec00a2c48a6723394a115cc58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d0fa3ab6284f2370a74e17d62dfdbc1f70307e258a96ce2e0db78c9474fb1423115f1353285d9dd31388ac4f67bbd477251471cbc0070e4d1626f3854f51203
|
7
|
+
data.tar.gz: a831c5f4e3b1dc55f0f0588310ddc326dd2c449035dc16b83831d844296486613f85d2f8e6d6b466850f8cd8ac772a1eeeccb0ab053504440990ed9f0efc7949
|
data/lib/gameon/base.rb
CHANGED
@@ -31,16 +31,16 @@ module GameOn
|
|
31
31
|
#attr_accessor :middlewares, :stack
|
32
32
|
def run domain_context, activity
|
33
33
|
#@middlewares = GameOn::DSL.find domain_context, activity
|
34
|
-
|
34
|
+
stack = Mushin::Middleware::Builder.new do
|
35
35
|
(GameOn::DSL.find domain_context, activity).each do |middleware|
|
36
36
|
p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
37
37
|
use middleware.name, middleware.opts, middleware.params
|
38
38
|
end
|
39
39
|
end
|
40
40
|
@setup_middlewares.each do |setup_middleware|
|
41
|
-
|
41
|
+
stack.insert_before 0, setup_middleware
|
42
42
|
end
|
43
|
-
|
43
|
+
stack.call
|
44
44
|
#@middlewares = []
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.pre87
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- theotherstupidguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a gamification framework based on mushin
|
14
14
|
email:
|