webmock 1.7.6 → 1.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -1
- data/CHANGELOG.md +14 -0
- data/README.md +3 -0
- data/lib/webmock/http_lib_adapters/curb_adapter.rb +1 -1
- data/lib/webmock/http_lib_adapters/httpclient_adapter.rb +2 -2
- data/lib/webmock/http_lib_adapters/net_http_response.rb +3 -1
- data/lib/webmock/request_pattern.rb +5 -2
- data/lib/webmock/util/headers.rb +1 -1
- data/lib/webmock/util/json.rb +1 -1
- data/lib/webmock/version.rb +1 -1
- data/spec/acceptance/curb/curb_spec.rb +13 -0
- data/spec/acceptance/httpclient/httpclient_spec.rb +9 -0
- metadata +304 -296
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.7.7 - RuPy 2011 release
|
4
|
+
|
5
|
+
* Passing response object to a block passed to `HTTPClient#do_get_block`. This fixes `HTTPClient.get_content` failures. [issue 130](https://github.com/bblimke/webmock/pull/130)
|
6
|
+
|
7
|
+
Thanks to [Chris McGrath](https://github.com/chrismcg)
|
8
|
+
|
9
|
+
* Cleaned up ruby warnings when running WebMock code with `-w`.
|
10
|
+
|
11
|
+
Thanks to [Stephen Celis](https://github.com/stephencelis)
|
12
|
+
|
13
|
+
* Curb adapter now correctly calls on_failure for 4xx response codes.
|
14
|
+
|
15
|
+
Thanks to [Eugene Pimenov](https://github.com/libc)
|
16
|
+
|
3
17
|
## 1.7.6
|
4
18
|
|
5
19
|
* Support for the HTTPClient's request_filter feature
|
data/README.md
CHANGED
@@ -649,6 +649,9 @@ People who submitted patches and new features or suggested improvements. Many th
|
|
649
649
|
* David Yeu
|
650
650
|
* Andreas Garnæs
|
651
651
|
* Roman Shterenzon
|
652
|
+
* Chris McGrath
|
653
|
+
* Stephen Celis
|
654
|
+
* Eugene Pimenov
|
652
655
|
|
653
656
|
For a full list of contributors you can visit the
|
654
657
|
[contributors](https://github.com/bblimke/webmock/contributors) page.
|
@@ -103,7 +103,7 @@ if defined?(::HTTPClient)
|
|
103
103
|
raise HTTPClient::TimeoutError if webmock_response.should_timeout
|
104
104
|
webmock_response.raise_error_if_any
|
105
105
|
|
106
|
-
block.call(
|
106
|
+
block.call(response, body) if block
|
107
107
|
|
108
108
|
response
|
109
109
|
end
|
@@ -150,7 +150,7 @@ if defined?(::HTTPClient)
|
|
150
150
|
uri.userinfo = userinfo
|
151
151
|
end
|
152
152
|
|
153
|
-
|
153
|
+
WebMock::RequestSignature.new(
|
154
154
|
req.header.request_method.downcase.to_sym,
|
155
155
|
uri.to_s,
|
156
156
|
:body => req.content,
|
@@ -15,7 +15,9 @@
|
|
15
15
|
module Net
|
16
16
|
module WebMockHTTPResponse
|
17
17
|
def read_body(dest = nil, &block)
|
18
|
-
|
18
|
+
if !(defined?(@__read_body_previously_called).nil?) && @__read_body_previously_called
|
19
|
+
return super
|
20
|
+
end
|
19
21
|
return @body if dest.nil? && block.nil?
|
20
22
|
raise ArgumentError.new("both arg and block given for HTTP method") if dest && block
|
21
23
|
return nil if @body.nil?
|
@@ -5,8 +5,11 @@ module WebMock
|
|
5
5
|
attr_reader :method_pattern, :uri_pattern, :body_pattern, :headers_pattern
|
6
6
|
|
7
7
|
def initialize(method, uri, options = {})
|
8
|
-
@method_pattern
|
9
|
-
@uri_pattern
|
8
|
+
@method_pattern = MethodPattern.new(method)
|
9
|
+
@uri_pattern = create_uri_pattern(uri)
|
10
|
+
@body_pattern = nil
|
11
|
+
@headers_pattern = nil
|
12
|
+
@with_block = nil
|
10
13
|
assign_options(options)
|
11
14
|
end
|
12
15
|
|
data/lib/webmock/util/headers.rb
CHANGED
@@ -24,7 +24,7 @@ module WebMock
|
|
24
24
|
str << headers.map do |k,v|
|
25
25
|
v = case v
|
26
26
|
when Regexp then v.inspect
|
27
|
-
when Array then "["+v.map{|
|
27
|
+
when Array then "["+v.map{|w| "'#{w.to_s}'"}.join(", ")+"]"
|
28
28
|
else "'#{v.to_s}'"
|
29
29
|
end
|
30
30
|
"'#{k}'=>#{v}"
|
data/lib/webmock/util/json.rb
CHANGED
data/lib/webmock/version.rb
CHANGED
@@ -42,6 +42,19 @@ unless RUBY_PLATFORM =~ /java/
|
|
42
42
|
test.should == body
|
43
43
|
end
|
44
44
|
|
45
|
+
it "should call on_failure with 4xx response" do
|
46
|
+
response_code = 403
|
47
|
+
stub_request(:any, "example.com").
|
48
|
+
to_return(:status => [response_code, "None shall pass"])
|
49
|
+
|
50
|
+
test = nil
|
51
|
+
@curl.on_failure do |c, code|
|
52
|
+
test = code
|
53
|
+
end
|
54
|
+
@curl.http_get
|
55
|
+
test.should == response_code
|
56
|
+
end
|
57
|
+
|
45
58
|
it "should call on_failure with 5xx response" do
|
46
59
|
response_code = 599
|
47
60
|
stub_request(:any, "example.com").
|
@@ -37,6 +37,15 @@ describe "HTTPClient" do
|
|
37
37
|
include_examples "with WebMock"
|
38
38
|
end
|
39
39
|
|
40
|
+
it "should work with get_content" do
|
41
|
+
stub_request(:get, 'www.example.com').to_return(:status => 200, :body => 'test', :headers => {})
|
42
|
+
str = ''
|
43
|
+
HTTPClient.get_content('www.example.com') do |content|
|
44
|
+
str << content
|
45
|
+
end
|
46
|
+
str.should == 'test'
|
47
|
+
end
|
48
|
+
|
40
49
|
context "Filters" do
|
41
50
|
class Filter
|
42
51
|
def filter_request(request)
|
metadata
CHANGED
@@ -1,316 +1,324 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: webmock
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.6
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 1.7.7
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- Bartosz Blimke
|
7
|
+
authors:
|
8
|
+
- Bartosz Blimke
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
12
|
+
|
13
|
+
date: 2011-10-15 00:00:00 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: addressable
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "2.2"
|
25
|
+
- - ">"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.2.5
|
28
|
+
type: :runtime
|
29
|
+
version_requirements: *id001
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: crack
|
32
|
+
prerelease: false
|
33
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 0.1.7
|
39
|
+
type: :runtime
|
40
|
+
version_requirements: *id002
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
prerelease: false
|
44
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.0.0
|
50
|
+
type: :development
|
51
|
+
version_requirements: *id003
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: httpclient
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.1.5.2
|
61
|
+
type: :development
|
62
|
+
version_requirements: *id004
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: patron
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 0.4.15
|
72
|
+
type: :development
|
73
|
+
version_requirements: *id005
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: em-http-request
|
76
|
+
prerelease: false
|
77
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.3.0
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id006
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: curb
|
87
|
+
prerelease: false
|
88
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.7.8
|
94
|
+
type: :development
|
95
|
+
version_requirements: *id007
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: typhoeus
|
98
|
+
prerelease: false
|
99
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.2.4
|
105
|
+
type: :development
|
106
|
+
version_requirements: *id008
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: minitest
|
109
|
+
prerelease: false
|
110
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 2.2.2
|
116
|
+
type: :development
|
117
|
+
version_requirements: *id009
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rdoc
|
120
|
+
prerelease: false
|
121
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ">"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 3.5.0
|
127
|
+
type: :development
|
128
|
+
version_requirements: *id010
|
129
|
+
description: WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
|
130
|
+
email:
|
131
|
+
- bartosz.blimke@gmail.com
|
131
132
|
executables: []
|
133
|
+
|
132
134
|
extensions: []
|
135
|
+
|
133
136
|
extra_rdoc_files: []
|
134
|
-
|
135
|
-
|
136
|
-
- .
|
137
|
-
- .
|
138
|
-
- .
|
139
|
-
- .
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
- lib/webmock
|
148
|
-
- lib/webmock/
|
149
|
-
- lib/webmock/
|
150
|
-
- lib/webmock/
|
151
|
-
- lib/webmock/
|
152
|
-
- lib/webmock/
|
153
|
-
- lib/webmock/
|
154
|
-
- lib/webmock/
|
155
|
-
- lib/webmock/http_lib_adapters/
|
156
|
-
- lib/webmock/http_lib_adapters/em_http_request/
|
157
|
-
- lib/webmock/http_lib_adapters/
|
158
|
-
- lib/webmock/http_lib_adapters/
|
159
|
-
- lib/webmock/http_lib_adapters/
|
160
|
-
- lib/webmock/http_lib_adapters/
|
161
|
-
- lib/webmock/http_lib_adapters/
|
162
|
-
- lib/webmock/http_lib_adapters/
|
163
|
-
- lib/webmock/http_lib_adapters/
|
164
|
-
- lib/webmock/http_lib_adapters/
|
165
|
-
- lib/webmock/
|
166
|
-
- lib/webmock/
|
167
|
-
- lib/webmock/
|
168
|
-
- lib/webmock/
|
169
|
-
- lib/webmock/
|
170
|
-
- lib/webmock/
|
171
|
-
- lib/webmock/
|
172
|
-
- lib/webmock/
|
173
|
-
- lib/webmock/
|
174
|
-
- lib/webmock/
|
175
|
-
- lib/webmock/rspec
|
176
|
-
- lib/webmock/rspec/matchers
|
177
|
-
- lib/webmock/rspec/matchers/
|
178
|
-
- lib/webmock/
|
179
|
-
- lib/webmock/
|
180
|
-
- lib/webmock/
|
181
|
-
- lib/webmock/
|
182
|
-
- lib/webmock/util/
|
183
|
-
- lib/webmock/util/
|
184
|
-
- lib/webmock/util/
|
185
|
-
- lib/webmock/util/
|
186
|
-
- lib/webmock/
|
187
|
-
- lib/webmock/
|
188
|
-
-
|
189
|
-
- minitest/
|
190
|
-
- minitest/
|
191
|
-
-
|
192
|
-
- spec/acceptance/curb/
|
193
|
-
- spec/acceptance/
|
194
|
-
- spec/acceptance/em_http_request/
|
195
|
-
- spec/acceptance/
|
196
|
-
- spec/acceptance/httpclient/
|
197
|
-
- spec/acceptance/
|
198
|
-
- spec/acceptance/net_http/
|
199
|
-
- spec/acceptance/net_http/
|
200
|
-
- spec/acceptance/net_http/
|
201
|
-
- spec/acceptance/
|
202
|
-
- spec/acceptance/patron/
|
203
|
-
- spec/acceptance/
|
204
|
-
- spec/acceptance/shared/
|
205
|
-
- spec/acceptance/shared/
|
206
|
-
- spec/acceptance/shared/
|
207
|
-
- spec/acceptance/shared/
|
208
|
-
- spec/acceptance/shared/
|
209
|
-
- spec/acceptance/shared/
|
210
|
-
- spec/acceptance/
|
211
|
-
- spec/acceptance/typhoeus/
|
212
|
-
- spec/acceptance/
|
213
|
-
- spec/
|
214
|
-
- spec/
|
215
|
-
- spec/
|
216
|
-
- spec/support/
|
217
|
-
- spec/support/
|
218
|
-
- spec/support/
|
219
|
-
- spec/
|
220
|
-
- spec/unit/
|
221
|
-
- spec/unit/http_lib_adapters/
|
222
|
-
- spec/unit/
|
223
|
-
- spec/unit/
|
224
|
-
- spec/unit/
|
225
|
-
- spec/unit/
|
226
|
-
- spec/unit/
|
227
|
-
- spec/unit/
|
228
|
-
- spec/unit/
|
229
|
-
- spec/unit/
|
230
|
-
- spec/unit/
|
231
|
-
- spec/unit/
|
232
|
-
- spec/unit/util/
|
233
|
-
- spec/unit/util/
|
234
|
-
- spec/unit/util/
|
235
|
-
- spec/unit/util/
|
236
|
-
- spec/unit/
|
237
|
-
-
|
238
|
-
- test/
|
239
|
-
- test/
|
240
|
-
- test/
|
241
|
-
-
|
137
|
+
|
138
|
+
files:
|
139
|
+
- .gemtest
|
140
|
+
- .gitignore
|
141
|
+
- .rspec-tm
|
142
|
+
- .rvmrc
|
143
|
+
- .travis.yml
|
144
|
+
- CHANGELOG.md
|
145
|
+
- Gemfile
|
146
|
+
- Guardfile
|
147
|
+
- LICENSE
|
148
|
+
- README.md
|
149
|
+
- Rakefile
|
150
|
+
- lib/webmock.rb
|
151
|
+
- lib/webmock/api.rb
|
152
|
+
- lib/webmock/assertion_failure.rb
|
153
|
+
- lib/webmock/callback_registry.rb
|
154
|
+
- lib/webmock/config.rb
|
155
|
+
- lib/webmock/cucumber.rb
|
156
|
+
- lib/webmock/deprecation.rb
|
157
|
+
- lib/webmock/errors.rb
|
158
|
+
- lib/webmock/http_lib_adapters/curb_adapter.rb
|
159
|
+
- lib/webmock/http_lib_adapters/em_http_request/em_http_request_0_x.rb
|
160
|
+
- lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb
|
161
|
+
- lib/webmock/http_lib_adapters/em_http_request_adapter.rb
|
162
|
+
- lib/webmock/http_lib_adapters/http_lib_adapter.rb
|
163
|
+
- lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
|
164
|
+
- lib/webmock/http_lib_adapters/httpclient_adapter.rb
|
165
|
+
- lib/webmock/http_lib_adapters/net_http.rb
|
166
|
+
- lib/webmock/http_lib_adapters/net_http_response.rb
|
167
|
+
- lib/webmock/http_lib_adapters/patron_adapter.rb
|
168
|
+
- lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
|
169
|
+
- lib/webmock/minitest.rb
|
170
|
+
- lib/webmock/rack_response.rb
|
171
|
+
- lib/webmock/request_execution_verifier.rb
|
172
|
+
- lib/webmock/request_pattern.rb
|
173
|
+
- lib/webmock/request_registry.rb
|
174
|
+
- lib/webmock/request_signature.rb
|
175
|
+
- lib/webmock/request_stub.rb
|
176
|
+
- lib/webmock/response.rb
|
177
|
+
- lib/webmock/responses_sequence.rb
|
178
|
+
- lib/webmock/rspec.rb
|
179
|
+
- lib/webmock/rspec/matchers.rb
|
180
|
+
- lib/webmock/rspec/matchers/request_pattern_matcher.rb
|
181
|
+
- lib/webmock/rspec/matchers/webmock_matcher.rb
|
182
|
+
- lib/webmock/stub_registry.rb
|
183
|
+
- lib/webmock/stub_request_snippet.rb
|
184
|
+
- lib/webmock/test_unit.rb
|
185
|
+
- lib/webmock/util/hash_counter.rb
|
186
|
+
- lib/webmock/util/hash_keys_stringifier.rb
|
187
|
+
- lib/webmock/util/headers.rb
|
188
|
+
- lib/webmock/util/json.rb
|
189
|
+
- lib/webmock/util/uri.rb
|
190
|
+
- lib/webmock/version.rb
|
191
|
+
- lib/webmock/webmock.rb
|
192
|
+
- minitest/test_helper.rb
|
193
|
+
- minitest/test_webmock.rb
|
194
|
+
- minitest/webmock_spec.rb
|
195
|
+
- spec/acceptance/curb/curb_spec.rb
|
196
|
+
- spec/acceptance/curb/curb_spec_helper.rb
|
197
|
+
- spec/acceptance/em_http_request/em_http_request_spec.rb
|
198
|
+
- spec/acceptance/em_http_request/em_http_request_spec_helper.rb
|
199
|
+
- spec/acceptance/httpclient/httpclient_spec.rb
|
200
|
+
- spec/acceptance/httpclient/httpclient_spec_helper.rb
|
201
|
+
- spec/acceptance/net_http/net_http_shared.rb
|
202
|
+
- spec/acceptance/net_http/net_http_spec.rb
|
203
|
+
- spec/acceptance/net_http/net_http_spec_helper.rb
|
204
|
+
- spec/acceptance/net_http/real_net_http_spec.rb
|
205
|
+
- spec/acceptance/patron/patron_spec.rb
|
206
|
+
- spec/acceptance/patron/patron_spec_helper.rb
|
207
|
+
- spec/acceptance/shared/allowing_and_disabling_net_connect.rb
|
208
|
+
- spec/acceptance/shared/callbacks.rb
|
209
|
+
- spec/acceptance/shared/enabling_and_disabling_webmock.rb
|
210
|
+
- spec/acceptance/shared/precedence_of_stubs.rb
|
211
|
+
- spec/acceptance/shared/request_expectations.rb
|
212
|
+
- spec/acceptance/shared/returning_declared_responses.rb
|
213
|
+
- spec/acceptance/shared/stubbing_requests.rb
|
214
|
+
- spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
|
215
|
+
- spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
|
216
|
+
- spec/acceptance/webmock_shared.rb
|
217
|
+
- spec/quality_spec.rb
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
- spec/support/example_curl_output.txt
|
220
|
+
- spec/support/my_rack_app.rb
|
221
|
+
- spec/support/network_connection.rb
|
222
|
+
- spec/support/webmock_server.rb
|
223
|
+
- spec/unit/errors_spec.rb
|
224
|
+
- spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
|
225
|
+
- spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
|
226
|
+
- spec/unit/rack_response_spec.rb
|
227
|
+
- spec/unit/request_execution_verifier_spec.rb
|
228
|
+
- spec/unit/request_pattern_spec.rb
|
229
|
+
- spec/unit/request_registry_spec.rb
|
230
|
+
- spec/unit/request_signature_spec.rb
|
231
|
+
- spec/unit/request_stub_spec.rb
|
232
|
+
- spec/unit/response_spec.rb
|
233
|
+
- spec/unit/stub_registry_spec.rb
|
234
|
+
- spec/unit/stub_request_snippet_spec.rb
|
235
|
+
- spec/unit/util/hash_counter_spec.rb
|
236
|
+
- spec/unit/util/hash_keys_stringifier_spec.rb
|
237
|
+
- spec/unit/util/headers_spec.rb
|
238
|
+
- spec/unit/util/json_spec.rb
|
239
|
+
- spec/unit/util/uri_spec.rb
|
240
|
+
- spec/unit/webmock_spec.rb
|
241
|
+
- test/http_request.rb
|
242
|
+
- test/shared_test.rb
|
243
|
+
- test/test_helper.rb
|
244
|
+
- test/test_webmock.rb
|
245
|
+
- webmock.gemspec
|
246
|
+
has_rdoc: true
|
242
247
|
homepage: http://github.com/bblimke/webmock
|
243
248
|
licenses: []
|
249
|
+
|
244
250
|
post_install_message:
|
245
251
|
rdoc_options: []
|
246
|
-
|
247
|
-
|
248
|
-
|
252
|
+
|
253
|
+
require_paths:
|
254
|
+
- lib
|
255
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
249
256
|
none: false
|
250
|
-
requirements:
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: "0"
|
261
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
262
|
none: false
|
256
|
-
requirements:
|
257
|
-
|
258
|
-
|
259
|
-
|
263
|
+
requirements:
|
264
|
+
- - ">="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: "0"
|
260
267
|
requirements: []
|
268
|
+
|
261
269
|
rubyforge_project: webmock
|
262
|
-
rubygems_version: 1.
|
270
|
+
rubygems_version: 1.5.1
|
263
271
|
signing_key:
|
264
272
|
specification_version: 3
|
265
273
|
summary: Library for stubbing HTTP requests in Ruby.
|
266
|
-
test_files:
|
267
|
-
- spec/acceptance/curb/curb_spec.rb
|
268
|
-
- spec/acceptance/curb/curb_spec_helper.rb
|
269
|
-
- spec/acceptance/em_http_request/em_http_request_spec.rb
|
270
|
-
- spec/acceptance/em_http_request/em_http_request_spec_helper.rb
|
271
|
-
- spec/acceptance/httpclient/httpclient_spec.rb
|
272
|
-
- spec/acceptance/httpclient/httpclient_spec_helper.rb
|
273
|
-
- spec/acceptance/net_http/net_http_shared.rb
|
274
|
-
- spec/acceptance/net_http/net_http_spec.rb
|
275
|
-
- spec/acceptance/net_http/net_http_spec_helper.rb
|
276
|
-
- spec/acceptance/net_http/real_net_http_spec.rb
|
277
|
-
- spec/acceptance/patron/patron_spec.rb
|
278
|
-
- spec/acceptance/patron/patron_spec_helper.rb
|
279
|
-
- spec/acceptance/shared/allowing_and_disabling_net_connect.rb
|
280
|
-
- spec/acceptance/shared/callbacks.rb
|
281
|
-
- spec/acceptance/shared/enabling_and_disabling_webmock.rb
|
282
|
-
- spec/acceptance/shared/precedence_of_stubs.rb
|
283
|
-
- spec/acceptance/shared/request_expectations.rb
|
284
|
-
- spec/acceptance/shared/returning_declared_responses.rb
|
285
|
-
- spec/acceptance/shared/stubbing_requests.rb
|
286
|
-
- spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
|
287
|
-
- spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
|
288
|
-
- spec/acceptance/webmock_shared.rb
|
289
|
-
- spec/quality_spec.rb
|
290
|
-
- spec/spec_helper.rb
|
291
|
-
- spec/support/example_curl_output.txt
|
292
|
-
- spec/support/my_rack_app.rb
|
293
|
-
- spec/support/network_connection.rb
|
294
|
-
- spec/support/webmock_server.rb
|
295
|
-
- spec/unit/errors_spec.rb
|
296
|
-
- spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
|
297
|
-
- spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
|
298
|
-
- spec/unit/rack_response_spec.rb
|
299
|
-
- spec/unit/request_execution_verifier_spec.rb
|
300
|
-
- spec/unit/request_pattern_spec.rb
|
301
|
-
- spec/unit/request_registry_spec.rb
|
302
|
-
- spec/unit/request_signature_spec.rb
|
303
|
-
- spec/unit/request_stub_spec.rb
|
304
|
-
- spec/unit/response_spec.rb
|
305
|
-
- spec/unit/stub_registry_spec.rb
|
306
|
-
- spec/unit/stub_request_snippet_spec.rb
|
307
|
-
- spec/unit/util/hash_counter_spec.rb
|
308
|
-
- spec/unit/util/hash_keys_stringifier_spec.rb
|
309
|
-
- spec/unit/util/headers_spec.rb
|
310
|
-
- spec/unit/util/json_spec.rb
|
311
|
-
- spec/unit/util/uri_spec.rb
|
312
|
-
- spec/unit/webmock_spec.rb
|
313
|
-
- test/http_request.rb
|
314
|
-
- test/shared_test.rb
|
315
|
-
- test/test_helper.rb
|
316
|
-
- test/test_webmock.rb
|
274
|
+
test_files:
|
275
|
+
- spec/acceptance/curb/curb_spec.rb
|
276
|
+
- spec/acceptance/curb/curb_spec_helper.rb
|
277
|
+
- spec/acceptance/em_http_request/em_http_request_spec.rb
|
278
|
+
- spec/acceptance/em_http_request/em_http_request_spec_helper.rb
|
279
|
+
- spec/acceptance/httpclient/httpclient_spec.rb
|
280
|
+
- spec/acceptance/httpclient/httpclient_spec_helper.rb
|
281
|
+
- spec/acceptance/net_http/net_http_shared.rb
|
282
|
+
- spec/acceptance/net_http/net_http_spec.rb
|
283
|
+
- spec/acceptance/net_http/net_http_spec_helper.rb
|
284
|
+
- spec/acceptance/net_http/real_net_http_spec.rb
|
285
|
+
- spec/acceptance/patron/patron_spec.rb
|
286
|
+
- spec/acceptance/patron/patron_spec_helper.rb
|
287
|
+
- spec/acceptance/shared/allowing_and_disabling_net_connect.rb
|
288
|
+
- spec/acceptance/shared/callbacks.rb
|
289
|
+
- spec/acceptance/shared/enabling_and_disabling_webmock.rb
|
290
|
+
- spec/acceptance/shared/precedence_of_stubs.rb
|
291
|
+
- spec/acceptance/shared/request_expectations.rb
|
292
|
+
- spec/acceptance/shared/returning_declared_responses.rb
|
293
|
+
- spec/acceptance/shared/stubbing_requests.rb
|
294
|
+
- spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
|
295
|
+
- spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
|
296
|
+
- spec/acceptance/webmock_shared.rb
|
297
|
+
- spec/quality_spec.rb
|
298
|
+
- spec/spec_helper.rb
|
299
|
+
- spec/support/example_curl_output.txt
|
300
|
+
- spec/support/my_rack_app.rb
|
301
|
+
- spec/support/network_connection.rb
|
302
|
+
- spec/support/webmock_server.rb
|
303
|
+
- spec/unit/errors_spec.rb
|
304
|
+
- spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
|
305
|
+
- spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
|
306
|
+
- spec/unit/rack_response_spec.rb
|
307
|
+
- spec/unit/request_execution_verifier_spec.rb
|
308
|
+
- spec/unit/request_pattern_spec.rb
|
309
|
+
- spec/unit/request_registry_spec.rb
|
310
|
+
- spec/unit/request_signature_spec.rb
|
311
|
+
- spec/unit/request_stub_spec.rb
|
312
|
+
- spec/unit/response_spec.rb
|
313
|
+
- spec/unit/stub_registry_spec.rb
|
314
|
+
- spec/unit/stub_request_snippet_spec.rb
|
315
|
+
- spec/unit/util/hash_counter_spec.rb
|
316
|
+
- spec/unit/util/hash_keys_stringifier_spec.rb
|
317
|
+
- spec/unit/util/headers_spec.rb
|
318
|
+
- spec/unit/util/json_spec.rb
|
319
|
+
- spec/unit/util/uri_spec.rb
|
320
|
+
- spec/unit/webmock_spec.rb
|
321
|
+
- test/http_request.rb
|
322
|
+
- test/shared_test.rb
|
323
|
+
- test/test_helper.rb
|
324
|
+
- test/test_webmock.rb
|