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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +13 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8374524bfc53bff3d0442f6f46f6e1974f1c252b
4
- data.tar.gz: 60806cd290af261134f8d520e4101b62dd932b49
3
+ metadata.gz: cc1ab3b3cf89336f357cd56e36d20ca144f9948b
4
+ data.tar.gz: f17865c291544959ebc1f34e0a38bf94e8613e35
5
5
  SHA512:
6
- metadata.gz: b71ec360e583e0b429e0413a0923e49f1c5db9313b3c407b993fcc025ab3a3a3e5ef3a140902d26a0933e371d8a50a2ce1c87b5beb292027fb162ea4b5a64f8d
7
- data.tar.gz: da22081f1b066e5430618b7f346cfa26cb05657a2214125f81f1f860cb26b7024785c01434fbc3753fb626cc189c284cb0230235b1f2e54e2f9074df8ba669d2
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 !Mushin::DSL.middlewares.empty?
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gameon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre97
4
+ version: 0.0.0.pre98
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy