gameon 0.0.0.pre125 → 0.0.0.pre126

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 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf1f16f0daebcb2bef598e24e230077b013efbab
4
- data.tar.gz: c8597fad39474c854a586acab15e80a57cdab4d2
3
+ metadata.gz: 4bfec88c888b44859ee334623b32302675532ee9
4
+ data.tar.gz: c1247a3d0d210c24f8f1da9ca937bc1f55a982d0
5
5
  SHA512:
6
- metadata.gz: 9820b2793a1cab066efdbe62e3aac7830df08184a20c1355a4389ceb360c3a5702b67e6efb9e225f87799cb5e3837b99ba44d65958a3d479b55bf0b46a12c8db
7
- data.tar.gz: bed8d076bf39ee6119e988b26e3169bdc3accbadf359d0b36658aedb649d01c0da09240be8bc4feefb52602d02816cfda187ef814852c13f16f2129a06b4e5f2
6
+ metadata.gz: 56eb661367e1373f018321dc1665838bbbb9ea1325652484a7d2ec34496f634fcc176762cf0ae2ebab1b04fa901457dbfc9252b12e0d9c3d891cf2cf04d3d44c
7
+ data.tar.gz: bf5a45adcf8f140f7f16d59b8eeecb0f53fd8d9d368a39f0746df612969a475fcaf546fd7dff12e4178020fd8097f8949f9775fd0172448298a9945ea6ce63bf
data/lib/gameon/base.rb CHANGED
@@ -47,9 +47,11 @@ module GameOn
47
47
  extend Mushin::Engine
48
48
  class << self
49
49
  #attr_accessor :middlewares, :stack
50
- def run domain_context, activity
50
+ def run id, domain_context, activity
51
51
  #@middlewares = GameOn::DSL.find domain_context, activity
52
+
52
53
  stack = Mushin::Middleware::Builder.new do
54
+ use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
53
55
  (GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
54
56
  p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
55
57
  use middleware.name, middleware.opts, middleware.params
@@ -113,9 +115,9 @@ module GameOn
113
115
  instance_eval(&block)
114
116
 
115
117
  #GameOn::Env.id = @id
116
- GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
118
+ #GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
117
119
  @activities.uniq.each do |current_activity_title|
118
- GameOn::Engine.run @current_context_title, current_activity_title
120
+ GameOn::Engine.run @id, @current_context_title, current_activity_title
119
121
  end
120
122
  #@activities = [] # reset the activities
121
123
  return GameOn::Persistence::DS.load @id
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.pre125
4
+ version: 0.0.0.pre126
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy