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.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +15 -11
- 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: 39b6225c2deda67988fe3f9a3232180581e1e899
|
4
|
+
data.tar.gz: 6dd0784d2812f1f8ed326d51e600837b0472c010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
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
|