gameon 0.0.0.pre107 → 0.0.0.pre108
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 -15
- 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: 1a661accf4d0c473de7587e0eabf4e8f96ecf669
|
4
|
+
data.tar.gz: fc433e0b58bda438aebf852f81f69458cacfdcb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 391a2938b229151e1b6e0c17978db0c05c3eadf7ff6c4d3a92a228958ac0b8789fa57633926e8026f94ce0345905f522ab8626ac97b241d513e815c2bcb137ec
|
7
|
+
data.tar.gz: 56ddcf4908014a8404437e76745d69602010b5accdd6ca1c082b050860f582fd5563b649451f30c8c52be06d41114275996fcc5ac1bd940533804fda243a1720
|
data/lib/gameon/base.rb
CHANGED
@@ -9,37 +9,34 @@ module GameOn
|
|
9
9
|
|
10
10
|
def self.find current_context_title, current_activity_title
|
11
11
|
|
12
|
-
#Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
13
12
|
|
14
13
|
Mushin::DSL.contexts.each do |context|
|
15
14
|
if context.title == current_context_title
|
16
15
|
context.statments.each do |activity|
|
17
16
|
if activity.title == current_activity_title
|
18
|
-
|
19
|
-
@@middlewares = []
|
17
|
+
@middlewares = []
|
20
18
|
activity.activations.each do |middleware|
|
21
|
-
|
22
|
-
if
|
19
|
+
|
20
|
+
if @middlewares.empty?
|
23
21
|
p "adding first middleware !!!"
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
23
|
+
@middlewares << middleware
|
24
|
+
p @middlewares
|
27
25
|
else
|
28
|
-
|
29
|
-
@@middlewares.each do |prev|
|
26
|
+
@middlewares.each do |prev|
|
30
27
|
if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
|
31
|
-
p "this activation already exists nothing to do!!!"
|
28
|
+
p "this activation already exists, thus nothing to do!!!"
|
32
29
|
else
|
33
30
|
p "adding new activation"
|
34
|
-
#Mushin::DSL.middlewares << middleware
|
35
|
-
@@middlewares << middleware
|
36
31
|
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
37
|
-
|
32
|
+
@middlewares << middleware
|
33
|
+
p @middlewares
|
38
34
|
end
|
39
35
|
end
|
40
36
|
end
|
41
|
-
|
37
|
+
|
42
38
|
end
|
39
|
+
return @middlewares
|
43
40
|
end
|
44
41
|
end
|
45
42
|
end
|