gameon 0.0.0.pre36 → 0.0.0.pre37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +20 -19
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee697dafda427c1e4f5d5c75471992c8f06017cd
4
- data.tar.gz: 6be9be352f5f32d4d36bf1e67f1563e38c5a0ae6
3
+ metadata.gz: 8b13508a6919b9f8f63aa3bec06ed85d8f885866
4
+ data.tar.gz: 8f5495c75276c282c9bb7051e398c0cfc6887e58
5
5
  SHA512:
6
- metadata.gz: a53a156b827f028be7bbf5e5860806521e2277d5a84e7735333eff3b4aef6b376de05e93091725a1d46da61d93448436b65feae3d7e271071b7d709232e173dc
7
- data.tar.gz: 420539ac9cafe0ced322cdfd7dba8b9d9e6a8668a79e14b3eb3e747bf26c78f3632c953885991de851ab2fc6a4b60b28d7dab1202ea1a7396e05f078f4412af4
6
+ metadata.gz: 8d001808fad25892bf214a4760d738323946a3fea675615dd8f60b2480470aa9470476f17b972dae76501606a183edd163185bfb857789f18406e8dbf54cca9d
7
+ data.tar.gz: 51bd413f64c81176a98c6190da9a4e332226253df98639be0ffa840976ca4016eb21ebc1c34aaa699240519242f425e41256289392e450e0095da0b44c5dbf17
data/lib/gameon/base.rb CHANGED
@@ -29,31 +29,32 @@ module GameOn
29
29
 
30
30
  module Env
31
31
  extend Mushin::Env
32
+ class << self
33
+ @domain_folder = 'gameon'
34
+ @ds = 'GameOn::Persistence::DS'
32
35
 
33
- @domain_folder = 'gameon'
34
- @ds = 'GameOn::Persistence::DS'
35
-
36
- def get id
37
- GameOn::Persistence::DS.load id
38
- end
36
+ def get id
37
+ GameOn::Persistence::DS.load id
38
+ end
39
39
 
40
- def set id, &block
41
- @id = id
42
- def on domain_context, &block
43
- @domain_context = domain_context
44
- @activities = []
45
- def activity statment
46
- @activities += [statment]
40
+ def set id, &block
41
+ @id = id
42
+ def on domain_context, &block
43
+ @domain_context = domain_context
44
+ @activities = []
45
+ def activity statment
46
+ @activities += [statment]
47
+ end
48
+ instance_eval(&block)
47
49
  end
48
50
  instance_eval(&block)
49
- end
50
- instance_eval(&block)
51
51
 
52
- Dir["./#{@domain_folder}/*"].each {|file| load file }
52
+ Dir["./#{@domain_folder}/*"].each {|file| load file }
53
53
 
54
- Mushin::Engine.setup [Object.const_get(@@ds)]
55
- @activities.each do |activity|
56
- Mushin::Engine.run @domain_context, activity
54
+ Mushin::Engine.setup [Object.const_get(@@ds)]
55
+ @activities.each do |activity|
56
+ Mushin::Engine.run @domain_context, activity
57
+ end
57
58
  end
58
59
  end
59
60
  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.pre36
4
+ version: 0.0.0.pre37
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy