mushin 0.0.0.pre71 → 0.0.0.pre72

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d57f2e6944a037cda65a816b645a05dae0d2d41d
4
- data.tar.gz: e714a1c94cf7bf732be3577b9884484a66dedc58
3
+ metadata.gz: f4c4b9b5fef1b02f25f8f9d76ceed3bb2f6a9ed0
4
+ data.tar.gz: 020d4651794158b274f4f1e7496b8f1920a597bf
5
5
  SHA512:
6
- metadata.gz: 4cf34a8360f6922555b6f7ac62a891064c3b3fab88e639f697e2ede00d7b0cd1d0a17ef925ff49e6ed298c7f6d68ddda8c0771509b1c31cca3e0fde73f362676
7
- data.tar.gz: c3285d735e55467a426351348c56d84b394ae30eab6ec502059778959e4ff0964becd82aa038d3d97c2309cf2ff2b58d18c94714380daf684ae964ab97100d17
6
+ metadata.gz: 561e681f051f032ac312387827a9dc74e714e31dc93d3348107719a7ffdc1806cdc8e372c399eca0d1541bfdbee4d8362ed562ab7c9aecb845ffe48a2f1977f8
7
+ data.tar.gz: 77612d70fee6d42c66457af722f790f5cbe3a431c127c0b7c2123b61f99a41be908c4abc3369e1d0accf604b8536017f2753cb8e0c7f8b0dfe145db58606e74f
data/bin/mushin CHANGED
@@ -84,7 +84,8 @@ when "roll"
84
84
  #!/usr/bin/env ruby
85
85
 
86
86
  require 'fileutils'
87
- @name = "Points".capitalize
87
+ #TODO some input using STDIN.gets.strip to setup the name of the middleware
88
+ @name = "SomeName".capitalize
88
89
  @middleware = '#{@framework.downcase}-' + @name.downcase
89
90
 
90
91
  # Generates a #{@framework.capitalize} Middleware Gem
@@ -104,8 +104,12 @@ module Mushin
104
104
  def call(env = Hash.new)
105
105
  #def call(env=nil)
106
106
  to_app.call(env)
107
+ reset
107
108
  end
108
109
 
110
+ def reset
111
+ @stack = []
112
+ end
109
113
  protected
110
114
 
111
115
  # Returns the numeric index for the given middleware object.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre71
4
+ version: 0.0.0.pre72
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-20 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: In the beginner’s mind there are many possibilities, in the expert’s
14
14
  mind there are few!