Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 404 lines (231 sloc) 16.055 kb
9887d17 James Conroy-Finn Prepare for 1.6.3 release
jcf authored
1 # Changelog
2
3 ## 1.6.3
4
5 * Update the dependency on addressable to get around an issue in v2.2.5.
6 Thanks to [Peter Higgins](https://github.com/phiggins).
7
8 * Add support for matching parameter values using a regular expression
9 as well as a string. Thanks to [Oleg M Prozorov](https://github.com/oleg).
10
11 * Fix integration with httpclient as the internal API has changed.
12 Thanks to [Frank Prößdorf](https://github.com/endor).
13
14 * Ensure Curl::Easy#content_type is always set. Thanks to [Peter
15 Higgins](https://github.com/phiggins).
16
17 * Fix bug with em-http-request adapter stubbing responses that have a
18 chunked transfer encoding. Thanks to [Myron
19 Marston](https://github.com/myronmarston).
20
21 * Fix a load of spec failures with Patron, httpclient, and specs that
22 depended on the behaviour of example.com. Thanks to [Alex
23 Grigorovich](https://github.com/grig).
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
24
e6af079 Bartosz Blimke Updated 1.6.2 changelog and credits
authored
25 ## 1.6.2
26
27 * Em-http-request adapter sets `last_effective_url` property. Thanks to [Sam Stokes](https://github.com/samstokes).
28
29 * Curb adapter supports `Curb::Easy#http_post` and `Curb::Easy#http_put` without arguments (by setting `post_body` or `put_data` beforehand). Thanks to [Eugene Bolshakov](https://github.com/eugenebolshakov)
30
f7b9c77 Bartosz Blimke Updated version 1.6.1 changelog
authored
31 ## 1.6.1
32
33 * Fixed issue with `webmock/rspec` which didn't load correctly if `rspec/core` was already required but `rspec/expectations` not.
34
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
35 ## 1.6.0
473b709 Bartosz Blimke Added WebMock.reset! method. WebMock.reset_webmock is now deprecated
authored
36
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
37 * Simplified integration with Test::Unit, RSpec and Cucumber. Now only a single file has to be required i.e.
acaab83 Bartosz Blimke Updated changelog with the latest changes in master.
authored
38
39 require 'webmock/test_unit'
40 require 'webmock/rspec'
41 require 'webmock/cucumber'
42
65dd12b Bartosz Blimke Updated changelog with latest changes in master branch
authored
43 * The error message on unstubbed request now contains code snippet which can be used to stub this request. Thanks to Martyn Loughran for suggesting this feature.
44
e6925a2 Bartosz Blimke Updated changelog with the latest changes in master
authored
45 * The expectation failure message now contains a list of made requests. Thanks to Martyn Loughran for suggesting this feature.
46
86f36d2 Bartosz Blimke em-http-request adapter is activated by replacing EventMachine::HttpRequ...
authored
47 * Added `WebMock.print_executed_requests` method which can be useful to find out what requests were made until a given point.
48
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
49 * em-http-request adapter is now activated by replacing EventMachine::HttpRequest constant, instead of monkeypatching the original class.
86f36d2 Bartosz Blimke em-http-request adapter is activated by replacing EventMachine::HttpRequ...
authored
50
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
51 This technique is borrowed from em-http-request native mocking module. It allows switching WebMock adapter on an off, and using it interchangeably with em-http-request native mocking i.e:
86f36d2 Bartosz Blimke em-http-request adapter is activated by replacing EventMachine::HttpRequ...
authored
52
53 EventMachine::WebMockHttpRequest.activate!
54 EventMachine::WebMockHttpRequest.deactivate!
55
56 Thanks to Martyn Loughran for suggesting this feature.
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
57
58 * `WebMock.reset_webmock` is deprecated in favour of new `WebMock.reset!`
59
60 * Fixed integration with Cucumber. Previously documented example didn't work with new versions of Cucumber.
72cd989 Bartosz Blimke Added WebMock.print_executed_requests method which can be useful to find...
authored
61
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
62 * Fixed stubbing requests with body declared as a hash. Thanks to Erik Michaels-Ober for reporting the issue.
a7cb4fa Bartosz Blimke Fixed issue with stubbing requests with request body declared as a hash,...
authored
63
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
64 * Fixed issue with em-http-request adapter which didn't work when :query option value was passed as a string, not a hash. Thanks to Chee Yeo for reporting the issue.
178bfd1 Bartosz Blimke em-http-request adapter now works correctly when :query option value is ...
authored
65
7110c60 Bartosz Blimke Updated version 1.6.0 changelog
authored
66 * Fixed problem with assert_requested which didn't work if used outside rspec or test/unit
473b709 Bartosz Blimke Added WebMock.reset! method. WebMock.reset_webmock is now deprecated
authored
67
7bca10a Bartosz Blimke Don't use JSON to normalize hash body in request pattern. Removed depend...
authored
68 * Removed dependency on json gem
69
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
70 ## 1.5.0
f0408f8 Bartosz Blimke Added support for dynamically evaluated raw responses recorded with `cur...
authored
71
72 * Support for dynamically evaluated raw responses recorded with `curl -is` <br/>
73 i.e.
74
75 `curl -is www.example.com > /tmp/www.example.com.txt`
76 stub_request(:get, "www.example.com").to_return(lambda { |request| File.new("/tmp/#{request.uri.host.to_s}.txt" }))
77
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
78 * `:net_http_connect_on_start` option can be passed to `WebMock.allow_net_connect!` and `WebMock.disable_net_connect!` methods, i.e.
ffbcdb3 Bartosz Blimke Updated changelog with the latest changes in master branch
authored
79
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
80 WebMock.allow_net_connect!(:net_http_connect_on_start => true)
ffbcdb3 Bartosz Blimke Updated changelog with the latest changes in master branch
authored
81
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
82 This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`. Check 'Connecting on Net::HTTP.start' in README for more information.
ffbcdb3 Bartosz Blimke Updated changelog with the latest changes in master branch
authored
83
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
84 Thanks to Alastair Brunton for reporting the issue and for fix suggestions.
4e313c2 Bartosz Blimke Updated CHANGELOG and README with information about net_http_connect_on_...
authored
85
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
86 * Fixed an issue where Patron spec tried to remove system temporary directory.
87 Thanks to Hans de Graaff
4e313c2 Bartosz Blimke Updated CHANGELOG and README with information about net_http_connect_on_...
authored
88
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
89 * WebMock specs now use RSpec 2
4e313c2 Bartosz Blimke Updated CHANGELOG and README with information about net_http_connect_on_...
authored
90
079a719 Bartosz Blimke Updated changelog with version 1.5.0 changes
authored
91 * `rake spec NO_CONNECTION=true` can now be used to only run WebMock specs which do not make real network connections
4e313c2 Bartosz Blimke Updated CHANGELOG and README with information about net_http_connect_on_...
authored
92
a53f1a0 Bartosz Blimke Updated CHANGELOG with version 1.4.0 changes
authored
93 ## 1.4.0
6eb8bb5 Bartosz Blimke WebMock tries to use already loaded version of RSpec (1.x or 2.x) (previ...
authored
94
aaf774b Bartosz Blimke Added info to changelog and readme about Curb support, implemented by Pe...
authored
95 * Curb support!!! Thanks to the awesome work of Pete Higgins!
96
2328c00 Bartosz Blimke Updated Changelog with the latest changes in master
authored
97 * `include WebMock` is now deprecated to avoid method and constant name conflicts. Please `include WebMock::API` instead.
98
a53f1a0 Bartosz Blimke Updated CHANGELOG with version 1.4.0 changes
authored
99 * `WebMock::API#request` is renamed to `WebMock::API#a_request` to prevent method name conflicts with i.e. Rails controller specs.
2328c00 Bartosz Blimke Updated Changelog with the latest changes in master
authored
100 WebMock.request is still available.
101
a53f1a0 Bartosz Blimke Updated CHANGELOG with version 1.4.0 changes
authored
102 * Deprecated `WebMock#request`, `WebMock#allow_net_connect!`, `WebMock#net_connect_allowed?`, `WebMock#registered_request?`, `WebMock#reset_callbacks`, `WebMock#after_request` instance methods. These methods are still available, but only as WebMock class methods.
9fded75 Bartosz Blimke Updated CHANGELOG with more detailed information on changes in master
authored
103
a53f1a0 Bartosz Blimke Updated CHANGELOG with version 1.4.0 changes
authored
104 * Removed `WebMock.response_for_request` and `WebMock.assertion_failure` which were only used internally and were not documented.
9fded75 Bartosz Blimke Updated CHANGELOG with more detailed information on changes in master
authored
105
c646491 Bartosz Blimke :allow_localhost => true' now permits 0.0.0.0 in addition to 127.0.0.1 a...
authored
106 * :allow_localhost => true' now permits 0.0.0.0 in addition to 127.0.0.1 and 'localhost'. Thanks to Myron Marston and Mike Gehard for suggesting this.
107
a53f1a0 Bartosz Blimke Updated CHANGELOG with version 1.4.0 changes
authored
108 * Fixed issue with both RSpec 1.x and 2.x being available.
6eb8bb5 Bartosz Blimke WebMock tries to use already loaded version of RSpec (1.x or 2.x) (previ...
authored
109
a53f1a0 Bartosz Blimke Updated CHANGELOG with version 1.4.0 changes
authored
110 WebMock now tries to use already loaded version of RSpec (1.x or 2.x). Previously it was loading RSpec 2.0 if available, even if RSpec 1.3 was already loaded.
6eb8bb5 Bartosz Blimke WebMock tries to use already loaded version of RSpec (1.x or 2.x) (previ...
authored
111
112 Thanks to Hans de Graaff for reporting this.
113
9acf181 Bartosz Blimke Updated changelog for version 1.4.0
authored
114 * Changed runtime dependency on Addressable version 2.2.2 which fixes handling of percent-escaped '+'
115
67a0819 Bartosz Blimke Version 1.3.5 changelog + updated docs
authored
116 ## 1.3.5
117
118 * External requests can be disabled while allowing selected hosts. Thanks to Charles Li and Ryan Bigg
119
120 This feature was available before only for localhost with `:allow_localhost => true`
121
122 WebMock.disable_net_connect!(:allow => "www.example.org")
123
124 Net::HTTP.get('www.something.com', '/') # ===> Failure
125
126 Net::HTTP.get('www.example.org', '/') # ===> Allowed.
127
128 * Fixed Net::HTTP adapter so that it preserves the original behavior of Net::HTTP.
129
130 When making a request with a block that calls #read_body on the request,
131 Net::HTTP causes the body to be set to a Net::ReadAdapter, but WebMock was causing the body to be set to a string.
132
688e687 Version 1.3.4 changelog
Bartosz Blimke and Oliver Nightingale authored
133 ## 1.3.4
134
135 * Fixed Net::HTTP adapter to handle cases where a block with `read_body` call is passed to `request`.
136 This fixes compatibility with `open-uri`. Thanks to Mark Evans for reporting the issue.
137
db5fcf4 Version 1.3.3 changelog.
Bartosz Blimke and Ben Pickles authored
138 ## 1.3.3
139
140 * Fixed handling of multiple values for the same response header for Net::HTTP. Thanks to Myron Marston for reporting the issue.
141
27c0f65 Version 1.3.2 changelog
Bartosz Blimke and Ben Pickles authored
142 ## 1.3.2
143
144 * Fixed compatibility with EM-HTTP-Request >= 0.2.9. Thanks to Myron Marston for reporting the issue.
145
15f888e Bartosz Blimke The less hacky way to get the stream behaviour working for em-http-reque...
authored
146 ## 1.3.1
147
60fa244 Bartosz Blimke Updated changelog
authored
148 * The less hacky way to get the stream behaviour working for em-http-request. Thanks to Martyn Loughran
149
150 * Fixed issues where Net::HTTP was not accepting valid nil response body. Thanks to Muness Alrubaie
15f888e Bartosz Blimke The less hacky way to get the stream behaviour working for em-http-reque...
authored
151
354af66 Updated CHANGELOG width version 1.3.0 changes
Bartosz Blimke authored
152 ## 1.3.0
153
154 * Added support for [em-http-request](http://github.com/igrigorik/em-http-request)
155
156 * Matching query params using a hash
157
158 stub_http_request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]})
159
160 RestClient.get("http://www.example.com/?a[]=b&a[]=c") # ===> Success
161
162 request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]}).should have_been_made # ===> Success
163
164 * Matching request body against a hash. Body can be URL-Encoded, JSON or XML.
26cb92f Small improvements to CHANGELOG for version 1.3.0
Bartosz Blimke authored
165
354af66 Updated CHANGELOG width version 1.3.0 changes
Bartosz Blimke authored
166 (Thanks to Steve Tooke for the idea and a solution for url-encoded bodies)
167
168 stub_http_request(:post, "www.example.com").
169 with(:body => {:data => {:a => '1', :b => 'five'}})
170
171 RestClient.post('www.example.com', "data[a]=1&data[b]=five",
172 :content_type => 'application/x-www-form-urlencoded') # ===> Success
173
174 RestClient.post('www.example.com', '{"data":{"a":"1","b":"five"}}',
175 :content_type => 'application/json') # ===> Success
176
177 RestClient.post('www.example.com', '<data a="1" b="five" />',
178 :content_type => 'application/xml' ) # ===> Success
179
180 request(:post, "www.example.com").
181 with(:body => {:data => {:a => '1', :b => 'five'}},
182 :headers => 'Content-Type' => 'application/json').should have_been_made # ===> Success
183
184 * Request callbacks (Thanks to Myron Marston for all suggestions)
185
186 WebMock can now invoke callbacks for stubbed or real requests:
187
188 WebMock.after_request do |request_signature, response|
189 puts "Request #{request_signature} was made and #{response} was returned"
190 end
191
192 invoke callbacks for real requests only and except requests made with Patron client
193
194 WebMock.after_request(:except => [:patron], :real_requests_only => true) do |request_signature, response|
195 puts "Request #{request_signature} was made and #{response} was returned"
196 end
197
198 * `to_raise()` now accepts an exception instance or a string as argument in addition to an exception class
199
200 stub_request(:any, 'www.example.net').to_raise(StandardError.new("some error"))
201
202 stub_request(:any, 'www.example.net').to_raise("some error")
203
26cb92f Small improvements to CHANGELOG for version 1.3.0
Bartosz Blimke authored
204 * Matching requests based on a URI is 30% faster
354af66 Updated CHANGELOG width version 1.3.0 changes
Bartosz Blimke authored
205
206 * Fixed constant namespace issues in HTTPClient adapter. Thanks to Nathaniel Bibler for submitting a patch.
207
fd2472a Version 1.2.2 changelog
Bartosz Blimke authored
208 ## 1.2.2
209
210 * Fixed problem where ArgumentError was raised if query params were made up of an array e.g. data[]=a&data[]=b. Thanks to Steve Tooke
211
5803f31 Version bump to 1.2.1
Bartosz Blimke authored
212 ## 1.2.1
213
214 * Changed license from GPL to MIT
215
216 * Fixed gemspec file. Thanks to Razic
217
31b3ffb Added version 1.2.0 changelog
Bartosz Blimke authored
218 ## 1.2.0
219
220 * RSpec 2 compatibility. Thanks to Sam Phillips!
221
222 * :allow_localhost => true' now permits 127.0.0.1 as well as 'localhost'. Thanks to Mack Earnhardt
223
224 * Request URI matching in now 2x faster!
225
226
4a04017 Added 1.1.0 changelog
Bartosz Blimke authored
227 ## 1.1.0
228
ee7b3b4 Fixed spelling
Bartosz Blimke authored
229 * [VCR](http://github.com/myronmarston/vcr/) compatibility. Many thanks to Myron Marston for all suggestions.
4a04017 Added 1.1.0 changelog
Bartosz Blimke authored
230
231 * Support for stubbing requests and returning responses with multiple headers with the same name. i.e multiple Accept headers.
232
233 stub_http_request(:get, 'www.example.com').
234 with(:headers => {'Accept' => ['image/png', 'image/jpeg']}).
235 to_return(:body => 'abc')
236 RestClient.get('www.example.com',
237 {"Accept" => ['image/png', 'image/jpeg']}) # ===> "abc\n"
238
239 * When real net connections are disabled and unstubbed request is made, WebMock throws WebMock::NetConnectNotAllowedError instead of assertion error or StandardError.
240
241 * Added WebMock.version()
242
243
66519c1 Updated changelog with 1.0.0 changes
Bartosz Blimke authored
244 ## 1.0.0
245
246 * Added support for [Patron](http://toland.github.com/patron/)
247
248 * Responses dynamically evaluated from block (idea and implementation by Tom Ward)
249
250 stub_request(:any, 'www.example.net').
251 to_return { |request| {:body => request.body} }
252
253 RestClient.post('www.example.net', 'abc') # ===> "abc\n"
254
255 * Responses dynamically evaluated from lambda (idea and implementation by Tom Ward)
256
257 stub_request(:any, 'www.example.net').
258 to_return(lambda { |request| {:body => request.body} })
259
260 RestClient.post('www.example.net', 'abc') # ===> "abc\n"
261
262 * Response with custom status message
263
264 stub_request(:any, "www.example.com").to_return(:status => [500, "Internal Server Error"])
265
266 req = Net::HTTP::Get.new("/")
267 Net::HTTP.start("www.example.com") { |http| http.request(req) }.message # ===> "Internal Server Error"
268
c3c92ba Added information about allowing localhost to version 1.0.0 changelog
Bartosz Blimke authored
269 * Raising timeout errors (suggested by Jeffrey Jones) (compatibility with Ruby 1.8.6 by Mack Earnhardt)
66519c1 Updated changelog with 1.0.0 changes
Bartosz Blimke authored
270
271 stub_request(:any, 'www.example.net').to_timeout
272
273 RestClient.post('www.example.net', 'abc') # ===> RestClient::RequestTimeout
274
c3c92ba Added information about allowing localhost to version 1.0.0 changelog
Bartosz Blimke authored
275 * External requests can be disabled while allowing localhost (idea and implementation by Mack Earnhardt)
276
277 WebMock.disable_net_connect!(:allow_localhost => true)
278
279 Net::HTTP.get('www.something.com', '/') # ===> Failure
280
281 Net::HTTP.get('localhost:9887', '/') # ===> Allowed. Perhaps to Selenium?
282
283
66519c1 Updated changelog with 1.0.0 changes
Bartosz Blimke authored
284 ### Bug fixes
285
286 * Fixed issue where Net::HTTP adapter didn't work for requests with body responding to read (reported by Tekin Suleyman)
c3c92ba Added information about allowing localhost to version 1.0.0 changelog
Bartosz Blimke authored
287 * Fixed issue where request stub with headers declared as nil was matching requests with non empty headers
66519c1 Updated changelog with 1.0.0 changes
Bartosz Blimke authored
288
b6c3b3b Version bump to 0.9.1
Bartosz Blimke authored
289 ## 0.9.1
290
291 * Fixed issue where response status code was not read from raw (curl -is) responses
292
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
293 ## 0.9.0
294
295 * Matching requests against provided block (by Sergio Gil)
296
297 stub_request(:post, "www.example.com").with { |request| request.body == "abc" }.to_return(:body => "def")
298 RestClient.post('www.example.com', 'abc') # ===> "def\n"
299 request(:post, "www.example.com").with { |req| req.body == "abc" }.should have_been_made
300 #or
301 assert_requested(:post, "www.example.com") { |req| req.body == "abc" }
302
66519c1 Updated changelog with 1.0.0 changes
Bartosz Blimke authored
303 * Matching request body against regular expressions (suggested by Ben Pickles)
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
304
305 stub_request(:post, "www.example.com").with(:body => /^.*world$/).to_return(:body => "abc")
306 RestClient.post('www.example.com', 'hello world') # ===> "abc\n"
307
66519c1 Updated changelog with 1.0.0 changes
Bartosz Blimke authored
308 * Matching request headers against regular expressions (suggested by Ben Pickles)
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
309
310 stub_request(:post, "www.example.com").with(:headers => {"Content-Type" => /image\/.+/}).to_return(:body => "abc")
311 RestClient.post('www.example.com', '', {'Content-Type' => 'image/png'}) # ===> "abc\n"
312
313 * Replaying raw responses recorded with `curl -is`
314
315 `curl -is www.example.com > /tmp/example_curl_-is_output.txt`
316 raw_response_file = File.new("/tmp/example_curl_-is_output.txt")
317
c2648fc Fixed formatting in 0.9.0 changelog
Bartosz Blimke authored
318 from file
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
319
320 stub_request(:get, "www.example.com").to_return(raw_response_file)
321
c2648fc Fixed formatting in 0.9.0 changelog
Bartosz Blimke authored
322 or string
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
323
324 stub_request(:get, "www.example.com").to_return(raw_response_file.read)
325
326 * Multiple responses for repeated requests
327
328 stub_request(:get, "www.example.com").to_return({:body => "abc"}, {:body => "def"})
329 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
330 Net::HTTP.get('www.example.com', '/') # ===> "def\n"
331
332 * Multiple responses using chained `to_return()` or `to_raise()` declarations
333
334 stub_request(:get, "www.example.com").
335 to_return({:body => "abc"}).then. #then() just is a syntactic sugar
336 to_return({:body => "def"}).then.
337 to_raise(MyException)
338 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
339 Net::HTTP.get('www.example.com', '/') # ===> "def\n"
340 Net::HTTP.get('www.example.com', '/') # ===> MyException raised
341
342 * Specifying number of times given response should be returned
343
344 stub_request(:get, "www.example.com").
345 to_return({:body => "abc"}).times(2).then.
346 to_return({:body => "def"})
347
348 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
349 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
350 Net::HTTP.get('www.example.com', '/') # ===> "def\n"
351
352 * Added support for `Net::HTTP::Post#body_stream`
353
c2648fc Fixed formatting in 0.9.0 changelog
Bartosz Blimke authored
354 This fixes compatibility with new versions of RestClient
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
355
356 * WebMock doesn't suppress default request headers added by http clients anymore.
357
c2648fc Fixed formatting in 0.9.0 changelog
Bartosz Blimke authored
358 i.e. Net::HTTP adds `'Accept'=>'*/*'` to all requests by default
5313e02 Added version 0.9.0 features to CHANGELOG and README
Bartosz Blimke authored
359
360
361
362 ## 0.8.2
363
364 * Fixed issue where WebMock was not closing IO object passed as response body after reading it.
365 * Ruby 1.9.2 compat: Use `File#expand_path` for require path because "." is not be included in LOAD_PATH since Ruby 1.9.2
366
367
368 ## 0.8.1
369
370 * Fixed HTTPClient adapter compatibility with Ruby 1.8.6 (reported by Piotr Usewicz)
371 * Net:HTTP adapter now handles request body assigned as Net::HTTP::Post#body attribute (fixed by Mack Earnhardt)
372 * Fixed issue where requests were not matching stubs with Accept header set.(reported by Piotr Usewicz)
373 * Fixed compatibility with Ruby 1.9.1, 1.9.2 and JRuby 1.3.1 (reported by Diego E. “Flameeyes” Pettenò)
374 * Fixed issue with response body declared as IO object and multiple requests (reported by Niels Meersschaert)
375 * Fixed "undefined method `assertion_failure'" error (reported by Nick Plante)
376
377
378 ## 0.8.0
379
380 * Support for HTTPClient (sync and async requests)
381 * Support for dynamic responses. Response body and headers can be now declared as lambda.
382 (Thanks to Ivan Vega ( @ivanyv ) for suggesting this feature)
383 * Support for stubbing and expecting requests with empty body
384 * Executing non-stubbed request leads to failed expectation instead of error
385
386
387 ### Bug fixes
388
389 * Basic authentication now works correctly
390 * Fixed problem where WebMock didn't call a block with the response when block was provided
391 * Fixed problem where uris with single slash were not matching uris without path provided
392
393
394 ## 0.7.3
395
396 * Clarified documentation
397 * Fixed some issues with loading of Webmock classes
398 * Test::Unit and RSpec adapters have to be required separately
399
400
401 ## 0.7.2
402
403 * Added support for matching escaped and non escaped URLs
Something went wrong with that request. Please try again.