mushin 0.0.0.pre35 → 0.0.0.pre36
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 +4 -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: 260a390470e005bdf9d2c7fef025c797db59deb4
|
4
|
+
data.tar.gz: 7f2050c04ea5d24b3d46131580a1d564520aadf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 478dd8f57ab6a9f963043ab167e6b5077cc4f168e848d4c401f48e402041c1261065a4a594b6bdb9dd4cf8d91f369581206c75e604a9e293c5e925511e59dcf0
|
7
|
+
data.tar.gz: 2d2da706343c507a3ac11645ea9d0fdd77fdaee08efc5e03f90ceef33c2b99696e1b38410969df04c21d550d2ad0d911173839422b64297a6e583acb431ea5ec
|
data/lib/mushin/base.rb
CHANGED
@@ -119,9 +119,6 @@ module Mushin
|
|
119
119
|
|
120
120
|
class Env
|
121
121
|
@@ds = ''
|
122
|
-
#class << self
|
123
|
-
# attr_accessor :id
|
124
|
-
#end
|
125
122
|
|
126
123
|
def Env.register &block
|
127
124
|
class_eval &block
|
@@ -133,26 +130,10 @@ module Mushin
|
|
133
130
|
#end
|
134
131
|
|
135
132
|
def Env.set id, &block
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
@@domain_context = domain_context
|
141
|
-
@@activities = []
|
142
|
-
def self.activity statment
|
143
|
-
@@activities += [statment]
|
144
|
-
end
|
145
|
-
#instance_eval(&block)
|
146
|
-
class_eval(&block)
|
147
|
-
end
|
148
|
-
#instance_eval(&block)
|
149
|
-
class_eval(&block)
|
150
|
-
#end
|
151
|
-
#def Env.live
|
152
|
-
Mushin::Engine.setup [Object.const_get(@@ds)]
|
153
|
-
@@activities.each do |activity|
|
154
|
-
Mushin::Engine.run @@domain_context, activity
|
155
|
-
end
|
133
|
+
raise "Framework didn't implement Env.set"
|
134
|
+
end
|
135
|
+
def Env.get id
|
136
|
+
raise "Framework didn't implement Env.get"
|
156
137
|
end
|
157
138
|
end
|
158
139
|
|