stumb 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stumb.rb +2 -2
- metadata +1 -1
data/lib/stumb.rb
CHANGED
@@ -6,7 +6,7 @@ module Stumb
|
|
6
6
|
autoload :Stamp, 'stumb/stamp'
|
7
7
|
autoload :StampSheet, 'stumb/stamp_sheet'
|
8
8
|
|
9
|
-
Version = '0.0.
|
9
|
+
Version = '0.0.3'
|
10
10
|
|
11
11
|
def to_app(response, sheet_path = "/sheet", &block)
|
12
12
|
Rack::Builder.new {
|
@@ -16,7 +16,7 @@ module Stumb
|
|
16
16
|
sheet = StampSheet.new(stub)
|
17
17
|
|
18
18
|
map(sheet_path) { run sheet }
|
19
|
-
|
19
|
+
yield self, stub if block_given?
|
20
20
|
map("/") { run stub }
|
21
21
|
}
|
22
22
|
end
|