gameon 0.0.0.pre115 → 0.0.0.pre116
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 +12 -4
- 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: b6f23c6517ef97c13e41a9cd80c97c7df4bb73c6
|
4
|
+
data.tar.gz: 9282250cea17b1bb0e89fa07f7ee6d23594c5d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e650c33f0ee427c476707ae6b30e1f47f8767e82fbbc3b60984b7bec02e724b53706f9228b48566a1a5ecd9e7dfb411dde10eb9761186a993f5948e1fc021e7
|
7
|
+
data.tar.gz: 8600ad3f11a7f0a941c10748d5b0aec64655b3264d9210f07fa4666d0a4ad6d8d75a8350f068e7c96f5cba2158f26bb747625ecaf9c42690276c5e1fd1a9b993
|
data/lib/gameon/base.rb
CHANGED
@@ -8,6 +8,8 @@ module GameOn
|
|
8
8
|
include Mushin::DSL
|
9
9
|
|
10
10
|
def self.find current_context_title, current_activity_title
|
11
|
+
|
12
|
+
|
11
13
|
Mushin::DSL.contexts.each do |context|
|
12
14
|
if context.title == current_context_title
|
13
15
|
context.activities.each do |activity|
|
@@ -16,26 +18,32 @@ module GameOn
|
|
16
18
|
activity.uses.each do |middleware|
|
17
19
|
|
18
20
|
if @middlewares.empty?
|
19
|
-
|
21
|
+
p "adding first middleware !!!"
|
22
|
+
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
20
23
|
@middlewares << middleware
|
24
|
+
p @middlewares
|
21
25
|
else
|
22
26
|
@middlewares.each do |prev|
|
23
27
|
if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
|
24
28
|
p "this activation already exists, thus nothing to do!!!"
|
25
29
|
else
|
26
|
-
|
30
|
+
p "adding new activation"
|
31
|
+
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
27
32
|
@middlewares << middleware
|
33
|
+
p @middlewares
|
28
34
|
end
|
29
35
|
end
|
30
36
|
end
|
31
37
|
|
32
38
|
end
|
33
|
-
p @middlewares
|
34
39
|
return @middlewares
|
35
40
|
end
|
36
41
|
end
|
37
42
|
end
|
43
|
+
|
38
44
|
end
|
45
|
+
#return Mushin::DSL.middlewares
|
46
|
+
#Mushin::DSL.middlewares = []
|
39
47
|
end
|
40
48
|
end
|
41
49
|
|
@@ -82,7 +90,7 @@ module GameOn
|
|
82
90
|
instance_eval(&block)
|
83
91
|
|
84
92
|
Dir["./gameon/*"].each {|file| load file }
|
85
|
-
#Dir["./gameon/*"].each {|file|
|
93
|
+
#Dir["./gameon/*"].each {|file| load file }
|
86
94
|
GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
|
87
95
|
@activities.uniq.each do |current_activity_title|
|
88
96
|
GameOn::Engine.run @current_context_title, current_activity_title
|