gameon 0.0.0.pre99 → 0.0.0.pre100
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 +17 -18
- 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: 9176deae790c852457c5478c3bfbb83b466da98e
|
4
|
+
data.tar.gz: 841086f5b9bb37da1bd3328375ed4687a8e041f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ade44e0198473e4d8bd10cbf3a35977d141a398693e199b8781f62425ba4619ac1bc5b5159f8900891ad40edb73bdd41d4cd8b5c3fb20ab709c25dbb65bdecaf
|
7
|
+
data.tar.gz: fa5b85be7a7cd21f7d7db6bb3dbfdf1b05ea8633da5dfee8e5cce647b0351be70fe77931c9b16bdb0ca3d92c5ebd9f1a8b3986fc1d6d9ac1ea2c6ba46f33434f
|
data/lib/gameon/base.rb
CHANGED
@@ -7,32 +7,31 @@ module GameOn
|
|
7
7
|
module DSL
|
8
8
|
include Mushin::DSL
|
9
9
|
def self.find activity_context, activity_statment
|
10
|
-
Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
11
10
|
Mushin::DSL.contexts.each do |current_context|
|
12
11
|
if activity_context == current_context.title
|
13
12
|
current_context.statments.each do |statment|
|
14
13
|
if activity_statment == statment.title
|
15
14
|
statment.activations.uniq.each do |middleware|
|
16
15
|
|
17
|
-
if Mushin::DSL.middlewares == []
|
18
|
-
|
19
|
-
|
20
|
-
else
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
16
|
+
#if Mushin::DSL.middlewares == []
|
17
|
+
# Mushin::DSL.middlewares << middleware
|
18
|
+
# return Mushin::DSL.middlewares
|
19
|
+
#else
|
20
|
+
Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
21
|
+
#Mushin::DSL.middlewares.each do |prev|
|
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
|
26
|
+
p "adding new activation"
|
27
|
+
Mushin::DSL.middlewares << middleware
|
28
|
+
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
29
|
+
p Mushin::DSL.middlewares
|
30
|
+
return Mushin::DSL.middlewares
|
31
|
+
#end
|
33
32
|
#else
|
34
33
|
# Mushin::DSL.middlewares << middleware
|
35
|
-
end
|
34
|
+
#end
|
36
35
|
|
37
36
|
end
|
38
37
|
end
|