gameon 0.0.0.pre101 → 0.0.0.pre102

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +5 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efa092220974979419fe9fd0c19c2a2014172eab
4
- data.tar.gz: faead17190276f373d1c665940036831cc9a32bc
3
+ metadata.gz: c2380146c8112bdebf86f402d46a221fa4671f34
4
+ data.tar.gz: b76937f5df15767865b103f3268220edcc17645c
5
5
  SHA512:
6
- metadata.gz: 64f847ba9f2b543dec73932221aa88d964e023b277397d4be7cfbd512dd82ca5ec8afeafb6f09d7c4e1da2e275510cf40d939e90144774938a10aaa0d87a99e4
7
- data.tar.gz: 2a49950a9e8353fae7b856331795023da4804b47492c4f5ace8c742554b3dd6823f5400340612be6fb2d5d4f9a9a7e49385f2402ea9ea930143b66bd07c58543
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 |statment|
16
- if activity_statment == statment.title
15
+ current_context.statments.each do |current_statment|
16
+ if activity_statment == current_statment.title
17
17
 
18
- statment.activations.uniq.each do |middleware|
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
- #@activities = [] # reset the activities
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.pre101
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-09 00:00:00.000000000 Z
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: