gameon 0.0.0.pre97 → 0.0.0.pre98
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 +13 -11
- 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: cc1ab3b3cf89336f357cd56e36d20ca144f9948b
|
4
|
+
data.tar.gz: f17865c291544959ebc1f34e0a38bf94e8613e35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a327f6197251fee8418212dd24d296f576ff14544699b9f2242840bd0cc9c152c1b885b2dc25da71bd485e4e5a2b80b2745b14cf03f084fc1b370fbd866bc971
|
7
|
+
data.tar.gz: 2c2f79722d61d9defb9b5a184246160948495604469a63ee0279123d4916cdcf4dcca946c4fd122ae747135be5522e8afeb982ea3a8a9979169f4ac92bf0009b
|
data/lib/gameon/base.rb
CHANGED
@@ -14,18 +14,20 @@ module GameOn
|
|
14
14
|
if activity_statment == statment.title
|
15
15
|
statment.activations.uniq.each do |middleware|
|
16
16
|
|
17
|
-
if
|
18
|
-
Mushin::DSL.middlewares.uniq.each do |prev|
|
19
|
-
if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
|
20
|
-
p "activation already exists nothing to do"
|
21
|
-
else
|
22
|
-
p "adding new activation"
|
23
|
-
Mushin::DSL.middlewares << middleware
|
24
|
-
#Mushin::DSL.middlewares << middleware
|
25
|
-
end
|
26
|
-
end
|
27
|
-
else
|
17
|
+
if Mushin::DSL.middlewares.empty?
|
28
18
|
Mushin::DSL.middlewares << middleware
|
19
|
+
else
|
20
|
+
Mushin::DSL.middlewares.uniq.each do |prev|
|
21
|
+
if !prev.name == middleware.name && !prev.opts == middleware.opts && !prev.params == middleware.params
|
22
|
+
p "adding new activation"
|
23
|
+
Mushin::DSL.middlewares << middleware
|
24
|
+
else
|
25
|
+
p "activation already exists nothing to do"
|
26
|
+
#Mushin::DSL.middlewares << middleware
|
27
|
+
end
|
28
|
+
end
|
29
|
+
#else
|
30
|
+
# Mushin::DSL.middlewares << middleware
|
29
31
|
end
|
30
32
|
|
31
33
|
end
|