gameon 0.0.0.pre93 → 0.0.0.pre94

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 +18 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4f5fc15008c80652f4713632adaa23e501de174
4
- data.tar.gz: 2b58f21e25c6984fb17bc1fd0549bab65bb1b484
3
+ metadata.gz: 0a65c6913904315179e80b5d504f59fb2430fbcf
4
+ data.tar.gz: 0f9a3b3cbe6d92d2159231822683c5989eb61b39
5
5
  SHA512:
6
- metadata.gz: 7b06b85f0774b935df1134579928e7bc4bbf73d8137f4095abcf8eaa1528e940504212f04771efe6daa02e7f6759f34a892c9cdb1d87107afce396b1226d1519
7
- data.tar.gz: dfc0b228fe393b77a28e56caf883488234945e24a631e35146a31eba64ad46d57d11fde7a59068865553c7e8f56ca302b847545d09b788380eab04361c49fa30
6
+ metadata.gz: e2a8b277c86d58d7c9551ca01a0615f22e756a2646f448f0c1b0b6c9aa4344ae8a6b3bb3631d801755da5c177937aad67cf4f03ed1c700cdb076e7f152bbd17d
7
+ data.tar.gz: da2b109d0de9f028ba422d23b255c8743116aab6f7b2bad23f1a5c0bd9f7397ebeb0227c50684d088f2b160cb0c4f10fa512248bdee2036e748cd424ed84313b
data/lib/gameon/base.rb CHANGED
@@ -15,12 +15,26 @@ module GameOn
15
15
  statment.activations.uniq.each do |middleware|
16
16
 
17
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
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
+ if !Mushin::DSL.middlewares.empty?
24
+ Mushin::DSL.middlewares.each do |prev|
25
+ if prev[0] == middleware.name && prev[1] == middleware.opts && prev[2] == 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
22
32
  end
33
+ else
34
+ Mushin::DSL.middlewares << middleware
23
35
  end
36
+
37
+
24
38
  end
25
39
  end
26
40
  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.pre93
4
+ version: 0.0.0.pre94
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy