gameon 0.0.0.pre96 → 0.0.0.pre97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +8 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8374524bfc53bff3d0442f6f46f6e1974f1c252b
|
4
|
+
data.tar.gz: 60806cd290af261134f8d520e4101b62dd932b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b71ec360e583e0b429e0413a0923e49f1c5db9313b3c407b993fcc025ab3a3a3e5ef3a140902d26a0933e371d8a50a2ce1c87b5beb292027fb162ea4b5a64f8d
|
7
|
+
data.tar.gz: da22081f1b066e5430618b7f346cfa26cb05657a2214125f81f1f860cb26b7024785c01434fbc3753fb626cc189c284cb0230235b1f2e54e2f9074df8ba669d2
|
data/lib/gameon/base.rb
CHANGED
@@ -14,27 +14,20 @@ module GameOn
|
|
14
14
|
if activity_statment == statment.title
|
15
15
|
statment.activations.uniq.each do |middleware|
|
16
16
|
|
17
|
-
#middleware.name, middleware.opts, middleware.params
|
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
17
|
if !Mushin::DSL.middlewares.empty?
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
end
|
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
|
32
25
|
end
|
26
|
+
end
|
33
27
|
else
|
34
28
|
Mushin::DSL.middlewares << middleware
|
35
29
|
end
|
36
30
|
|
37
|
-
|
38
31
|
end
|
39
32
|
end
|
40
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.pre97
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- theotherstupidguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a gamification framework based on mushin
|
14
14
|
email:
|