gameon 0.0.0.pre107 → 0.0.0.pre108

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 +12 -15
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98322b82a1c0c9ce60b497688affeed333e3c65b
4
- data.tar.gz: d855e573882200dd58d7f9fa0717f71a8f7a3865
3
+ metadata.gz: 1a661accf4d0c473de7587e0eabf4e8f96ecf669
4
+ data.tar.gz: fc433e0b58bda438aebf852f81f69458cacfdcb2
5
5
  SHA512:
6
- metadata.gz: 4bd71a15181058098e2a9c994c9ed82cea3099150f21d8cc1b3eee128c48dc4aa1b9eab3c56d4daeb7f91df4d25f957c959b2764566bfb3abe63ecd675fbe2b3
7
- data.tar.gz: ec1d331e6c47608483511f3d5fce4600fb83b0650dbdb7d4a1a48caf8ba5befade26f5dad583e04d1010e85f66e5ccee356bbceaf6720fd410fe7d39f725d7e3
6
+ metadata.gz: 391a2938b229151e1b6e0c17978db0c05c3eadf7ff6c4d3a92a228958ac0b8789fa57633926e8026f94ce0345905f522ab8626ac97b241d513e815c2bcb137ec
7
+ data.tar.gz: 56ddcf4908014a8404437e76745d69602010b5accdd6ca1c082b050860f582fd5563b649451f30c8c52be06d41114275996fcc5ac1bd940533804fda243a1720
data/lib/gameon/base.rb CHANGED
@@ -9,37 +9,34 @@ module GameOn
9
9
 
10
10
  def self.find current_context_title, current_activity_title
11
11
 
12
- #Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
13
12
 
14
13
  Mushin::DSL.contexts.each do |context|
15
14
  if context.title == current_context_title
16
15
  context.statments.each do |activity|
17
16
  if activity.title == current_activity_title
18
-
19
- @@middlewares = []
17
+ @middlewares = []
20
18
  activity.activations.each do |middleware|
21
- #if Mushin::DSL.middlewares.empty?
22
- if @@middlewares.empty?
19
+
20
+ if @middlewares.empty?
23
21
  p "adding first middleware !!!"
24
- @@middlewares << middleware
25
- #return @@middlewares
26
- # Mushin::DSL.middlewares << middleware
22
+ p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
23
+ @middlewares << middleware
24
+ p @middlewares
27
25
  else
28
- # Mushin::DSL.middlewares.each do |prev|
29
- @@middlewares.each do |prev|
26
+ @middlewares.each do |prev|
30
27
  if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
31
- p "this activation already exists nothing to do!!!"
28
+ p "this activation already exists, thus nothing to do!!!"
32
29
  else
33
30
  p "adding new activation"
34
- #Mushin::DSL.middlewares << middleware
35
- @@middlewares << middleware
36
31
  p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
37
- #p Mushin::DSL.middlewares
32
+ @middlewares << middleware
33
+ p @middlewares
38
34
  end
39
35
  end
40
36
  end
41
- return @@middlewares
37
+
42
38
  end
39
+ return @middlewares
43
40
  end
44
41
  end
45
42
  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.pre107
4
+ version: 0.0.0.pre108
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy