artifice 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/artifice.rb +1 -1
- metadata +7 -4
data/lib/artifice.rb
CHANGED
@@ -89,7 +89,7 @@ private
|
|
89
89
|
prefix = "#{scheme}://#{addr_port}"
|
90
90
|
|
91
91
|
response = rack_request.request("#{prefix}#{req.path}",
|
92
|
-
{:method => req.method, :input => body})
|
92
|
+
{:method => req.method, :input => body || req.body})
|
93
93
|
|
94
94
|
make_net_http_response(response, &block)
|
95
95
|
end
|
metadata
CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
version: "0.
|
7
|
+
- 6
|
8
|
+
version: "0.6"
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- Yehuda Katz
|
@@ -13,13 +13,14 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2010-
|
16
|
+
date: 2010-10-25 00:00:00 -02:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rack-test
|
21
21
|
prerelease: false
|
22
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
23
24
|
requirements:
|
24
25
|
- - ">="
|
25
26
|
- !ruby/object:Gem::Version
|
@@ -50,6 +51,7 @@ rdoc_options:
|
|
50
51
|
require_paths:
|
51
52
|
- lib
|
52
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
53
55
|
requirements:
|
54
56
|
- - ">="
|
55
57
|
- !ruby/object:Gem::Version
|
@@ -59,6 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
61
|
- 6
|
60
62
|
version: 1.8.6
|
61
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
62
65
|
requirements:
|
63
66
|
- - ">="
|
64
67
|
- !ruby/object:Gem::Version
|
@@ -68,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
71
|
requirements: []
|
69
72
|
|
70
73
|
rubyforge_project: artifice
|
71
|
-
rubygems_version: 1.3.
|
74
|
+
rubygems_version: 1.3.7
|
72
75
|
signing_key:
|
73
76
|
specification_version: 3
|
74
77
|
summary: Use a Rack application for mock HTTP requests
|