gameon 0.0.0.pre103 → 0.0.0.pre104
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 -3
- 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: 0884b77f58cd84786452d4afea4251f6d3c377cf
|
4
|
+
data.tar.gz: ac1cf85a5605a2ef2ab6e6e763eb1db94c2e80e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fda7816d1f1c318af02b5872ca7a1cdb9bae8e8f1ec28b600cda7371c117f9af81599724f9d0d1701d9ca5f92a4bfd8071dd4d8d992cffdee6870ea97069565f
|
7
|
+
data.tar.gz: 0e95d9a32e757bc7176c2e539e804701106e2eef8377c1d5792857b310b20fb3a24e1e8c6ad90728e065896f4f64ff5f5d712cf157e8a9b1a5a919144df45e72
|
data/lib/gameon/base.rb
CHANGED
@@ -9,7 +9,8 @@ module GameOn
|
|
9
9
|
|
10
10
|
def self.find current_context_title, current_activity_title
|
11
11
|
|
12
|
-
Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
12
|
+
#Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
|
13
|
+
@middlewares = [] #could be GameOn::DSL.middlewares
|
13
14
|
|
14
15
|
Mushin::DSL.contexts.each do |context|
|
15
16
|
if context.title == current_context_title
|
@@ -26,7 +27,8 @@ module GameOn
|
|
26
27
|
# p "this activation already exists nothing to do!!!"
|
27
28
|
#else
|
28
29
|
# p "adding new activation"
|
29
|
-
Mushin::DSL.middlewares << middleware
|
30
|
+
#Mushin::DSL.middlewares << middleware
|
31
|
+
@middlewares << middleware
|
30
32
|
p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
|
31
33
|
p Mushin::DSL.middlewares
|
32
34
|
#end
|
@@ -39,7 +41,8 @@ module GameOn
|
|
39
41
|
end
|
40
42
|
|
41
43
|
end
|
42
|
-
return Mushin::DSL.middlewares
|
44
|
+
#return Mushin::DSL.middlewares
|
45
|
+
return @middlewares
|
43
46
|
#Mushin::DSL.middlewares = []
|
44
47
|
end
|
45
48
|
end
|