mushin 0.0.0.pre39 → 0.0.0.pre40
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 +16 -16
- 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: a1ab316e9f25fdf3acb7fb88255fe6392a09b54d
|
4
|
+
data.tar.gz: 2cb87be029a0583c52830d60e6b0ec305933cccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64c925ac1874be7462ba06a6796895ada42ffe23d785ae57a7e295105672c82ddbde728ab7beeb9512a3da63e14b54587d2e8319165de7c65d0c3065bb9c6bfc
|
7
|
+
data.tar.gz: 059da83c69195d6daceabf51efb4ad5ef5163588e5f25d98a96a26ac86b4ec46489ae0ddc9b0bcd75d6e75cdf9cfa998033422f2638ac716203993d98a2c0292
|
data/lib/mushin/base.rb
CHANGED
@@ -69,22 +69,6 @@ module Mushin
|
|
69
69
|
mod.send(:include, self)
|
70
70
|
end
|
71
71
|
|
72
|
-
def self.find activity_context, activity_statment
|
73
|
-
@@middlewares = []
|
74
|
-
@@contexts.each do |current_context|
|
75
|
-
if activity_context == current_context.title
|
76
|
-
current_context.statments.each do |statment|
|
77
|
-
if activity_statment == statment.title
|
78
|
-
statment.activations.each do |middleware|
|
79
|
-
@@middlewares << middleware
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
@@middlewares
|
86
|
-
end
|
87
|
-
|
88
72
|
def self.build context_construct, statment_construct, activation_construct
|
89
73
|
@@statment_construct = statment_construct
|
90
74
|
@@activation_construct = activation_construct
|
@@ -116,6 +100,22 @@ module Mushin
|
|
116
100
|
end
|
117
101
|
alias_method context_construct, :context
|
118
102
|
end
|
103
|
+
|
104
|
+
def self.find activity_context, activity_statment
|
105
|
+
@@middlewares = []
|
106
|
+
@@contexts.each do |current_context|
|
107
|
+
if activity_context == current_context.title
|
108
|
+
current_context.statments.each do |statment|
|
109
|
+
if activity_statment == statment.title
|
110
|
+
statment.activations.each do |middleware|
|
111
|
+
@@middlewares << middleware
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
@@middlewares
|
118
|
+
end
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|