gameon 0.0.0.pre131 → 0.0.0.pre132

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 +7 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf512eb9a5fa8e5a0b59f4648df24c7317b7bb19
4
- data.tar.gz: 3ab3bbce4f341700ed6fbdad01aab2453d80a4d5
3
+ metadata.gz: 2b2d74e0deb17b1a0597e5f8fcb4fe91f4d01ce4
4
+ data.tar.gz: 8330082c1308cc65966f45a27019c687e9e25d71
5
5
  SHA512:
6
- metadata.gz: 2d8e1b9123c8cc94c7423c7f8acef0eb468e1ea897f31b10ccfe6e3a3487d85085ecc523840c879d350bd275becde9d9384ab13fdc11ac1a6f8f37fe5cbcb25b
7
- data.tar.gz: 6a6fe0486c34225c7e98ad37d642c31c4d2db402e286f9808ee63ede9c8b2934caeb1f290291cc0f6eff734a30408b261380800d50fc246c0b3cb59a428a6858
6
+ metadata.gz: c2e64ec69db3e777a9fe54ec815b85d44bf6587a66fc943630d5c568b8a058afc0dde9e88e7566284717eac52ad4abe6d81281b47d8bfcd00b5ef7dad88dd0a9
7
+ data.tar.gz: 7ce8004b59f0c8c0fba236865d25528b419174cec34595e2ba460c94e4a3bb4bb76585e77985bc48e2ec73d5c22626fb725eadfa05c890697c48149d2180cd71
data/lib/gameon/base.rb CHANGED
@@ -46,21 +46,17 @@ module GameOn
46
46
  module Engine
47
47
  extend Mushin::Engine
48
48
  class << self
49
- #attr_accessor :middlewares, :stack
50
- #def run id, domain_context, activity
51
- def run domain_context, activity
52
- #@middlewares = GameOn::DSL.find domain_context, activity
53
-
49
+ def run id, domain_context, activity
54
50
  stack = Mushin::Middleware::Builder.new do
55
- #use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
51
+ use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
56
52
  (GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
57
53
  p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
58
54
  use middleware.name, middleware.opts, middleware.params
59
55
  end
60
56
  end
61
- @setup_middlewares.each do |setup_middleware|
62
- stack.insert_before 0, setup_middleware
63
- end
57
+ #@setup_middlewares.each do |setup_middleware|
58
+ # stack.insert_before 0, setup_middleware
59
+ #end
64
60
  stack.call
65
61
  end
66
62
  end
@@ -120,10 +116,10 @@ module GameOn
120
116
  # [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]].each do |e|
121
117
  # p "#{e[0]}, #{e[1]}, #{e[2]}"
122
118
  # end
123
- GameOn::Engine.setup "#{Object.const_get('GameOn::Persistence::DS')}, #{{}}, #{{:id => @id}}"
119
+ #GameOn::Engine.setup "#{Object.const_get('GameOn::Persistence::DS')}, #{{}}, #{{:id => @id}}"
124
120
 
125
121
  @activities.uniq.each do |current_activity_title|
126
- GameOn::Engine.run @current_context_title, current_activity_title
122
+ GameOn::Engine.run @id, @current_context_title, current_activity_title
127
123
  end
128
124
  #@activities = [] # reset the activities
129
125
  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.pre131
4
+ version: 0.0.0.pre132
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy