mushin 0.0.0.pre44 → 0.0.0.pre45
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 +12 -64
- 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: 959da7c4d30dc339ba3cf0f83d5d68ce2c7f7421
|
4
|
+
data.tar.gz: 1b32f29c40158a46adcb3705ee88f3382eabc0b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36aa96d41d3f6e7ad4c65f93a3c26c40cc6240b4267480c2cbbfd50f36b9172a7cc63a4d9da4a542711a274c15e36dcb48b3b223dfa5c0e57154210a7b850ae6
|
7
|
+
data.tar.gz: 96563ee189baba19c9110d6827d4475b2ffc369be950a77223de658e48a55ae1984f34605cac9918ed66e24de426fd2e582b60b99dca23f8adf095e78af66a7f
|
data/lib/mushin/base.rb
CHANGED
@@ -69,74 +69,22 @@ module Mushin
|
|
69
69
|
mod.send(:include, self)
|
70
70
|
end
|
71
71
|
|
72
|
-
|
73
|
-
def
|
74
|
-
@
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
@statment = Mushin::DSL::Statment.new statment
|
81
|
-
|
82
|
-
def activation name, opts={}, params={}
|
83
|
-
@activation = Mushin::DSL::Activation.new name, opts, params
|
84
|
-
@statment.activations << @activation
|
85
|
-
end
|
86
|
-
#Mushin::DSL::Notebook.class_eval do
|
87
|
-
Mushin::DSL::Notebook.instance_eval do
|
88
|
-
alias_method @activation_construct, :activation
|
89
|
-
#p activation_construct
|
90
|
-
#alias activation_construct :activation
|
91
|
-
end
|
92
|
-
yield
|
93
|
-
@context.statments << @statment
|
94
|
-
@statment = nil
|
95
|
-
end
|
96
|
-
#Mushin::DSL::Notebook.class_eval do
|
97
|
-
Mushin::DSL::Notebook.instance_eval do
|
98
|
-
alias_method @statment_construct, :statment
|
99
|
-
end
|
100
|
-
yield
|
101
|
-
@@contexts << @context
|
102
|
-
@context = nil
|
103
|
-
end
|
104
|
-
alias_method context_construct, :context
|
105
|
-
#alias context_construct :context
|
106
|
-
end
|
107
|
-
=begin
|
108
|
-
def self.build context_construct, statment_construct, activation_construct
|
109
|
-
@@statment_construct = statment_construct
|
110
|
-
@@activation_construct = activation_construct
|
111
|
-
@@contexts = []
|
112
|
-
def context title, &block
|
113
|
-
@context = Mushin::DSL::Context.new title
|
114
|
-
def statment statment=[], &block
|
115
|
-
@statment = Mushin::DSL::Statment.new statment
|
116
|
-
|
117
|
-
def activation name, opts={}, params={}
|
118
|
-
@activation = Mushin::DSL::Activation.new name, opts, params
|
119
|
-
@statment.activations << @activation
|
120
|
-
end
|
121
|
-
#Mushin::DSL::Notebook.class_eval do
|
122
|
-
Mushin::DSL::Notebook.instance_eval do
|
123
|
-
alias_method @@activation_construct, :activation
|
124
|
-
end
|
125
|
-
yield
|
126
|
-
@context.statments << @statment
|
127
|
-
@statment = nil
|
128
|
-
end
|
129
|
-
#Mushin::DSL::Notebook.class_eval do
|
130
|
-
Mushin::DSL::Notebook.instance_eval do
|
131
|
-
alias_method @@statment_construct, :statment
|
72
|
+
@@contexts = []
|
73
|
+
def context title, &block
|
74
|
+
@context = Mushin::DSL::Context.new title
|
75
|
+
def statment statment=[], &block
|
76
|
+
@statment = Mushin::DSL::Statment.new statment
|
77
|
+
def activation name, opts={}, params={}
|
78
|
+
@activation = Mushin::DSL::Activation.new name, opts, params
|
79
|
+
@statment.activations << @activation
|
132
80
|
end
|
133
81
|
yield
|
134
|
-
|
135
|
-
@context = nil
|
82
|
+
@context.statments << @statment
|
136
83
|
end
|
137
|
-
|
84
|
+
yield
|
85
|
+
@@contexts << @context
|
138
86
|
end
|
139
|
-
|
87
|
+
|
140
88
|
def self.find activity_context, activity_statment
|
141
89
|
@@middlewares = []
|
142
90
|
@@contexts.each do |current_context|
|