gameon 0.0.0.pre101 → 0.0.0.pre102
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 +5 -4
- 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: c2380146c8112bdebf86f402d46a221fa4671f34
|
4
|
+
data.tar.gz: b76937f5df15767865b103f3268220edcc17645c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24c8bf2997baa59bb54d6f53a20eefa9de007f1db5cdc871ca4081da3aae01a908bb538d779f1397927de26758d716e1fe2f5657cbf2d89eed9793f6237d082
|
7
|
+
data.tar.gz: 2dd4712cf84b1c917b40ff1c0f7fef83a7cc474effaa243e5b021bc09a33938cca7fb0af008c37715f36c7e11b7fe99fe4828ffb447b118e16970bb5bd9543c8
|
data/lib/gameon/base.rb
CHANGED
@@ -12,10 +12,10 @@ module GameOn
|
|
12
12
|
|
13
13
|
Mushin::DSL.contexts.each do |current_context|
|
14
14
|
if activity_context == current_context.title
|
15
|
-
current_context.statments.each do |
|
16
|
-
if activity_statment ==
|
15
|
+
current_context.statments.each do |current_statment|
|
16
|
+
if activity_statment == current_statment.title
|
17
17
|
|
18
|
-
|
18
|
+
current_statment.activations.uniq.each do |middleware|
|
19
19
|
if Mushin::DSL.middlewares.empty?
|
20
20
|
p "adding first middleware !!!"
|
21
21
|
Mushin::DSL.middlewares << middleware
|
@@ -36,6 +36,7 @@ module GameOn
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
39
|
+
|
39
40
|
end
|
40
41
|
return Mushin::DSL.middlewares
|
41
42
|
#Mushin::DSL.middlewares = []
|
@@ -89,7 +90,7 @@ module GameOn
|
|
89
90
|
@activities.uniq.each do |activity|
|
90
91
|
GameOn::Engine.run @domain_context, activity
|
91
92
|
end
|
92
|
-
|
93
|
+
@activities = [] # reset the activities
|
93
94
|
return GameOn::Persistence::DS.load @id
|
94
95
|
end
|
95
96
|
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.pre102
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- theotherstupidguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a gamification framework based on mushin
|
14
14
|
email:
|