gameon 0.0.0.pre106 → 0.0.0.pre107

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