gameon 0.0.0.pre47 → 0.0.0.pre48

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 -23
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9929673768cb43882185f30ba196c0567f54ba76
4
- data.tar.gz: 82f45d639a8a2fb1fe71ce4635631c983dc945e2
3
+ metadata.gz: 90c4fe14bed559d1605c390e81972dfb8caec4db
4
+ data.tar.gz: 480fd2135c8f629d1c6c4de7c725e0b7c7904a4a
5
5
  SHA512:
6
- metadata.gz: 790b0252853bc15bea07cba579d8f9fbd20bc9237ce99787eeaee5d2ce3511542e84be3ae2834f9b19740baa01ef593450e8c77d0fa66dc9b2f57ad0d9637629
7
- data.tar.gz: c975b3fdd6f178db2ddcb9d9d80e71aacd8fd0f2f6c08f30248d82972fb06022c0fedc80a57e95378e97820d01c3c7302268b337f96cc49eaaf7450cef762b54
6
+ metadata.gz: 463794534f2aa58fe18d46db50a00e37fb748ede0f649e29bd55ba48a4f9acc17b9d8a3c583136ab6d3543278bb248d9be8be433e5b4dc3399f0e8a237eaaa40
7
+ data.tar.gz: fbc33a2474c36acbf55715a5f702f1f77a1ea6af3e6933ab02f464cb0601a51cbbfff24faed936d3375f7ff4c8fcb2d649de3faab57a2c3d22caf7c6be8eee7a
data/lib/gameon/base.rb CHANGED
@@ -46,36 +46,33 @@ module GameOn
46
46
  class Env
47
47
  extend Mushin::Env
48
48
 
49
- class << self
50
- #@domain_folder = 'gameon'
51
- #attr_accessor :ds
52
- #@ds = 'GameOn::Persistence::DS'
49
+ #@domain_folder = 'gameon'
50
+ #attr_accessor :ds
51
+ #@ds = 'GameOn::Persistence::DS'
53
52
 
54
- def get id
55
- GameOn::Persistence::DS.load id
56
- end
53
+ def self.get id
54
+ GameOn::Persistence::DS.load id
55
+ end
57
56
 
58
- def set id, &block
59
- @id = id
60
- def on domain_context, &block
61
- @domain_context = domain_context
62
- @activities = []
63
- def activity statment
64
- @activities += [statment]
65
- end
66
- instance_eval(&block)
57
+ def self.set id, &block
58
+ @id = id
59
+ def on domain_context, &block
60
+ @domain_context = domain_context
61
+ @activities = []
62
+ def activity statment
63
+ @activities += [statment]
67
64
  end
68
65
  instance_eval(&block)
66
+ end
67
+ instance_eval(&block)
69
68
 
70
- Dir["./gameon/*"].each {|file| load file }
69
+ Dir["./gameon/*"].each {|file| load file }
71
70
 
72
- GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
73
- @activities.each do |activity|
74
- GameOn::Engine.run @domain_context, activity
75
- end
71
+ GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
72
+ @activities.each do |activity|
73
+ GameOn::Engine.run @domain_context, activity
76
74
  end
77
- return get @id
78
75
  end
76
+ return GameOn::Env.get @id
79
77
  end
80
-
81
78
  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.pre47
4
+ version: 0.0.0.pre48
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy