gameon 0.0.0.pre93 → 0.0.0.pre94
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 +18 -4
- 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: 0a65c6913904315179e80b5d504f59fb2430fbcf
|
4
|
+
data.tar.gz: 0f9a3b3cbe6d92d2159231822683c5989eb61b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2a8b277c86d58d7c9551ca01a0615f22e756a2646f448f0c1b0b6c9aa4344ae8a6b3bb3631d801755da5c177937aad67cf4f03ed1c700cdb076e7f152bbd17d
|
7
|
+
data.tar.gz: da2b109d0de9f028ba422d23b255c8743116aab6f7b2bad23f1a5c0bd9f7397ebeb0227c50684d088f2b160cb0c4f10fa512248bdee2036e748cd424ed84313b
|
data/lib/gameon/base.rb
CHANGED
@@ -15,12 +15,26 @@ module GameOn
|
|
15
15
|
statment.activations.uniq.each do |middleware|
|
16
16
|
|
17
17
|
#middleware.name, middleware.opts, middleware.params
|
18
|
-
Mushin::DSL.middlewares.each do |prev|
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
#Mushin::DSL.middlewares.each do |prev|
|
19
|
+
# if prev[0] == name && prev[1] == opts && prev[2] == params
|
20
|
+
# p "adding new activation"
|
21
|
+
# Mushin::DSL.middlewares << middleware
|
22
|
+
# end
|
23
|
+
if !Mushin::DSL.middlewares.empty?
|
24
|
+
Mushin::DSL.middlewares.each do |prev|
|
25
|
+
if prev[0] == middleware.name && prev[1] == middleware.opts && prev[2] == middleware.params
|
26
|
+
p "activation already exists nothing to do"
|
27
|
+
else
|
28
|
+
p "adding new activation"
|
29
|
+
Mushin::DSL.middlewares << middleware
|
30
|
+
#Mushin::DSL.middlewares << middleware
|
31
|
+
end
|
22
32
|
end
|
33
|
+
else
|
34
|
+
Mushin::DSL.middlewares << middleware
|
23
35
|
end
|
36
|
+
|
37
|
+
|
24
38
|
end
|
25
39
|
end
|
26
40
|
end
|