gameon 0.0.0.pre96 → 0.0.0.pre97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +8 -15
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc78553f0a3cdae03a9dc0e198f4da83209f9588
4
- data.tar.gz: b021bbd8e93fd0bd8dd5048ccfcc7749d4a8ef07
3
+ metadata.gz: 8374524bfc53bff3d0442f6f46f6e1974f1c252b
4
+ data.tar.gz: 60806cd290af261134f8d520e4101b62dd932b49
5
5
  SHA512:
6
- metadata.gz: 82db5f7992fa2e33cbcc1c39b323c7e6d3b90b8debc86451492a42354872ca4c144b779e9356f34101048b2df58ccd73e875f70dc0be5dc2702f567ebf9c9d59
7
- data.tar.gz: 2b1769b8292c31a1665e453de28c4ed4d5ffe270f2cd71ded9cb8aab7291e4591dbc1b4479725cb4a07ed173359f2972083fbc12281f6003bd6eaa492bccde05
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
- Mushin::DSL.middlewares.each do |prev|
25
- if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
26
- p "activation already exists nothing to do"
27
- else
28
- p "adding new activation"
29
- Mushin::DSL.middlewares << middleware
30
- #Mushin::DSL.middlewares << middleware
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.pre96
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-08-05 00:00:00.000000000 Z
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: