gameon 0.0.0.pre67 → 0.0.0.pre68

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 +15 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5305da7ed8809f7946d27af17f5e0c753b2dbcf1
4
- data.tar.gz: 0a7316f81813a4e1eb26b912634b9b9a3d89e81b
3
+ metadata.gz: 39b6225c2deda67988fe3f9a3232180581e1e899
4
+ data.tar.gz: 6dd0784d2812f1f8ed326d51e600837b0472c010
5
5
  SHA512:
6
- metadata.gz: ca8efc3978f7c2a5d2669b6994ae81308d985aa21d0b69933dc173a1283ac4a33582272aaff2e1676d8c7917ba4dd92337935b0146d7f7be237e4d3f2d510f76
7
- data.tar.gz: 3986aa833c602e53169f25d36d893539519265d9b26de108e8a287ed334120a512205b18c944be1ac535e573f0737ab0b5463b41d13b3e22863dd717684c81ca
6
+ metadata.gz: ada0b66e54a6dadd25f1a6969676633eb3257e6df3da280aeedaf96cbec6653e9c2fbec7eae273d11fbacce158b6ecf56083b539c38ec76303ec5f7a2ab08720
7
+ data.tar.gz: 2ba16e71727757ff8258114ce18610eeaaa5aacdeabfad9f2b7b9fa9792bbae64267c06f381fd37960b36700935a15c2f2398413c286fbf97a92cddeb99906d9
data/lib/gameon/base.rb CHANGED
@@ -75,21 +75,25 @@ module GameOn
75
75
  def set id, &block
76
76
  @id = id.to_s + 'gameon'
77
77
  def on domain_context, &block
78
- @domain_context = domain_context
79
- @activities = []
80
- def activity statment
81
- @activities += [statment]
78
+ if @domain_context.nil? #TODO trying to check if I am accumlating activities
79
+ @domain_context = domain_context
80
+ @activities = []
81
+ def activity statment
82
+ @activities += [statment]
83
+ end
84
+ instance_eval(&block)
82
85
  end
83
86
  instance_eval(&block)
84
- end
85
- instance_eval(&block)
86
87
 
87
- Dir["./gameon/*"].each {|file| load file }
88
- GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
89
- @activities.each do |activity|
90
- GameOn::Engine.run @domain_context, activity
88
+ Dir["./gameon/*"].each {|file| load file }
89
+ GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
90
+ @activities.each do |activity|
91
+ GameOn::Engine.run @domain_context, activity
92
+ end
93
+ return GameOn::Persistence::DS.load @id
94
+ else
95
+ "nothing"
91
96
  end
92
- return GameOn::Persistence::DS.load @id
93
97
  end
94
98
  end
95
99
  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.pre67
4
+ version: 0.0.0.pre68
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy