Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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