gameon 0.0.0.pre104 → 0.0.0.pre105

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 -15
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0884b77f58cd84786452d4afea4251f6d3c377cf
4
- data.tar.gz: ac1cf85a5605a2ef2ab6e6e763eb1db94c2e80e4
3
+ metadata.gz: 3db3ae7394d8dea8cb37c3777cba63e6b8c5589e
4
+ data.tar.gz: 6860d168da702bf8a16ee694359149c693b233ba
5
5
  SHA512:
6
- metadata.gz: fda7816d1f1c318af02b5872ca7a1cdb9bae8e8f1ec28b600cda7371c117f9af81599724f9d0d1701d9ca5f92a4bfd8071dd4d8d992cffdee6870ea97069565f
7
- data.tar.gz: 0e95d9a32e757bc7176c2e539e804701106e2eef8377c1d5792857b310b20fb3a24e1e8c6ad90728e065896f4f64ff5f5d712cf157e8a9b1a5a919144df45e72
6
+ metadata.gz: a3dac995346953be3c6eebac53713de0823374f42b45d9743d6f0dc7164bf091eb01f0ba6f30f7327c93c169e8d430e3319717827eeeaa8f183704ccf27d77f7
7
+ data.tar.gz: 391a29264153a631717607299069a3b75636ef88008fbe153a7561ef847ed0fac9723fc8e86cc2bda5cbe546494c221ef6f68ef2426d7b27701293a498e77d57
data/lib/gameon/base.rb CHANGED
@@ -10,30 +10,33 @@ module GameOn
10
10
  def self.find current_context_title, current_activity_title
11
11
 
12
12
  #Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
13
- @middlewares = [] #could be GameOn::DSL.middlewares
14
13
 
15
14
  Mushin::DSL.contexts.each do |context|
16
15
  if context.title == current_context_title
17
16
  context.statments.each do |activity|
18
17
  if activity.title == current_activity_title
19
-
18
+
19
+ @@middlewares = []
20
20
  activity.activations.each do |middleware|
21
21
  #if Mushin::DSL.middlewares.empty?
22
- # p "adding first middleware !!!"
23
- # Mushin::DSL.middlewares << middleware
24
- #else
22
+ if @@middlewares.empty?
23
+ p "adding first middleware !!!"
24
+ @@middlewares << middleware
25
+ # Mushin::DSL.middlewares << middleware
26
+ else
25
27
  # Mushin::DSL.middlewares.each do |prev|
26
- #if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
27
- # p "this activation already exists nothing to do!!!"
28
- #else
29
- # p "adding new activation"
28
+ @@middlewares.each do |prev|
29
+ if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
30
+ p "this activation already exists nothing to do!!!"
31
+ else
32
+ p "adding new activation"
30
33
  #Mushin::DSL.middlewares << middleware
31
- @middlewares << middleware
34
+ @@middlewares << middleware
32
35
  p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
33
- p Mushin::DSL.middlewares
34
- #end
35
- #end
36
- #end
36
+ #p Mushin::DSL.middlewares
37
+ end
38
+ end
39
+ end
37
40
 
38
41
  end
39
42
  end
@@ -42,7 +45,7 @@ module GameOn
42
45
 
43
46
  end
44
47
  #return Mushin::DSL.middlewares
45
- return @middlewares
48
+ return @@middlewares
46
49
  #Mushin::DSL.middlewares = []
47
50
  end
48
51
  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.pre104
4
+ version: 0.0.0.pre105
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy