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