stumb 0.0.2 → 0.0.3

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 (2) hide show
  1. data/lib/stumb.rb +2 -2
  2. metadata +1 -1
@@ -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.2'
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
- instance_eval(&block) if block_given?
19
+ yield self, stub if block_given?
20
20
  map("/") { run stub }
21
21
  }
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stumb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - moro