gameon 0.0.0.pre100 → 0.0.0.pre101

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 +20 -20
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9176deae790c852457c5478c3bfbb83b466da98e
4
- data.tar.gz: 841086f5b9bb37da1bd3328375ed4687a8e041f3
3
+ metadata.gz: efa092220974979419fe9fd0c19c2a2014172eab
4
+ data.tar.gz: faead17190276f373d1c665940036831cc9a32bc
5
5
  SHA512:
6
- metadata.gz: ade44e0198473e4d8bd10cbf3a35977d141a398693e199b8781f62425ba4619ac1bc5b5159f8900891ad40edb73bdd41d4cd8b5c3fb20ab709c25dbb65bdecaf
7
- data.tar.gz: fa5b85be7a7cd21f7d7db6bb3dbfdf1b05ea8633da5dfee8e5cce647b0351be70fe77931c9b16bdb0ca3d92c5ebd9f1a8b3986fc1d6d9ac1ea2c6ba46f33434f
6
+ metadata.gz: 64f847ba9f2b543dec73932221aa88d964e023b277397d4be7cfbd512dd82ca5ec8afeafb6f09d7c4e1da2e275510cf40d939e90144774938a10aaa0d87a99e4
7
+ data.tar.gz: 2a49950a9e8353fae7b856331795023da4804b47492c4f5ace8c742554b3dd6823f5400340612be6fb2d5d4f9a9a7e49385f2402ea9ea930143b66bd07c58543
@@ -7,37 +7,37 @@ module GameOn
7
7
  module DSL
8
8
  include Mushin::DSL
9
9
  def self.find activity_context, activity_statment
10
+
11
+ Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
12
+
10
13
  Mushin::DSL.contexts.each do |current_context|
11
14
  if activity_context == current_context.title
12
15
  current_context.statments.each do |statment|
13
16
  if activity_statment == statment.title
17
+
14
18
  statment.activations.uniq.each do |middleware|
15
-
16
- #if Mushin::DSL.middlewares == []
17
- # Mushin::DSL.middlewares << middleware
18
- # return Mushin::DSL.middlewares
19
- #else
20
- Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
21
- #Mushin::DSL.middlewares.each do |prev|
22
- # if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
23
- # p "this activation already exists nothing to do!!!"
24
- # #Mushin::DSL.middlewares << middleware
25
- # else
26
- p "adding new activation"
27
- Mushin::DSL.middlewares << middleware
28
- p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
29
- p Mushin::DSL.middlewares
30
- return Mushin::DSL.middlewares
31
- #end
32
- #else
33
- # Mushin::DSL.middlewares << middleware
34
- #end
19
+ if Mushin::DSL.middlewares.empty?
20
+ p "adding first middleware !!!"
21
+ Mushin::DSL.middlewares << middleware
22
+ else
23
+ Mushin::DSL.middlewares.each do |prev|
24
+ if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
25
+ p "this activation already exists nothing to do!!!"
26
+ else
27
+ p "adding new activation"
28
+ Mushin::DSL.middlewares << middleware
29
+ p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
30
+ p Mushin::DSL.middlewares
31
+ end
32
+ end
33
+ end
35
34
 
36
35
  end
37
36
  end
38
37
  end
39
38
  end
40
39
  end
40
+ return Mushin::DSL.middlewares
41
41
  #Mushin::DSL.middlewares = []
42
42
  end
43
43
  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.pre100
4
+ version: 0.0.0.pre101
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy