Skip to content
This repository
Newer
Older
100644 762 lines (426 sloc) 30.362 kb
9887d174 »
2011-05-18 Prepare for 1.6.3 release
1 # Changelog
2
43098e1d »
2012-08-15 Version 1.8.9
3 ## 1.8.9
4
5 * Fixed problem with caching nil responses when the same HTTPClient instance is used.
6
7 Thanks to [Myron Marston](https://github.com/myronmarston)
8
9 * Added support for Addressable >= 2.3.0. Addressable 2.3.0 removed support for multiple query value notations and broke backwards compatibility.
10
11 https://github.com/sporkmonger/addressable/commit/f51e290b5f68a98293327a7da84eb9e2d5f21c62
12 https://github.com/sporkmonger/addressable/issues/77
13
14
5fa0c996 »
2012-07-24 Bump version to 1.8.8
15 ## 1.8.8
16
17 * Fixed Net::HTTP adapter so that it returns `nil` for an empty body response.
18
19 Thanks to [Myron Marston](https://github.com/myronmarston)
20
21 * Gemspec defines compatibility with Addressable ~> 2.2.8, not >= 2.3.0
22
23 * Specs compatibility with Typhoeus 0.4.0
24
25 Thanks to [Hans Hasselberg](https://github.com/i0rek)
26
27 * Handling content types that specify a charset
28
29 Thanks to [Kevin Glowacz](https://github.com/kjg)
30
31 * Fixed em-http-request adapter to correctly fetch authorization header from a request
32
33 Thanks to [Julien Boyer](https://github.com/chatgris)
34
35 * Fixing travis-ci image to report master's status
36
37 Thanks to [Ryan Schlesinger](https://github.com/ryansch)
38
39 * Fixed problem with em-http-request callback triggering if there were other EM::Deferred callbacks registered
40
41 Thanks to [Jon Leighton](https://github.com/jonleighton)
42
43 * Fixed problem with em-http-request appending the query to the URI a second time, and
44 the parameters are repeated.
45
46 Thanks to [Jon Leighton](https://github.com/jonleighton)
47
d083e686 »
2012-05-12 Bump to version 1.8.7
48 ## 1.8.7
49
50 * Compatibility with RSpec >= 2.10
51
52 Thanks to [erwanlr](https://github.com/erwanlr) for reporting this issue.
53
54 * Add missing required rack environment variable SCRIPT_NAME
55
56 Thanks to [Eric Oestrich](https://github.com/oestrich)
57
58 * Fixed warnings due to @query_params not being initialized
59
60 Thanks to [Ben Bleything](https://github.com/bleything)
61
4711a0bd »
2012-04-04 Bump version to 1.8.6
62 ## 1.8.6
63
64 * Pass through SERVER_PORT when stubbing to rack
65
66 Thanks to [Eric Oestrich](https://github.com/oestrich)
67
68 * Fixed problem with missing parenthesis in `WebMock#net_connect_allowed?` conditions.
69
70 Thanks to [aindustries](https://github.com/aindustries)
71
576c5965 »
2012-03-30 Bump to version 1.8.5
72 ## 1.8.5
73
74 * WebMock::RackResponse supports basic auth
75
76 Thanks to [jugyo](https://github.com/jugyo)
77
4a0382d1 »
2012-03-20 Bump to version 1.8.4
78 ## 1.8.4
79
80 * Warning message is printed when an unsupported version of a http library is loaded.
81
82 Thanks to [Alexander Staubo](https://github.com/alexstaubo) for reporting the problem and to [Myron Marston](https://github.com/myronmarston) for a help with solution.
83
3c9b6256 »
2012-03-15 Bump version to 1.8.3
84 ## 1.8.3
85
86 * Fixed compatibility with latest em-http-request
87
88 Thanks to [Paul Cortens](https://github.com/thoughtless)
89
3876948f »
2012-03-07 Update to version 1.8.2
90 ## 1.8.2
91
92 * Prevent Webmock `hash_including` from overriding RSpec version 1 `hash_including` method.
93
94 Thanks to [Joe Karayusuf](https://github.com/karayusuf)
95
96 * Ensured WebMock handles RSpec 1 `hash_including` matcher for matching query params and body.
97
8825a2a5 »
2012-03-05 Update to version 1.8.1
98 ## 1.8.1
99
100 * Ensured WebMock doesn't interfere with `em-synchrony`, when `em-synchrony/em-http` is not included.
101
102 Thanks to [Nick Recobra](https://github.com/oruen)
103
104 * Improved README
105
106 Thanks to [Jordan Elver](https://github.com/jordelver)
107
108
08783a7d »
2012-02-21 Update to version 1.8.0
109 ## 1.8.0
68ba906c »
2012-02-05 Updated Changelog and Readme with the latest changes in master
110
111 * Matching request body against partial hash.
112
113 stub_http_request(:post, "www.example.com").
114 with(:body => hash_including({:data => {:a => '1', :b => 'five'}}))
115
116 RestClient.post('www.example.com', "data[a]=1&data[b]=five&x=1",
117 :content_type => 'application/x-www-form-urlencoded') # ===> Success
118
119 request(:post, "www.example.com").
120 with(:body => hash_including({:data => {:a => '1', :b => 'five'}}),
121 :headers => 'Content-Type' => 'application/json').should have_been_made # ===> Success
122
123 Thanks to [Marnen Laibow-Koser](https://github.com/marnen) for help with this solution
124
125 * Matching request query params against partial hash.
126
127 stub_http_request(:get, "www.example.com").with(:query => hash_including({"a" => ["b", "c"]}))
128
129 RestClient.get("http://www.example.com/?a[]=b&a[]=c&x=1") # ===> Success
130
131 request(:get, "www.example.com").
132 with(:query => hash_including({"a" => ["b", "c"]})).should have_been_made # ===> Success
133
134 * Added support for Excon.
135
136 Thanks to [Dimitrij Denissenko](https://github.com/dim)
137
138 * Added support for setting expectations on the request stub with `assert_requested`
139
140 stub_get = stub_request(:get, "www.example.com")
141 stub_post = stub_request(:post, "www.example.com")
142
143 Net::HTTP.get('www.example.com', '/')
144
145 assert_requested(stub_get)
146 assert_not_requested(stub_post)
147
148 Thanks to [Nicolas Fouché](https://github.com/nfo)
149
150 * `WebMock.disable_net_connect!` accepts `RegExp` as `:allow` parameter
151
152 Thanks to [Frank Schumacher](https://github.com/thenoseman)
153
44de7285 »
2012-02-19 Updated changelog with latest changes in master
154 * Ensure multiple values for the same header can be recorded and played back
155
156 Thanks to [Myron Marston](https://github.com/myronmarston)
157
e56d3135 »
2012-02-19 Updated dependency on Addressable to version >= 2.2.7 to handle neste…
158 * Updated dependency on Addressable to version >= 2.2.7 to handle nested hash query values. I.e. `?one[two][three][]=four&one[two][three][]=five`
159
68ba906c »
2012-02-05 Updated Changelog and Readme with the latest changes in master
160 * Fixed compatibility with Curb >= 0.7.16 This breaks compatibility with Curb < 0.7.16
161
162 * Fix #to_rack to handle non-array response bodies.
163
164 Thanks to [Tammer Saleh](https://github.com/tsaleh)
165
166 * Added `read_timeout` accessor to StubSocket which fixes compatibility with aws-sdk
167
168 Thanks to [Lin Jen-Shin](https://github.com/godfat)
169
170 * Fix warning "instance variable @query_params not initialized"
171
172 Thanks to [Joe Van Dyk](https://github.com/joevandyk)
173
174 * Using bytesize of message instead of its length for content-length header in em-http-request adapter.
175 This fixes a problem with messages getting truncated in Ruby >= 1.9
176
177 Thanks to [Mark Abramov](https://github.com/markiz)
178
5cd5aaf7 »
2012-02-11 Fixed problem with body params being matched even if params were diff…
179 * Fixed problem with body params being matched even if params were different.
180
181 Thanks to [Evgeniy Dolzhenko](https://github.com/dolzenko) for reporting this issue.
182
a50c5837 »
2012-01-04 Upgraded version to 1.7.10
183 ## 1.7.10
184
185 * Yanked 1.7.9 and rebuilt gem on 1.8.7 to deal with syck/psych incompatibilties in gemspec.
186
4ff8cf17 »
2012-01-04 Version 1.7.9 changelog
187 ## 1.7.9
188
189 * Fixed support for native Typhoeus timeouts.
190
191 Thanks to [Albert Llop](https://github.com/mrsimo)
192
193 * Fixed problem with WebMock and RSpec compatibility on TeamCity servers. See [this article](http://www.coding4streetcred.com/blog/post/Issue-RubyMine-31-Webmock-162-and-%E2%80%9CSpecconfigure%E2%80%9D-curse.aspx) for more details.
194
195 Thanks to [Christopher Pickslay](https://github.com/chrispix) from [Two Bit Labs](https://github.com/twobitlabs)
196
197
18b3e7fd »
2011-11-19 1.7.8 release.
198 ## 1.7.8
199
200 * Fix each adapter so that it calls a `stub.with` block only once per
201 request. Previously, the block would be called two or three times per
202 request [Myron Marston](https://github.com/myronmarston).
203
4ff9f1a5 »
2011-10-15 Version 1.7.7 - RuPy 2011 Release
204 ## 1.7.7 - RuPy 2011 release
205
206 * 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)
207
208 Thanks to [Chris McGrath](https://github.com/chrismcg)
209
210 * Cleaned up ruby warnings when running WebMock code with `-w`.
211
212 Thanks to [Stephen Celis](https://github.com/stephencelis)
213
214 * Curb adapter now correctly calls on_failure for 4xx response codes.
215
216 Thanks to [Eugene Pimenov](https://github.com/libc)
217
748ff35c »
2011-09-04 Version 1.7.6
218 ## 1.7.6
219
220 * Support for the HTTPClient's request_filter feature
221
222 Thanks to [Roman Shterenzon](https://github.com/romanbsd)
223
4d848dfc »
2011-08-27 Version 1.7.5
224 ## 1.7.5
225
226 * Added support for Patron 0.4.15. This change is not backward compatible so please upgrade Patron to version >= 0.4.15 if you want to use it with WebMock.
227
228 Thanks to [Andreas Garnæs](https://github.com/andreas)
229
b6ca3379 »
2011-08-18 Version 1.7.4
230 ## 1.7.4
231
232 * Added support for matching EM-HTTP-Request requests with body declared as a Hash
233
234 Thanks to [David Yeu](https://github.com/daveyeu)
235
6b422e4a »
2011-08-17 Version 1.7.3
236 ## 1.7.3
237
238 * Added `Get`, `Post`, `Delete`, `Put`, `Head`, `Option` constants to replaced `Net::HTTP` to make it possible to marshal objects with these constants assigned to properties. This fixed problem with `tvdb_party` gem which serializes HTTParty responses.
239
240 Thanks to [Klaus Hartl](https://github.com/carhartl) for reporting this issue.
241
045f28ac »
2011-08-16 Version 1.7.2
242 ## 1.7.2
243
244 * Redefined `const_get` and `constants` methods on the replaced `Net::HTTP` to return same values as original `Net::HTTP`
245
81a3563a »
2011-08-15 Version 1.7.1
246 ## 1.7.1
247
248 * Redefined `const_defined?` on the replaced `Net::HTTP` so that it returns true if constant is defined on the original `Net::HTTP`. This fixes problems with `"Net::HTTP::Get".constantize`.
249
250 Thanks to [Cássio Marques](https://github.com/cassiomarques) for reporting the issue and to [Myron Marston](https://github.com/myronmarston) for help with the solution.
251
8edff053 »
2011-08-15 Version 1.7.0
252 ## 1.7.0
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
253
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
254 * Fixed Net::HTTP adapter to not break normal Net::HTTP behaviour when network connections are allowed. This fixes **selenium-webdriver compatibility**!!!
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
255
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
256 * Added support for EM-HTTP-Request 1.0.x and EM-Synchrony. Thanks to [Steve Hull](https://github.com/sdhull)
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
257
258 * Added support for setting expectations to on a stub itself i.e.
259
260 stub = stub_request(:get, "www.example.com")
261 # ... make requests ...
262 stub.should have_been_requested
263
264 Thanks to [Aidan Feldman](https://github.com/afeld)
265
266 * Minitest support! Thanks to [Peter Higgins](https://github.com/phiggins)
267
21aba845 »
2011-08-09 Updated README and Changelog with inf about Typhoeus support
268 * Added support for Typhoeus::Hydra
269
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
270 * Added support for `Curb::Easy#http_post` and `Curb::Easy#http_post` with multiple arguments. Thanks to [Salvador Fuentes Jr](https://github.com/fuentesjr) and [Alex Rothenberg](https://github.com/alexrothenberg)
271
272 * Rack support. Requests can be stubbed to respond with a Rack app i.e.
273
274 class MyRackApp
275 def self.call(env)
276 [200, {}, ["Hello"]]
277 end
278 end
279
280 stub_request(:get, "www.example.com").to_rack(MyRackApp)
281
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
282 RestClient.get("www.example.com") # ===> "Hello"
283
284
fa61e9ad »
2011-08-09 Fixed formatting in changelog
285 Thanks to [Jay Adkisson](https://github.com/jayferd)
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
286
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
287 * Added support for selective disabling and enabling of http lib adapters
17547a56 »
2011-08-14 Updated Changelog and README with info about enabling and disabling W…
288
289 WebMock.disable! #disable WebMock (all adapters)
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
290 WebMock.disable!(:except => [:net_http]) #disable WebMock for all libs except Net::HTTP
17547a56 »
2011-08-14 Updated Changelog and README with info about enabling and disabling W…
291 WebMock.enable! #enable WebMock (all adapters)
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
292 WebMock.enable!(:except => [:patron]) #enable WebMock for all libs except Patron
293
294 * The error message on an unstubbed request shows a code snippet with body as a hash when it was in url encoded form.
295
296 > RestClient.post('www.example.com', "data[a]=1&data[b]=2", :content_type => 'application/x-www-form-urlencoded')
297
298 WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled....
299
300 You can stub this request with the following snippet:
301
302 stub_request(:post, "http://www.example.com/").
303 with(:body => {"data"=>{"a"=>"1", "b"=>"2"}},
304 :headers => { 'Content-Type'=>'application/x-www-form-urlencoded' }).
305 to_return(:status => 200, :body => "", :headers => {})
17547a56 »
2011-08-14 Updated Changelog and README with info about enabling and disabling W…
306
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
307 Thanks to [Alex Rothenberg](https://github.com/alexrothenberg)
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
308
fa61e9ad »
2011-08-09 Fixed formatting in changelog
309 * The error message on an unstubbed request shows currently registered request stubs.
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
310
311 > stub_request(:get, "www.example.net")
312 > stub_request(:get, "www.example.org")
313 > RestClient.get("www.example.com")
314 WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled....
315
316 You can stub this request with the following snippet:
317
318 stub_request(:get, "http://www.example.com/").
319 to_return(:status => 200, :body => "", :headers => {})
320
321 registered request stubs:
322
323 stub_request(:get, "http://www.example.net/")
324 stub_request(:get, "http://www.example.org/")
325
326 Thanks to [Lin Jen-Shin](https://github.com/godfat) for suggesting this feature.
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
327
328 * Fixed problem with matching requests with json body, when json strings have date format. Thanks to [Joakim Ekberg](https://github.com/kalasjocke) for reporting this issue.
329
607e1e88 »
2011-08-14 Added more examples to 1.7.0.pre Changelog
330 * WebMock now attempts to require each http library before monkey patching it. This is to avoid problem when http library is required after WebMock is required. Thanks to [Myron Marston](https://github.com/myronmarston) for suggesting this change.
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
331
332 * External requests can be disabled while allowing selected ports on selected hosts
333
334 WebMock.disable_net_connect!(:allow => "www.example.com:8080")
335 RestClient.get("www.example.com:80") # ===> Failure
336 RestClient.get("www.example.com:8080") # ===> Allowed.
337
fa61e9ad »
2011-08-09 Fixed formatting in changelog
338 Thanks to [Zach Dennis](https://github.com/zdennis)
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
339
340 * Fixed syntax error in README examples, showing the ways of setting request expectations. Thanks to [Nikita Fedyashev](https://github.com/nfedyashev)
341
342
ae0286a7 »
2011-08-09 @jcf actually did a great job maintaining WebMock!
343 **Many thanks to WebMock co-maintainer [James Conroy-Finn](https://github.com/jcf) who did a great job maintaining WebMock on his own for the last couple of months.**
3cb39d76 »
2011-08-09 Version 1.7.0.pre Changelog
344
a62080b5 »
2011-05-18 Update changelog and version number
345 ## 1.6.4
346
347 This is a quick slip release to regenerate the gemspec. Apparently
348 jeweler inserts dependencies twice if you use the `gemspec` method in
349 your Gemfile and declare gem dependencies in your gemspec.
350
351 https://github.com/technicalpickles/jeweler/issues/154
352
353 josevalim:
354
355 > This just bit me. I just released a gem with the wrong dependencies
356 > because I have updated jeweler. This should have been opt-in,
357 > otherwise a bunch of people using jeweler are going to release gems
358 > with the wrong dependencies because you are automatically importing
359 > from the Gemfile.
360
9887d174 »
2011-05-18 Prepare for 1.6.3 release
361 ## 1.6.3
362
363 * Update the dependency on addressable to get around an issue in v2.2.5.
364 Thanks to [Peter Higgins](https://github.com/phiggins).
365
366 * Add support for matching parameter values using a regular expression
367 as well as a string. Thanks to [Oleg M Prozorov](https://github.com/oleg).
368
369 * Fix integration with httpclient as the internal API has changed.
370 Thanks to [Frank Prößdorf](https://github.com/endor).
371
372 * Ensure Curl::Easy#content_type is always set. Thanks to [Peter
373 Higgins](https://github.com/phiggins).
374
375 * Fix bug with em-http-request adapter stubbing responses that have a
376 chunked transfer encoding. Thanks to [Myron
377 Marston](https://github.com/myronmarston).
378
379 * Fix a load of spec failures with Patron, httpclient, and specs that
380 depended on the behaviour of example.com. Thanks to [Alex
381 Grigorovich](https://github.com/grig).
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
382
e6af079b »
2011-01-12 Updated 1.6.2 changelog and credits
383 ## 1.6.2
384
385 * Em-http-request adapter sets `last_effective_url` property. Thanks to [Sam Stokes](https://github.com/samstokes).
386
387 * 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)
388
f7b9c77e »
2010-11-13 Updated version 1.6.1 changelog
389 ## 1.6.1
390
391 * Fixed issue with `webmock/rspec` which didn't load correctly if `rspec/core` was already required but `rspec/expectations` not.
392
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
393 ## 1.6.0
473b7096 »
2010-11-03 Added WebMock.reset! method. WebMock.reset_webmock is now deprecated
394
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
395 * Simplified integration with Test::Unit, RSpec and Cucumber. Now only a single file has to be required i.e.
acaab83e »
2010-11-03 Updated changelog with the latest changes in master.
396
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
397 require 'webmock/test_unit'
398 require 'webmock/rspec'
399 require 'webmock/cucumber'
acaab83e »
2010-11-03 Updated changelog with the latest changes in master.
400
65dd12b5 »
2010-11-10 Updated changelog with latest changes in master branch
401 * 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.
402
e6925a22 »
2010-11-11 Updated changelog with the latest changes in master
403 * The expectation failure message now contains a list of made requests. Thanks to Martyn Loughran for suggesting this feature.
404
86f36d2d »
2010-11-11 em-http-request adapter is activated by replacing EventMachine::HttpR…
405 * Added `WebMock.print_executed_requests` method which can be useful to find out what requests were made until a given point.
406
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
407 * em-http-request adapter is now activated by replacing EventMachine::HttpRequest constant, instead of monkeypatching the original class.
86f36d2d »
2010-11-11 em-http-request adapter is activated by replacing EventMachine::HttpR…
408
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
409 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:
86f36d2d »
2010-11-11 em-http-request adapter is activated by replacing EventMachine::HttpR…
410
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
411 EventMachine::WebMockHttpRequest.activate!
412 EventMachine::WebMockHttpRequest.deactivate!
86f36d2d »
2010-11-11 em-http-request adapter is activated by replacing EventMachine::HttpR…
413
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
414 Thanks to Martyn Loughran for suggesting this feature.
415
416 * `WebMock.reset_webmock` is deprecated in favour of new `WebMock.reset!`
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
417
418 * Fixed integration with Cucumber. Previously documented example didn't work with new versions of Cucumber.
72cd989d »
2010-11-11 Added WebMock.print_executed_requests method which can be useful to f…
419
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
420 * Fixed stubbing requests with body declared as a hash. Thanks to Erik Michaels-Ober for reporting the issue.
a7cb4fa5 »
2010-11-05 Fixed issue with stubbing requests with request body declared as a ha…
421
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
422 * 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.
178bfd1c »
2010-11-07 em-http-request adapter now works correctly when :query option value …
423
7110c60f »
2010-11-12 Updated version 1.6.0 changelog
424 * Fixed problem with assert_requested which didn't work if used outside rspec or test/unit
473b7096 »
2010-11-03 Added WebMock.reset! method. WebMock.reset_webmock is now deprecated
425
7bca10a3 »
2010-11-08 Don't use JSON to normalize hash body in request pattern. Removed dep…
426 * Removed dependency on json gem
427
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
428 ## 1.5.0
f0408f85 »
2010-10-25 Added support for dynamically evaluated raw responses recorded with `…
429
430 * Support for dynamically evaluated raw responses recorded with `curl -is` <br/>
431 i.e.
432
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
433 `curl -is www.example.com > /tmp/www.example.com.txt`
434 stub_request(:get, "www.example.com").to_return(lambda { |request| File.new("/tmp/#{request.uri.host.to_s}.txt" }))
f0408f85 »
2010-10-25 Added support for dynamically evaluated raw responses recorded with `…
435
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
436 * `:net_http_connect_on_start` option can be passed to `WebMock.allow_net_connect!` and `WebMock.disable_net_connect!` methods, i.e.
ffbcdb3c »
2010-10-30 Updated changelog with the latest changes in master branch
437
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
438 WebMock.allow_net_connect!(:net_http_connect_on_start => true)
ffbcdb3c »
2010-10-30 Updated changelog with the latest changes in master branch
439
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
440 This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`. Check 'Connecting on Net::HTTP.start' in README for more information.
ffbcdb3c »
2010-10-30 Updated changelog with the latest changes in master branch
441
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
442 Thanks to Alastair Brunton for reporting the issue and for fix suggestions.
4e313c29 »
2010-11-02 Updated CHANGELOG and README with information about net_http_connect_…
443
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
444 * Fixed an issue where Patron spec tried to remove system temporary directory.
445 Thanks to Hans de Graaff
4e313c29 »
2010-11-02 Updated CHANGELOG and README with information about net_http_connect_…
446
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
447 * WebMock specs now use RSpec 2
4e313c29 »
2010-11-02 Updated CHANGELOG and README with information about net_http_connect_…
448
079a719e »
2010-11-02 Updated changelog with version 1.5.0 changes
449 * `rake spec NO_CONNECTION=true` can now be used to only run WebMock specs which do not make real network connections
4e313c29 »
2010-11-02 Updated CHANGELOG and README with information about net_http_connect_…
450
a53f1a0b »
2010-10-11 Updated CHANGELOG with version 1.4.0 changes
451 ## 1.4.0
6eb8bb50 »
2010-10-03 WebMock tries to use already loaded version of RSpec (1.x or 2.x) (pr…
452
aaf774b6 »
2010-10-04 Added info to changelog and readme about Curb support, implemented by…
453 * Curb support!!! Thanks to the awesome work of Pete Higgins!
454
2328c005 »
2010-10-10 Updated Changelog with the latest changes in master
455 * `include WebMock` is now deprecated to avoid method and constant name conflicts. Please `include WebMock::API` instead.
456
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
457 * `WebMock::API#request` is renamed to `WebMock::API#a_request` to prevent method name conflicts with i.e. Rails controller specs.
2328c005 »
2010-10-10 Updated Changelog with the latest changes in master
458 WebMock.request is still available.
459
a53f1a0b »
2010-10-11 Updated CHANGELOG with version 1.4.0 changes
460 * 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.
9fded754 »
2010-10-10 Updated CHANGELOG with more detailed information on changes in master
461
a53f1a0b »
2010-10-11 Updated CHANGELOG with version 1.4.0 changes
462 * Removed `WebMock.response_for_request` and `WebMock.assertion_failure` which were only used internally and were not documented.
9fded754 »
2010-10-10 Updated CHANGELOG with more detailed information on changes in master
463
c646491e »
2010-10-03 :allow_localhost => true' now permits 0.0.0.0 in addition to 127.0.0.…
464 * :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.
465
a53f1a0b »
2010-10-11 Updated CHANGELOG with version 1.4.0 changes
466 * Fixed issue with both RSpec 1.x and 2.x being available.
6eb8bb50 »
2010-10-03 WebMock tries to use already loaded version of RSpec (1.x or 2.x) (pr…
467
a53f1a0b »
2010-10-11 Updated CHANGELOG with version 1.4.0 changes
468 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.
6eb8bb50 »
2010-10-03 WebMock tries to use already loaded version of RSpec (1.x or 2.x) (pr…
469
470 Thanks to Hans de Graaff for reporting this.
471
9acf181c »
2010-10-13 Updated changelog for version 1.4.0
472 * Changed runtime dependency on Addressable version 2.2.2 which fixes handling of percent-escaped '+'
473
67a08191 »
2010-09-06 Version 1.3.5 changelog + updated docs
474 ## 1.3.5
475
476 * External requests can be disabled while allowing selected hosts. Thanks to Charles Li and Ryan Bigg
477
478 This feature was available before only for localhost with `:allow_localhost => true`
479
8118632d »
2012-02-04 Fixed indentation in changelog
480 WebMock.disable_net_connect!(:allow => "www.example.org")
67a08191 »
2010-09-06 Version 1.3.5 changelog + updated docs
481
8118632d »
2012-02-04 Fixed indentation in changelog
482 Net::HTTP.get('www.something.com', '/') # ===> Failure
67a08191 »
2010-09-06 Version 1.3.5 changelog + updated docs
483
8118632d »
2012-02-04 Fixed indentation in changelog
484 Net::HTTP.get('www.example.org', '/') # ===> Allowed.
67a08191 »
2010-09-06 Version 1.3.5 changelog + updated docs
485
486 * Fixed Net::HTTP adapter so that it preserves the original behavior of Net::HTTP.
487
488 When making a request with a block that calls #read_body on the request,
489 Net::HTTP causes the body to be set to a Net::ReadAdapter, but WebMock was causing the body to be set to a string.
490
688e6873 »
2010-08-10 Version 1.3.4 changelog
491 ## 1.3.4
492
493 * Fixed Net::HTTP adapter to handle cases where a block with `read_body` call is passed to `request`.
494 This fixes compatibility with `open-uri`. Thanks to Mark Evans for reporting the issue.
495
db5fcf46 »
2010-08-03 Version 1.3.3 changelog.
496 ## 1.3.3
497
498 * Fixed handling of multiple values for the same response header for Net::HTTP. Thanks to Myron Marston for reporting the issue.
499
27c0f653 »
2010-07-23 Version 1.3.2 changelog
500 ## 1.3.2
501
502 * Fixed compatibility with EM-HTTP-Request >= 0.2.9. Thanks to Myron Marston for reporting the issue.
503
15f888ee »
2010-07-09 The less hacky way to get the stream behaviour working for em-http-re…
504 ## 1.3.1
505
60fa2445 »
2010-07-09 Updated changelog
506 * The less hacky way to get the stream behaviour working for em-http-request. Thanks to Martyn Loughran
507
508 * Fixed issues where Net::HTTP was not accepting valid nil response body. Thanks to Muness Alrubaie
15f888ee »
2010-07-09 The less hacky way to get the stream behaviour working for em-http-re…
509
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
510 ## 1.3.0
511
512 * Added support for [em-http-request](http://github.com/igrigorik/em-http-request)
513
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
514 * Matching query params using a hash
515
8118632d »
2012-02-04 Fixed indentation in changelog
516 stub_http_request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]})
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
517
8118632d »
2012-02-04 Fixed indentation in changelog
518 RestClient.get("http://www.example.com/?a[]=b&a[]=c") # ===> Success
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
519
8118632d »
2012-02-04 Fixed indentation in changelog
520 request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]}).should have_been_made # ===> Success
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
521
522 * Matching request body against a hash. Body can be URL-Encoded, JSON or XML.
26cb92fe »
2010-06-21 Small improvements to CHANGELOG for version 1.3.0
523
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
524 (Thanks to Steve Tooke for the idea and a solution for url-encoded bodies)
525
8118632d »
2012-02-04 Fixed indentation in changelog
526 stub_http_request(:post, "www.example.com").
527 with(:body => {:data => {:a => '1', :b => 'five'}})
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
528
8118632d »
2012-02-04 Fixed indentation in changelog
529 RestClient.post('www.example.com', "data[a]=1&data[b]=five",
530 :content_type => 'application/x-www-form-urlencoded') # ===> Success
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
531
8118632d »
2012-02-04 Fixed indentation in changelog
532 RestClient.post('www.example.com', '{"data":{"a":"1","b":"five"}}',
533 :content_type => 'application/json') # ===> Success
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
534
8118632d »
2012-02-04 Fixed indentation in changelog
535 RestClient.post('www.example.com', '<data a="1" b="five" />',
536 :content_type => 'application/xml' ) # ===> Success
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
537
8118632d »
2012-02-04 Fixed indentation in changelog
538 request(:post, "www.example.com").
b2f1a0c1 »
2012-02-05 Added part of code in changelog, which was removed by mistake
539 with(:body => {:data => {:a => '1', :b => 'five'}},
540 :headers => 'Content-Type' => 'application/json').should have_been_made # ===> Success
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
541
542 * Request callbacks (Thanks to Myron Marston for all suggestions)
543
544 WebMock can now invoke callbacks for stubbed or real requests:
545
8118632d »
2012-02-04 Fixed indentation in changelog
546 WebMock.after_request do |request_signature, response|
547 puts "Request #{request_signature} was made and #{response} was returned"
548 end
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
549
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
550 invoke callbacks for real requests only and except requests made with Patron client
551
8118632d »
2012-02-04 Fixed indentation in changelog
552 WebMock.after_request(:except => [:patron], :real_requests_only => true) do |request_signature, response|
553 puts "Request #{request_signature} was made and #{response} was returned"
554 end
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
555
556 * `to_raise()` now accepts an exception instance or a string as argument in addition to an exception class
557
8118632d »
2012-02-04 Fixed indentation in changelog
558 stub_request(:any, 'www.example.net').to_raise(StandardError.new("some error"))
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
559
8118632d »
2012-02-04 Fixed indentation in changelog
560 stub_request(:any, 'www.example.net').to_raise("some error")
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
561
26cb92fe »
2010-06-21 Small improvements to CHANGELOG for version 1.3.0
562 * Matching requests based on a URI is 30% faster
354af66a »
2010-06-21 Updated CHANGELOG width version 1.3.0 changes
563
564 * Fixed constant namespace issues in HTTPClient adapter. Thanks to Nathaniel Bibler for submitting a patch.
565
fd2472a8 »
2010-05-26 Version 1.2.2 changelog
566 ## 1.2.2
567
568 * 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
569
5803f311 »
2010-05-24 Version bump to 1.2.1
570 ## 1.2.1
571
572 * Changed license from GPL to MIT
573
574 * Fixed gemspec file. Thanks to Razic
575
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
576 ## 1.2.0
31b3ffb0 »
2010-05-14 Added version 1.2.0 changelog
577
578 * RSpec 2 compatibility. Thanks to Sam Phillips!
579
580 * :allow_localhost => true' now permits 127.0.0.1 as well as 'localhost'. Thanks to Mack Earnhardt
581
582 * Request URI matching in now 2x faster!
583
584
4a040170 »
2010-04-28 Added 1.1.0 changelog
585 ## 1.1.0
586
ee7b3b4b »
2010-04-29 Fixed spelling
587 * [VCR](http://github.com/myronmarston/vcr/) compatibility. Many thanks to Myron Marston for all suggestions.
4a040170 »
2010-04-28 Added 1.1.0 changelog
588
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
589 * Support for stubbing requests and returning responses with multiple headers with the same name. i.e multiple Accept headers.
590
591 stub_http_request(:get, 'www.example.com').
592 with(:headers => {'Accept' => ['image/png', 'image/jpeg']}).
593 to_return(:body => 'abc')
594 RestClient.get('www.example.com',
595 {"Accept" => ['image/png', 'image/jpeg']}) # ===> "abc\n"
4a040170 »
2010-04-28 Added 1.1.0 changelog
596
597 * When real net connections are disabled and unstubbed request is made, WebMock throws WebMock::NetConnectNotAllowedError instead of assertion error or StandardError.
598
599 * Added WebMock.version()
600
601
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
602 ## 1.0.0
603
604 * Added support for [Patron](http://toland.github.com/patron/)
605
606 * Responses dynamically evaluated from block (idea and implementation by Tom Ward)
607
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
608 stub_request(:any, 'www.example.net').
609 to_return { |request| {:body => request.body} }
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
610
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
611 RestClient.post('www.example.net', 'abc') # ===> "abc\n"
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
612
613 * Responses dynamically evaluated from lambda (idea and implementation by Tom Ward)
614
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
615 stub_request(:any, 'www.example.net').
616 to_return(lambda { |request| {:body => request.body} })
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
617
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
618 RestClient.post('www.example.net', 'abc') # ===> "abc\n"
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
619
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
620 * Response with custom status message
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
621
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
622 stub_request(:any, "www.example.com").to_return(:status => [500, "Internal Server Error"])
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
623
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
624 req = Net::HTTP::Get.new("/")
625 Net::HTTP.start("www.example.com") { |http| http.request(req) }.message # ===> "Internal Server Error"
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
626
c3c92bae »
2010-04-10 Added information about allowing localhost to version 1.0.0 changelog
627 * Raising timeout errors (suggested by Jeffrey Jones) (compatibility with Ruby 1.8.6 by Mack Earnhardt)
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
628
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
629 stub_request(:any, 'www.example.net').to_timeout
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
630
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
631 RestClient.post('www.example.net', 'abc') # ===> RestClient::RequestTimeout
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
632
c3c92bae »
2010-04-10 Added information about allowing localhost to version 1.0.0 changelog
633 * External requests can be disabled while allowing localhost (idea and implementation by Mack Earnhardt)
634
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
635 WebMock.disable_net_connect!(:allow_localhost => true)
c3c92bae »
2010-04-10 Added information about allowing localhost to version 1.0.0 changelog
636
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
637 Net::HTTP.get('www.something.com', '/') # ===> Failure
c3c92bae »
2010-04-10 Added information about allowing localhost to version 1.0.0 changelog
638
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
639 Net::HTTP.get('localhost:9887', '/') # ===> Allowed. Perhaps to Selenium?
c3c92bae »
2010-04-10 Added information about allowing localhost to version 1.0.0 changelog
640
641
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
642 ### Bug fixes
643
644 * Fixed issue where Net::HTTP adapter didn't work for requests with body responding to read (reported by Tekin Suleyman)
c3c92bae »
2010-04-10 Added information about allowing localhost to version 1.0.0 changelog
645 * Fixed issue where request stub with headers declared as nil was matching requests with non empty headers
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
646
b6c3b3b9 »
2010-02-02 Version bump to 0.9.1
647 ## 0.9.1
648
649 * Fixed issue where response status code was not read from raw (curl -is) responses
650
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
651 ## 0.9.0
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
652
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
653 * Matching requests against provided block (by Sergio Gil)
654
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
655 stub_request(:post, "www.example.com").with { |request| request.body == "abc" }.to_return(:body => "def")
656 RestClient.post('www.example.com', 'abc') # ===> "def\n"
657 request(:post, "www.example.com").with { |req| req.body == "abc" }.should have_been_made
658 #or
659 assert_requested(:post, "www.example.com") { |req| req.body == "abc" }
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
660
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
661 * Matching request body against regular expressions (suggested by Ben Pickles)
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
662
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
663 stub_request(:post, "www.example.com").with(:body => /^.*world$/).to_return(:body => "abc")
664 RestClient.post('www.example.com', 'hello world') # ===> "abc\n"
665
66519c1c »
2010-03-26 Updated changelog with 1.0.0 changes
666 * Matching request headers against regular expressions (suggested by Ben Pickles)
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
667
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
668 stub_request(:post, "www.example.com").with(:headers => {"Content-Type" => /image\/.+/}).to_return(:body => "abc")
669 RestClient.post('www.example.com', '', {'Content-Type' => 'image/png'}) # ===> "abc\n"
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
670
671 * Replaying raw responses recorded with `curl -is`
672
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
673 `curl -is www.example.com > /tmp/example_curl_-is_output.txt`
674 raw_response_file = File.new("/tmp/example_curl_-is_output.txt")
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
675
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
676 from file
677
678 stub_request(:get, "www.example.com").to_return(raw_response_file)
679
680 or string
681
682 stub_request(:get, "www.example.com").to_return(raw_response_file.read)
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
683
684 * Multiple responses for repeated requests
685
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
686 stub_request(:get, "www.example.com").to_return({:body => "abc"}, {:body => "def"})
687 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
688 Net::HTTP.get('www.example.com', '/') # ===> "def\n"
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
689
690 * Multiple responses using chained `to_return()` or `to_raise()` declarations
691
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
692 stub_request(:get, "www.example.com").
693 to_return({:body => "abc"}).then. #then() just is a syntactic sugar
694 to_return({:body => "def"}).then.
695 to_raise(MyException)
696 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
697 Net::HTTP.get('www.example.com', '/') # ===> "def\n"
698 Net::HTTP.get('www.example.com', '/') # ===> MyException raised
699
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
700 * Specifying number of times given response should be returned
701
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
702 stub_request(:get, "www.example.com").
703 to_return({:body => "abc"}).times(2).then.
704 to_return({:body => "def"})
705
706 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
707 Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
708 Net::HTTP.get('www.example.com', '/') # ===> "def\n"
709
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
710 * Added support for `Net::HTTP::Post#body_stream`
711
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
712 This fixes compatibility with new versions of RestClient
713
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
714 * WebMock doesn't suppress default request headers added by http clients anymore.
715
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
716 i.e. Net::HTTP adds `'Accept'=>'*/*'` to all requests by default
717
718
719
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
720 ## 0.8.2
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
721
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
722 * Fixed issue where WebMock was not closing IO object passed as response body after reading it.
723 * 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
724
725
726 ## 0.8.1
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
727
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
728 * Fixed HTTPClient adapter compatibility with Ruby 1.8.6 (reported by Piotr Usewicz)
729 * Net:HTTP adapter now handles request body assigned as Net::HTTP::Post#body attribute (fixed by Mack Earnhardt)
730 * Fixed issue where requests were not matching stubs with Accept header set.(reported by Piotr Usewicz)
731 * Fixed compatibility with Ruby 1.9.1, 1.9.2 and JRuby 1.3.1 (reported by Diego E. “Flameeyes” Pettenò)
732 * Fixed issue with response body declared as IO object and multiple requests (reported by Niels Meersschaert)
733 * Fixed "undefined method `assertion_failure'" error (reported by Nick Plante)
734
735
736 ## 0.8.0
737
738 * Support for HTTPClient (sync and async requests)
a251cb36 »
2011-05-28 Indent files correctly and remove trailing whitespace
739 * Support for dynamic responses. Response body and headers can be now declared as lambda.
740 (Thanks to Ivan Vega ( @ivanyv ) for suggesting this feature)
5313e02f »
2010-01-31 Added version 0.9.0 features to CHANGELOG and README
741 * Support for stubbing and expecting requests with empty body
742 * Executing non-stubbed request leads to failed expectation instead of error
743
744
745 ### Bug fixes
746
747 * Basic authentication now works correctly
748 * Fixed problem where WebMock didn't call a block with the response when block was provided
749 * Fixed problem where uris with single slash were not matching uris without path provided
750
751
752 ## 0.7.3
753
754 * Clarified documentation
755 * Fixed some issues with loading of Webmock classes
756 * Test::Unit and RSpec adapters have to be required separately
757
758
759 ## 0.7.2
760
761 * Added support for matching escaped and non escaped URLs
Something went wrong with that request. Please try again.