mushin 0.0.0.pre13 → 0.0.0.pre14
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.
- checksums.yaml +4 -4
- data/lib/mushin/base.rb +5 -1
- 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: 6ba092838fade8bafda76e70baee4244259e58c6
|
4
|
+
data.tar.gz: 760719f68e94cc88f2392098cee9e62b3abe4bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1761e214a4d1d30bc6fbac892365da0b08222ed4ce7f804af75cf0f807922b618544a70f5b43e8253681dfee0d7e0fcb1a82c56c1d293d86c4871c77ff0a2894
|
7
|
+
data.tar.gz: d0c6e0037c93d3a8fb77828d9935ca6aac24fb9568323555293e848db677cb80548e9ed614716dbdcf29b921b84390804c99ee6e4becec7954e267dff1f0e8e5
|
data/lib/mushin/base.rb
CHANGED
@@ -95,6 +95,10 @@ module Mushin
|
|
95
95
|
class_eval &block
|
96
96
|
end
|
97
97
|
|
98
|
+
def Env.persistence ds
|
99
|
+
@@ds = ds
|
100
|
+
end
|
101
|
+
|
98
102
|
def Env.activate id, &block
|
99
103
|
@id = id
|
100
104
|
def self.on domain_context, &block
|
@@ -106,7 +110,7 @@ module Mushin
|
|
106
110
|
instance_eval(&block)
|
107
111
|
end
|
108
112
|
instance_eval(&block)
|
109
|
-
Mushin::Engine.setup
|
113
|
+
Mushin::Engine.setup @@ds
|
110
114
|
@@activities.each do |activity|
|
111
115
|
#Mushin::Engine.setup [GameOn::Persistence::DS]
|
112
116
|
Mushin::Engine.run @@domain_context, activity
|