gameon 0.0.0.pre112 → 0.0.0.pre113

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