gameon 0.0.0.pre115 → 0.0.0.pre116

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 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c7d3ad99c9a3eaeacc6f03622da4910d41b2e05
4
- data.tar.gz: c7f30f424cfbaca349dbc59ef59b1eb01220334a
3
+ metadata.gz: b6f23c6517ef97c13e41a9cd80c97c7df4bb73c6
4
+ data.tar.gz: 9282250cea17b1bb0e89fa07f7ee6d23594c5d9d
5
5
  SHA512:
6
- metadata.gz: d41caca2e75b332982004f863244fa090be75473aa591ce5f6afa677727f5227c4016ff8fc10f72f7ea257c73b97be920ef04281374d87b3c8d36d4a93eecb08
7
- data.tar.gz: 46b54955945802b7bc189ac764904114c6026464a71dc7436f74b3d5781051e15ba6def7ccb1ae56db40b6f47cb24d0f8669b96a3b7f1ec3ade5cba837fb4024
6
+ metadata.gz: 9e650c33f0ee427c476707ae6b30e1f47f8767e82fbbc3b60984b7bec02e724b53706f9228b48566a1a5ecd9e7dfb411dde10eb9761186a993f5948e1fc021e7
7
+ data.tar.gz: 8600ad3f11a7f0a941c10748d5b0aec64655b3264d9210f07fa4666d0a4ad6d8d75a8350f068e7c96f5cba2158f26bb747625ecaf9c42690276c5e1fd1a9b993
data/lib/gameon/base.rb CHANGED
@@ -8,6 +8,8 @@ module GameOn
8
8
  include Mushin::DSL
9
9
 
10
10
  def self.find current_context_title, current_activity_title
11
+
12
+
11
13
  Mushin::DSL.contexts.each do |context|
12
14
  if context.title == current_context_title
13
15
  context.activities.each do |activity|
@@ -16,26 +18,32 @@ module GameOn
16
18
  activity.uses.each do |middleware|
17
19
 
18
20
  if @middlewares.empty?
19
- #p "adding first middleware !!!"
21
+ p "adding first middleware !!!"
22
+ p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
20
23
  @middlewares << middleware
24
+ p @middlewares
21
25
  else
22
26
  @middlewares.each do |prev|
23
27
  if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
24
28
  p "this activation already exists, thus nothing to do!!!"
25
29
  else
26
- #p "adding new activation"
30
+ p "adding new activation"
31
+ p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
27
32
  @middlewares << middleware
33
+ p @middlewares
28
34
  end
29
35
  end
30
36
  end
31
37
 
32
38
  end
33
- p @middlewares
34
39
  return @middlewares
35
40
  end
36
41
  end
37
42
  end
43
+
38
44
  end
45
+ #return Mushin::DSL.middlewares
46
+ #Mushin::DSL.middlewares = []
39
47
  end
40
48
  end
41
49
 
@@ -82,7 +90,7 @@ module GameOn
82
90
  instance_eval(&block)
83
91
 
84
92
  Dir["./gameon/*"].each {|file| load file }
85
- #Dir["./gameon/*"].each {|file| require file }
93
+ #Dir["./gameon/*"].each {|file| load file }
86
94
  GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
87
95
  @activities.uniq.each do |current_activity_title|
88
96
  GameOn::Engine.run @current_context_title, current_activity_title
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.pre115
4
+ version: 0.0.0.pre116
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy