mushin 0.0.0.pre76 → 0.0.0.pre77

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 +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0b3c819b91d7fda0dae443e803dc53bf4e08a9e
4
- data.tar.gz: 51d0d4b5537055a736fcd181fc919516c8435bc4
3
+ metadata.gz: 8c5067a9017fe3caca4aa75fcacfec24c170f9ee
4
+ data.tar.gz: d646bd926a86bf82f62b0f68e4c1eef4c784e387
5
5
  SHA512:
6
- metadata.gz: da3bfccc7f983b54125aec2dd7b6dca0babd83048230fbb9040c043487829ac12f680e8debdd82dfc3608672dbfe5fff74ef49e7cb4506ebffe7174980a0c742
7
- data.tar.gz: 33396077f04e519be26db01693cde6a4ebbe79d92e070dbab0406be2489a90f3915dc2548767ac1db78a03d769477d9a3c7970289bbfcab00e46b3ab2cb36f24
6
+ metadata.gz: 455693b793a898b78ea6e7b052e5e38bd6b86782d974f82a0587a92f7a9b4f863674afada4564cbe7bb688495e446b5d0940b703fed23d805fbd8675dc1a5df1
7
+ data.tar.gz: 093ef13c855a3e6662b76220e62b977ad0e6e93b18270c0996b98aec2dc866fb22c7ea9d44b169bae4c8aef501d9b531eda9ac173cdbb8d79ace89dfe54c72ad
data/lib/mushin/base.rb CHANGED
@@ -84,13 +84,18 @@ module Mushin # Domain Frameworks Generator
84
84
  def activation name, opts={}, params={}
85
85
  @activation = Mushin::DSL::Activation.new name, opts, params
86
86
  @statment.activations << @activation
87
- @statment.activations.uniq #TODO fix the bug?
87
+ @statment.activations.uniq! #TODO fix the multi middleware calls bug
88
+ @statment.activations #TODO fix the multi middleware calls bug
88
89
  end
89
90
  yield
90
91
  @context.statments << @statment
92
+ @context.statments.uniq!
93
+ @context.statments
91
94
  end
92
95
  yield
93
96
  Mushin::DSL.contexts << @context
97
+ Mushin::DSL.contexts.uniq!
98
+ Mushin::DSL.contexts
94
99
  end
95
100
  end
96
101
 
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.pre76
4
+ version: 0.0.0.pre77
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy