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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mushin/base.rb +16 -16
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00a83f0a0f9c1fb49634b5bb94336ab1d7c6f5d0
4
- data.tar.gz: a4754f001ac040ba449b7713fdc3fb359047d621
3
+ metadata.gz: a1ab316e9f25fdf3acb7fb88255fe6392a09b54d
4
+ data.tar.gz: 2cb87be029a0583c52830d60e6b0ec305933cccd
5
5
  SHA512:
6
- metadata.gz: 52f20bfb92f8dac84c8cd133f6edc40199f9ecc7f8d64d3c4b3bd9163e4082f53c471a346db0c1b13e43ba59a246e3f26fb91cc3cb4cf10bf8e42003ff175db8
7
- data.tar.gz: aab04e8616c8bd6634597da17d47073a611393efb570dfd2b97147cd7a694ae958c5dd4021abf805cc018c95a374d64e66e85ce04cdd7470f401cc7e9fc900d7
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre39
4
+ version: 0.0.0.pre40
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy