gameon 0.0.0.pre99 → 0.0.0.pre100

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 +17 -18
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c14c34b04ca6f4bd2cb8923eaf52101f1fd98f5e
4
- data.tar.gz: d47cae3c35a59c2681cb2873a6def97ade667de3
3
+ metadata.gz: 9176deae790c852457c5478c3bfbb83b466da98e
4
+ data.tar.gz: 841086f5b9bb37da1bd3328375ed4687a8e041f3
5
5
  SHA512:
6
- metadata.gz: b0bc5809e5d9886fed0621bbe89f41db2805e8b4a5f2fbb0891479577f2ab6c930674bf293e0f3d2a64492ec15f1283460192b970fedddd81b383f349a1e2072
7
- data.tar.gz: 2175706b920a1043621d8220bd6e24c3203edeae1499eb9ee1b99403e09ada1185afcd7b2ef5b99e97007e4dba2bc3aaaad1ea94456b5f4d2a05623b95f194b3
6
+ metadata.gz: ade44e0198473e4d8bd10cbf3a35977d141a398693e199b8781f62425ba4619ac1bc5b5159f8900891ad40edb73bdd41d4cd8b5c3fb20ab709c25dbb65bdecaf
7
+ data.tar.gz: fa5b85be7a7cd21f7d7db6bb3dbfdf1b05ea8633da5dfee8e5cce647b0351be70fe77931c9b16bdb0ca3d92c5ebd9f1a8b3986fc1d6d9ac1ea2c6ba46f33434f
data/lib/gameon/base.rb CHANGED
@@ -7,32 +7,31 @@ module GameOn
7
7
  module DSL
8
8
  include Mushin::DSL
9
9
  def self.find activity_context, activity_statment
10
- Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
11
10
  Mushin::DSL.contexts.each do |current_context|
12
11
  if activity_context == current_context.title
13
12
  current_context.statments.each do |statment|
14
13
  if activity_statment == statment.title
15
14
  statment.activations.uniq.each do |middleware|
16
15
 
17
- if Mushin::DSL.middlewares == []
18
- Mushin::DSL.middlewares << middleware
19
- return Mushin::DSL.middlewares
20
- else
21
- Mushin::DSL.middlewares.uniq.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
- end
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
33
32
  #else
34
33
  # Mushin::DSL.middlewares << middleware
35
- end
34
+ #end
36
35
 
37
36
  end
38
37
  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.pre99
4
+ version: 0.0.0.pre100
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy