gameon 0.0.0.pre64 → 0.0.0.pre65
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 +24 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc6a1f6074f0fb2a0bff4b816cf884fad1ccf50
|
4
|
+
data.tar.gz: 8d05abdd2ec06bc66514a8f2c81f26ff014c2044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8962bdfaa4e6ff716c2168e18cbb1d917bac74100e789d33de8294f68e8f70aefbde4b14d478435858b583571603c1f72f3fb19e5d2affb0c94a4ed3bab9f7e8
|
7
|
+
data.tar.gz: f5a42f11b98f39f7698e6445c3cd6819016b7f00245a7c0832cf0e8fae9ec6f5c7b70ce9a1d49101d2de1f6c902f247b2cc986e269624be89138e4c944b2ec35
|
data/lib/gameon/base.rb
CHANGED
@@ -22,13 +22,35 @@ 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
|
25
45
|
module Engine
|
26
46
|
extend Mushin::Engine
|
27
47
|
class << self
|
48
|
+
#attr_accessor :middlewares, :stack
|
28
49
|
def run domain_context, activity
|
50
|
+
#@middlewares = GameOn::DSL.find domain_context, activity
|
29
51
|
@stack = Mushin::Middleware::Builder.new do
|
30
52
|
(GameOn::DSL.find domain_context, activity).each do |middleware|
|
31
|
-
p "
|
53
|
+
p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
|
32
54
|
use middleware.name, middleware.opts, middleware.params
|
33
55
|
end
|
34
56
|
end
|
@@ -36,6 +58,7 @@ module GameOn
|
|
36
58
|
@stack.insert_before 0, setup_middleware
|
37
59
|
end
|
38
60
|
@stack.call
|
61
|
+
#@middlewares = []
|
39
62
|
end
|
40
63
|
end
|
41
64
|
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.pre65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- theotherstupidguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a gamification framework based on mushin
|
14
14
|
email:
|
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
version: 1.3.1
|
41
41
|
requirements: []
|
42
42
|
rubyforge_project:
|
43
|
-
rubygems_version: 2.2.
|
43
|
+
rubygems_version: 2.2.2
|
44
44
|
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: gamification framework
|