gameon 0.0.0.pre47 → 0.0.0.pre48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +20 -23
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90c4fe14bed559d1605c390e81972dfb8caec4db
|
4
|
+
data.tar.gz: 480fd2135c8f629d1c6c4de7c725e0b7c7904a4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
#@ds = 'GameOn::Persistence::DS'
|
49
|
+
#@domain_folder = 'gameon'
|
50
|
+
#attr_accessor :ds
|
51
|
+
#@ds = 'GameOn::Persistence::DS'
|
53
52
|
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
def self.get id
|
54
|
+
GameOn::Persistence::DS.load id
|
55
|
+
end
|
57
56
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
|
-
|
69
|
+
Dir["./gameon/*"].each {|file| load file }
|
71
70
|
|
72
|
-
|
73
|
-
|
74
|
-
|
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
|