gameon 0.0.0.pre100 → 0.0.0.pre101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +20 -20
- 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: efa092220974979419fe9fd0c19c2a2014172eab
|
4
|
+
data.tar.gz: faead17190276f373d1c665940036831cc9a32bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64f847ba9f2b543dec73932221aa88d964e023b277397d4be7cfbd512dd82ca5ec8afeafb6f09d7c4e1da2e275510cf40d939e90144774938a10aaa0d87a99e4
|
7
|
+
data.tar.gz: 2a49950a9e8353fae7b856331795023da4804b47492c4f5ace8c742554b3dd6823f5400340612be6fb2d5d4f9a9a7e49385f2402ea9ea930143b66bd07c58543
|
data/lib/gameon/base.rb
CHANGED
@@ -7,37 +7,37 @@ module GameOn
|
|
7
7
|
module DSL
|
8
8
|
include Mushin::DSL
|
9
9
|
def self.find activity_context, activity_statment
|
10
|
+
|
11
|
+
Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
12
|
+
|
10
13
|
Mushin::DSL.contexts.each do |current_context|
|
11
14
|
if activity_context == current_context.title
|
12
15
|
current_context.statments.each do |statment|
|
13
16
|
if activity_statment == statment.title
|
17
|
+
|
14
18
|
statment.activations.uniq.each do |middleware|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
return Mushin::DSL.middlewares
|
31
|
-
#end
|
32
|
-
#else
|
33
|
-
# Mushin::DSL.middlewares << middleware
|
34
|
-
#end
|
19
|
+
if Mushin::DSL.middlewares.empty?
|
20
|
+
p "adding first middleware !!!"
|
21
|
+
Mushin::DSL.middlewares << middleware
|
22
|
+
else
|
23
|
+
Mushin::DSL.middlewares.each do |prev|
|
24
|
+
if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
|
25
|
+
p "this activation already exists nothing to do!!!"
|
26
|
+
else
|
27
|
+
p "adding new activation"
|
28
|
+
Mushin::DSL.middlewares << middleware
|
29
|
+
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
30
|
+
p Mushin::DSL.middlewares
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
35
34
|
|
36
35
|
end
|
37
36
|
end
|
38
37
|
end
|
39
38
|
end
|
40
39
|
end
|
40
|
+
return Mushin::DSL.middlewares
|
41
41
|
#Mushin::DSL.middlewares = []
|
42
42
|
end
|
43
43
|
end
|