gameon 0.0.0.pre98 → 0.0.0.pre99
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 +11 -9
- 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: c14c34b04ca6f4bd2cb8923eaf52101f1fd98f5e
|
4
|
+
data.tar.gz: d47cae3c35a59c2681cb2873a6def97ade667de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0bc5809e5d9886fed0621bbe89f41db2805e8b4a5f2fbb0891479577f2ab6c930674bf293e0f3d2a64492ec15f1283460192b970fedddd81b383f349a1e2072
|
7
|
+
data.tar.gz: 2175706b920a1043621d8220bd6e24c3203edeae1499eb9ee1b99403e09ada1185afcd7b2ef5b99e97007e4dba2bc3aaaad1ea94456b5f4d2a05623b95f194b3
|
data/lib/gameon/base.rb
CHANGED
@@ -7,23 +7,27 @@ module GameOn
|
|
7
7
|
module DSL
|
8
8
|
include Mushin::DSL
|
9
9
|
def self.find activity_context, activity_statment
|
10
|
-
Mushin::DSL.middlewares = []
|
10
|
+
Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
11
11
|
Mushin::DSL.contexts.each do |current_context|
|
12
12
|
if activity_context == current_context.title
|
13
13
|
current_context.statments.each do |statment|
|
14
14
|
if activity_statment == statment.title
|
15
15
|
statment.activations.uniq.each do |middleware|
|
16
16
|
|
17
|
-
if Mushin::DSL.middlewares
|
17
|
+
if Mushin::DSL.middlewares == []
|
18
18
|
Mushin::DSL.middlewares << middleware
|
19
|
+
return Mushin::DSL.middlewares
|
19
20
|
else
|
20
21
|
Mushin::DSL.middlewares.uniq.each do |prev|
|
21
|
-
if
|
22
|
+
if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
|
23
|
+
p "this activation already exists nothing to do!!!"
|
24
|
+
#Mushin::DSL.middlewares << middleware
|
25
|
+
else
|
22
26
|
p "adding new activation"
|
23
27
|
Mushin::DSL.middlewares << middleware
|
24
|
-
|
25
|
-
p
|
26
|
-
|
28
|
+
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
29
|
+
p Mushin::DSL.middlewares
|
30
|
+
return Mushin::DSL.middlewares
|
27
31
|
end
|
28
32
|
end
|
29
33
|
#else
|
@@ -35,9 +39,7 @@ module GameOn
|
|
35
39
|
end
|
36
40
|
end
|
37
41
|
end
|
38
|
-
|
39
|
-
p Mushin::DSL.middlewares
|
40
|
-
Mushin::DSL.middlewares
|
42
|
+
#Mushin::DSL.middlewares = []
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|