gameon 0.0.0.pre127 → 0.0.0.pre128

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 +8 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cbeff185208fddf543778abc380a28e02cd71fc
4
- data.tar.gz: 13040a1ab88b4f1a17ac5745126e9780e208237a
3
+ metadata.gz: f6ff730f39489a0ed9b6b6f96affeb80c8999420
4
+ data.tar.gz: 1d2f4703862b5921f738e6968956cfcd38018136
5
5
  SHA512:
6
- metadata.gz: cdd8c0fbe759a451e68a299583b648a316f46305bca78cdc8206fd92c0d8cc00149f2cd35e26f8702dfee1eec0b01eb0ed102e1f74f96f13cefdf28b070f12a8
7
- data.tar.gz: 945abc2d39a47cdf9e728f76cb4dedc55eec079da7c784e059c0fa1ef7effb35aaeee069fb68054f0317c8d3bb3995e27fb0fb7f5c6d5886a98a340f18c55fc6
6
+ metadata.gz: 144677dcf8fd56de0bcbc9b323f8822481940c2b0cf56a9558abb88df250debb5e3f7e4baa35e4a942de14a6565942715e596b289a29a63325e03f46090ef015
7
+ data.tar.gz: 5f16277971d8818345efacbb785c8883ce90125bafbc052e088ba5e216f79553838c3162d5dc2eb1bee2292cacf5b565cc16294cd014af58c13605c50c650419
data/lib/gameon/base.rb CHANGED
@@ -47,19 +47,20 @@ module GameOn
47
47
  extend Mushin::Engine
48
48
  class << self
49
49
  #attr_accessor :middlewares, :stack
50
- def run id, domain_context, activity
50
+ #def run id, domain_context, activity
51
+ def run domain_context, activity
51
52
  #@middlewares = GameOn::DSL.find domain_context, activity
52
53
 
53
54
  stack = Mushin::Middleware::Builder.new do
54
- use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
55
+ #use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
55
56
  (GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
56
57
  p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
57
58
  use middleware.name, middleware.opts, middleware.params
58
59
  end
59
60
  end
60
- #@setup_middlewares.each do |setup_middleware|
61
- # stack.insert_before 0, setup_middleware
62
- #end
61
+ @setup_middlewares.each do |setup_middleware|
62
+ stack.insert_before 0, setup_middleware
63
+ end
63
64
  stack.call
64
65
  end
65
66
  end
@@ -116,6 +117,8 @@ module GameOn
116
117
 
117
118
  #GameOn::Env.id = @id
118
119
  #GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
120
+ GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
121
+
119
122
  @activities.uniq.each do |current_activity_title|
120
123
  GameOn::Engine.run @id, @current_context_title, current_activity_title
121
124
  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.pre127
4
+ version: 0.0.0.pre128
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy