gameon 0.0.0.pre102 → 0.0.0.pre103

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 +19 -18
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2380146c8112bdebf86f402d46a221fa4671f34
4
- data.tar.gz: b76937f5df15767865b103f3268220edcc17645c
3
+ metadata.gz: 5386eb8f1ba77320a1a5a18ca9b409d2dfee426e
4
+ data.tar.gz: 1e9bb446b16f9e31b573141a0c8029864af3b945
5
5
  SHA512:
6
- metadata.gz: f24c8bf2997baa59bb54d6f53a20eefa9de007f1db5cdc871ca4081da3aae01a908bb538d779f1397927de26758d716e1fe2f5657cbf2d89eed9793f6237d082
7
- data.tar.gz: 2dd4712cf84b1c917b40ff1c0f7fef83a7cc474effaa243e5b021bc09a33938cca7fb0af008c37715f36c7e11b7fe99fe4828ffb447b118e16970bb5bd9543c8
6
+ metadata.gz: ca9afeacccb071b7ad3ad0e910034c6d8571ba14530d58b4e16439212b5902cf900d71b0ad3c49d5a9a8cae5c662d4934a9988983e3748f80c24541512c8d97d
7
+ data.tar.gz: a8cea821838c3e97f3ef46b9f2dcd50605c7a2c67f9a84cf93fc3d9ddca7ebf34e8d32fd438f446b7d8426300a8b98df07e9d472de983bdbf71e906d2ff3a259
data/lib/gameon/base.rb CHANGED
@@ -6,31 +6,32 @@ module GameOn
6
6
 
7
7
  module DSL
8
8
  include Mushin::DSL
9
- def self.find activity_context, activity_statment
9
+
10
+ def self.find current_context_title, current_activity_title
10
11
 
11
12
  Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
12
13
 
13
- Mushin::DSL.contexts.each do |current_context|
14
- if activity_context == current_context.title
15
- current_context.statments.each do |current_statment|
16
- if activity_statment == current_statment.title
14
+ Mushin::DSL.contexts.each do |context|
15
+ if context.title == current_context_title
16
+ context.statments.each do |activity|
17
+ if activity.title == current_activity_title
17
18
 
18
- current_statment.activations.uniq.each do |middleware|
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"
19
+ activity.activations.each do |middleware|
20
+ #if Mushin::DSL.middlewares.empty?
21
+ # p "adding first middleware !!!"
22
+ # Mushin::DSL.middlewares << middleware
23
+ #else
24
+ # Mushin::DSL.middlewares.each do |prev|
25
+ #if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
26
+ # p "this activation already exists nothing to do!!!"
27
+ #else
28
+ # p "adding new activation"
28
29
  Mushin::DSL.middlewares << middleware
29
30
  p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
30
31
  p Mushin::DSL.middlewares
31
- end
32
- end
33
- end
32
+ #end
33
+ #end
34
+ #end
34
35
 
35
36
  end
36
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.pre102
4
+ version: 0.0.0.pre103
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy