Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 589 lines (442 sloc) 28.68 kB
2e87813 @myronmarston Words.
authored
1 ## In git
2
c06d3f0 @myronmarston Release 2.0.0.rc1.
authored
3 [Full Changelog](http://github.com/myronmarston/vcr/compare/v2.0.0.rc1...master)
4
e0d3a4f @myronmarston Update changelog.
authored
5 ## New Features
6
7 * Add YARD documentation for the public API. Thanks to
8 [Ben Oakes](https://github.com/benjaminoakes) for help with setting
9 this up.
10 * Fix `around_http_request` hook so that `request.proceed` returns
11 the response.
12 * Resolve `cassette_library_dir` to an absolute path. Thanks to
13 [Nate Clark](https://github.com/heythisisnate) for the suggestion.
2062381 @myronmarston Update Changelog.
authored
14 * Add to the `VCR::Request` API in `before_http_request` and
15 `after_http_request` hooks so the request has query methods like
16 `#real?`, `#recordable?`, `#ignored?`, etc. Thanks to
17 [Nate Clark](https://github.com/heythisisnate) for the idea.
18 * Allow filters (objects that respond to `#to_proc`) to be passed
19 to `before_http_request` and `after_http_request`. This allows
20 an API like `before_http_request(:real?)` or
21 `after_http_request(lambda { |req| req.uri =~ /amazon/ })`.
22 * Add `debug_logger` config option. This can be used to
23 troubleshoot what VCR is doing.
580f827 @myronmarston Update webmock dependency now that 1.8.0 is out.
authored
24 * Update WebMock to version (1.8.0) that supports Excon stubbing.
e0d3a4f @myronmarston Update changelog.
authored
25
26 ## Bug Fixes
27
28 * Fix rspec metadata integration to allow the cassette name to be set
29 at the example group level and apply to multiple examples. Thanks to
30 [Paul Russell](https://github.com/pauljamesrussell) for reporting the
31 bug.
32 * Add missing `require 'vcr/version'` to the cassette migrator task.
33 If you tried the migration rake task with 2.0.0.rc1 and got a
34 `NoMethodError`, it should be fixed now.
35 * Update Excon dependency to 0.9.5; 0.9.5 includes an important bug
36 fix needed by VCR.
37 * Ensure the excon retry limit is honored properly.
38 * Ensure that the correct error class is raised by excon when stubbing
39 an unexpected status.
40 * Fix FakeWeb library hook so that it records the request body when
41 using `Net::HTTP.post_form`. Thanks to
42 [Retistic](https://github.com/Retistic) for reporting the bug.
43
c06d3f0 @myronmarston Release 2.0.0.rc1.
authored
44 ## 2.0.0 RC 1 (December 8, 2011)
45
46 [Full Changelog](http://github.com/myronmarston/vcr/compare/v2.0.0.beta2...v2.0.0.rc1)
a47947b @myronmarston 2.0.0.beta2 release.
authored
47
8be100d @myronmarston Update changelog.
authored
48 * Add Faraday hook that automatically inserts the VCR middleware so that
49 you can use VCR with Faraday without needing to insert the middleware
50 yourself. Use `VCR.configure { |c| c.hook_into :faraday }`.
51 * Add `ignore_request` config option. Pass it a block that returns
958c36e @myronmarston Update Changelog.
authored
52 true if the given request should be ignored.
53 * Improve the unhandled HTTP request error message so that it lists
54 different options for how to get VCR to handle it.
55 * Add {before,after,around}_http_request hooks.
56 * Updated WebMock integration and bumped up required version to 1.7.8.
57 * Test against latest Excon (0.7.9) and confirm that VCR works fine with
58 it.
59 * Add define_cassette_placeholder as an alias for filter_sensitive_data.
60 * Fix Faraday middleware so that it works properly when you use parallel
61 requests.
62 * Integrate VCR with RSpec metadata. Thanks to [Ryan Bates](https://github.com/ryanb)
63 for the great idea.
8be100d @myronmarston Update changelog.
authored
64
a47947b @myronmarston 2.0.0.beta2 release.
authored
65 ## 2.0.0 Beta 2 (November 6, 2011)
66
67 [Full Changelog](http://github.com/myronmarston/vcr/compare/v2.0.0.beta1...v2.0.0.beta2)
e57f1c3 @myronmarston 2.0.0.beta1 release.
authored
68
46c3be8 @myronmarston Update to latest typhoeus. No more need to monkey patch it!
authored
69 * Update to (and require) Typhoeus 0.3.2.
a70c39f @myronmarston Acknowledge sfesekaran for that last fix.
authored
70 * Fix a bug with `VCR.request_matchers.uri_without_param(:some_param)`
71 so that it properly handles URIs that have no parameters. Thanks to
0520b4e @myronmarston Use sfekaran's full name based on the commit.
authored
72 [Sathya Sekaran](https://github.com/sfsekaran) for this fix.
814eba2 @myronmarston Update changelog.
authored
73 * The cassette format has changed significantly:
74 * The HTTPInteractions are no longer normalized in a lossy fashion.
75 VCR 1.x converted all HTTP header keys to lowercase. VCR 2.0 no
76 longer does this because it is impossible to know what the original
77 casing was (i.e. given `etag`, was it originally `etag`, `ETag` or
78 `Etag`?). Also, some HTTP libraries add particular request headers
79 to every request, and these used to be ignored. The aren't anymore.
80 * The ruby struct objects are not directly serialized anymore.
81 Instead, only primitives (hashes, arrays, strings, integers) are
82 serialized. This allows swappable serializers and will allow other
83 tools to read and use a VCR cassette.
84 * Add new serializer API. VCR ships with YAML, Syck, Psych and JSON
85 serializers, and it is very simple to implement your own. The
86 serializer can be configured on a per-cassette basis.
87 * New `vcr:migrate_cassettes DIR=path/to/cassettes` rake task assists
88 with upgrading from VCR 1.x to 2.0.
89 * Cassettes now contain a `recorded_with` attribute. This should
90 allow the cassette structure to be updated more easily in the future
91 as the version number provides a means for easily migrating
92 cassettes.
93 * Add `recorded_at` to data serialized with an HTTPInteraction. This
94 allows the `:re_record_interval` cassette option to work more
95 accurately and no longer rely on the file modification time.
96
97 Note that VCR 1.x cassettes cannot be used with VCR 2.0. See the
98 upgrade notes for more info.
99
100 ## 2.0.0 Beta 1 (October 8, 2011)
46c3be8 @myronmarston Update to latest typhoeus. No more need to monkey patch it!
authored
101
e57f1c3 @myronmarston 2.0.0.beta1 release.
authored
102 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.3...v2.0.0.beta1)
103
60f00d1 @myronmarston Use past tense verb like the other parts of the changelog.
authored
104 ### Changed
e57f1c3 @myronmarston 2.0.0.beta1 release.
authored
105
106 * Previously, the last matching response in a cassette would
107 repeatedly playback if the same request kept being made. This is
108 no longer the case.
109 * The Faraday middleware has been rewritten.
110 * You no longer need to configure `stub_with :faraday` to use it.
111 * It has been updated to work in parallel mode.
112 * It no longer accepts a block and uses that to determine the
113 cassette. Instead, use `VCR.use_cassette` just like you would
114 with FakeWeb or WebMock.
115
116 ### Added
117
118 * Allow any callable (an object that responds to #call, such as a
119 lambda) to be used as a request matcher. Thanks to [Avdi Grimm](https://github.com/avdi)
120 for the idea.
121 * Add ability to register custom request matchers.
122 * Add `VCR.request_matchers.uri_without_param(:some_param)` to generate
123 a request matcher that matches on URI but ignores the named parameter.
124 * New `:allow_playback_repeats` cassette option preserves the old
125 playback repeat behavior. Thanks to [Avdi Grimm](https://github.com/avdi)
126 for the idea.
127 * New `:exclusive` cassette option allows a cassette to be exclusively
128 used rather than keeping the existing one active as a fallback. Thanks
129 to [Avdi Grimm](https://github.com/avdi) for the idea.
0544db9 @myronmarston 1.11.3 release.
authored
130
ad12768 @myronmarston Rework changelog a bit.
authored
131 ### Removed
132
e57f1c3 @myronmarston 2.0.0.beta1 release.
authored
133 * Removed support for Ruby 1.8.6 and 1.9.1.
134 * Removed lots of old deprecated APIs.
135 * Removed support for manually changing the URI in a cassette to a regex.
ad12768 @myronmarston Rework changelog a bit.
authored
136
137 ### Deprecated
138
e36ed0e @myronmarston Deprecate `VCR::Config` in favor of `VCR.configuration` and `VCR.conf…
authored
139 * Deprecated `VCR.config` in favor of `VCR.configure`.
140 * Deprecated `VCR::Config` singleton module in favor of
141 `VCR::Configuration` class. The current configuration instance
142 can be accessed via `VCR.configuration`.
e57f1c3 @myronmarston 2.0.0.beta1 release.
authored
143 * Deprecated `stub_with` in favor of `hook_into`. The stubbing
144 adapters have been completely rewritten and are no longer an
145 implementation of the adapter design pattern. Instead they simply
146 use the named library to globally hook into every HTTP request.
145918e @myronmarston Update changelog.
authored
147
0544db9 @myronmarston 1.11.3 release.
authored
148 ## 1.11.3 (August 31, 2011)
149
150 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.2...v1.11.3)
151
152 * Fix cassette serialization so that it does not include extra `ignored`
153 instance variable.
76c8d2b @myronmarston 1.11.2 release.
authored
154
155 ## 1.11.2 (August 28, 2011)
156
157 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.1...v1.11.2)
158
159 * Updated rake, cucumber and aruba dev dependencies to latest releases.
160 * Fix all warnings originating from VCR. VCR is now warning-free!
5393e26 @myronmarston 1.11.1 release.
authored
161
162 ## 1.11.1 (August 18, 2011)
163
164 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.0...v1.11.1)
165
166 * Yanked 1.11.0 and rebuilt gem on 1.8.7 to deal with syck/psych
167 incompatibilties in gemspec.
966d8ba @myronmarston 1.11.0 release.
authored
168
169 ## 1.11.0 (August 18, 2011)
170
171 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.10.3...v1.11.0)
172
173 * Updates to work with WebMock 1.7.0.
d62fe13 @myronmarston 1.10.3 release.
authored
174
175 ## 1.10.3 (July 21, 2011)
176
177 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.10.2...v1.10.3)
178
179 * Fix `:update_content_length_header` option so no error is raised if
180 a response body is nil. Bug reported by [jg](https://github.com/jg).
e472188 @myronmarston 1.10.2 release.
authored
181
182 ## 1.10.2 (July 16, 2011)
183
184 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.10.1...v1.10.2)
185
186 * Yanked 1.10.1 and rebuilt gem on 1.8.7 to deal with syck/psych
187 incompatibilties in gemspec.
7573d96 @myronmarston 1.10.1 release.
authored
188
189 ## 1.10.1 (July 16, 2011)
190
191 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.10.0...v1.10.1)
5fcfa61 @myronmarston 1.10.0 release.
authored
192
662ed74 @myronmarston Fix changelog wording.
authored
193 * Fix typo in error message. Fix provided by [Bradley](https://github.com/bradleyisotope).
a216984 @myronmarston Fix excon adapter to handle query specified as a hash.
authored
194 * Fix excon adapter to properly handle queries specified as a hash.
662ed74 @myronmarston Fix changelog wording.
authored
195 * Fix excon adapter to stub a response with a hash as excon expects.
196 Fix provided by [Wesley Beary](https://github.com/geemus).
ca1e54a @myronmarston Fix excon adapter so that it records a response even when excon raise…
authored
197 * Fix excon adapter so that it records a response even when excon raises
198 an error due to an unexpected response.
b604625 @myronmarston Update changelog.
authored
199
5fcfa61 @myronmarston 1.10.0 release.
authored
200 ## 1.10.0 (May 18, 2011)
201
202 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.9.0...v1.10.0)
ab598a7 @myronmarston 1.9.0 release.
authored
203
7613284 @myronmarston Update changelog.
authored
204 * Fix header normalization so that it properly handles nested arrays and
205 non-string values.
206 * Add cucumber scenario documenting how VCR sanitizes cassette names
207 to "normal" file names (i.e. only alphanumerics, no spaces).
208 * Add `:ignore_cassettes` option to `VCR.turn_off!`. This causes
209 cassette insertions to be ignored rather than to trigger an error.
b466443 @myronmarston Update contributors.
authored
210 Patch provided by [Justin Smestad](https://github.com/jsmestad).
eb530ae @myronmarston Fix rack middleware so that it is threadsafe.
authored
211 * Fix rack middleware to make it threadsafe.
f52b13a @myronmarston Update rspec to latest.
authored
212 * Update to latest RSpec (rspec 2.6).
7613284 @myronmarston Update changelog.
authored
213
ab598a7 @myronmarston 1.9.0 release.
authored
214 ## 1.9.0 (April 14, 2011)
215
216 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.8.0...v1.9.0)
217
218 * Add support for [Excon](https://github.com/geemus/excon).
487332d @myronmarston 1.8.0 release.
authored
219
220 ## 1.8.0 (March 31, 2011)
221
222 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.7.2...v1.8.0)
717d7c8 @myronmarston 1.7.2 release.
authored
223
fb156a7 @myronmarston Update to Faraday 0.6.
authored
224 * Updated Faraday middleware to work with newly released Faraday 0.6.0.
225
717d7c8 @myronmarston 1.7.2 release.
authored
226 ## 1.7.2 (March 26, 2011)
227
228 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.7.1...v1.7.2)
0022cf7 @myronmarston 1.7.1 release.
authored
229
dbbc4b3 @myronmarston Ensure that header values are the same when recording and replaying.
authored
230 * Fixed Typhoeus adapter so headers are returned in the same form during
231 playback as they would be without VCR. Bug reported by
232 [Avdi Grimm](https://github.com/avdi).
233 * Fixed Faraday adapter so it treats response headers in the same way
234 Faraday itself does (i.e. with lowercase keys).
235
0022cf7 @myronmarston 1.7.1 release.
authored
236 ## 1.7.1 (March 19, 2011)
237
238 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.7.0...v1.7.1)
1467ebb @myronmarston 1.7.0 release.
authored
239
0d4d9f5 @myronmarston Fix faraday adapter so that it properly normalizes query parameters.
authored
240 * Fix Faraday adapter so that it properly normalizes query parameters
241 in the same way that Faraday itself does.
242
1467ebb @myronmarston 1.7.0 release.
authored
243 ## 1.7.0 (March 1, 2011)
244
245 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.6.0...v1.7.0)
de8c689 @myronmarston 1.6.0 release.
authored
246
d66f924 @myronmarston Update changelog.
authored
247 * Use Psych for YAML serialization/deserialization when it is available.
248 Syck, Ruby's old YAML engine, will remove whitespace from some
249 strings. Bug reported by [Robert Poor](https://github.com/rdpoor).
250 * Add new `:update_content_length_header` cassette option. The option
251 will ensure the `content-length` header value matches the actual
252 response body length.
8ca9b67 @myronmarston Update changelog.
authored
253 * Add new `:once` record mode. It operates like `:new_episodes` except
254 when the cassette file already exists, in which case it causes
255 new requests to raise an error. Feature suggested by
256 [Jamie Cobbett](https://github.com/jamiecobbett).
257 * Made `:once` the default record mode.
1f9fa36 @myronmarston Add new filter_sensitive_data configuration option.
authored
258 * Add new `filter_sensitive_data` configuration option. Feature
259 suggested by [Nathaniel Bibler](https://github.com/nbibler).
8050f83 @myronmarston Update Changelog.
authored
260 * Commit to [Semantic Versioning](http://semver.org/). The cucumber
261 features document the public API for the purposes of semver.
06cf3f6 @myronmarston Update changelog.
authored
262 * Add support for CI builds using [travis-ci](http://travis-ci.org/myronmarston/vcr).
fd67425 @myronmarston Update changelog.
authored
263 * Add support for running tests through `gem test vcr`. Visit
264 [test.rubygems.org](http://test.rubygems.org/gems/vcr) to see
265 the results.
acfb274 @myronmarston Use separate Before/After hooks rather than a single Around hook.
authored
266 * Fix cucumber support to use separate `Before` & `After` hooks rather than
267 a single `Around` hook because of a bug in cucumber that prevents
268 background steps from running within the `Around` hook.
d66f924 @myronmarston Update changelog.
authored
269
de8c689 @myronmarston 1.6.0 release.
authored
270 ## 1.6.0 (February 3, 2011)
271
272 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.5.1...v1.6.0)
273
274 * Add new `ignore_hosts` configuration option that allows you to ignore
275 any host (not just localhost aliases, as the `ignore_localhost` option
276 works). Feature suggested by [Claudio Poli](https://github.com/masterkain).
277 * Upgraded to the latest Typhoeus (0.2.1).
278 * General code clean up and refactoring.
be6672d @myronmarston 1.5.1 release.
authored
279
280 ## 1.5.1 (January 12, 2011)
281
282 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.5.0...v1.5.1)
283
284 * Fix response and request serialization so that the headers are raw
285 strings. This fixes intermittent YAML seg faults for paperclip
d66f924 @myronmarston Update changelog.
authored
286 uploads to S3. Bug reported by [Rob Slifka](https://github.com/rslifka).
9c4a71c @myronmarston 1.5.0 release.
authored
287
288 ## 1.5.0 (January 12, 2011)
289
290 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.4.0...v1.5.0)
2e87813 @myronmarston Words.
authored
291
292 * Fix VCR::Cassette so it does not raise an error when a cassette file is
293 empty. Bug reported and fixed by [Karl Baum](https://github.com/kbaum).
4765bcf @myronmarston Update changelog.
authored
294 * Lots of code cleanup.
295 * Fix the stubbing adapters so that they use the cassette instance
296 rather than the cassette name to create and restore checkpoints.
297 * Raise an appropriate error when a nested cassette is inserted with the
298 same name as a cassette that is already in the stack (VCR's design
299 doesn't allow this and you would get weird errors later on).
300 * Raise an appropriate error when restoring a stubs checkpoint if the
301 checkpoint cannot be found.
fb94dec @myronmarston Words.
authored
302 * Add `before_record` and `before_playback` hooks. Idea and initial
303 implementation by [Oliver Searle-Barnes](https://github.com/opsb);
304 futher suggestions, testing and feedback by
305 [Nathaniel Bibler](https://github.com/nbibler).
2e87813 @myronmarston Words.
authored
306
6d40d17 @myronmarston 1.4.0 release.
authored
307 ## 1.4.0 (December 3, 2010)
c1c590e @myronmarston Update changelog.
authored
308
6d40d17 @myronmarston 1.4.0 release.
authored
309 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.3.3...v1.4.0)
c1c590e @myronmarston Update changelog.
authored
310
b58808d @myronmarston Add rack middleware feature.
authored
311 * Added support for making HTTP requests without a cassette (i.e. if you don't
c1c590e @myronmarston Update changelog.
authored
312 want to use VCR for all of your test suite). There are a few ways to
313 enable this:
314 * In your `VCR.config` block, set `allow_http_connections_when_no_cassette`
315 to true to allow HTTP requests without a cassette.
316 * You can temporarily turn off VCR using `VCR.turned_off { ... }`.
317 * You can toggle VCR off and on with `VCR.turn_off!` and `VCR.turn_on!`.
b58808d @myronmarston Add rack middleware feature.
authored
318 * Fixed bug with `ignore_localhost` config option. Previously, an error would
021cfea @myronmarston Fixed bug with ignore_localhost config option.
authored
319 be raised if it was set before the `stub_with` option.
b58808d @myronmarston Add rack middleware feature.
authored
320 * Added VCR::Middleware::Rack (see features/middleware/rack.feature for usage).
4f8e467 @myronmarston Add Faraday support.
authored
321 * Added support for Faraday (see features/middleware/faraday.feature for usage).
c1c590e @myronmarston Update changelog.
authored
322
ae45360 @myronmarston 1.3.3 release.
authored
323 ## 1.3.3 (November 21, 2010)
76137bf @myronmarston Hit a local sinatra app rather than example.com in specs.
authored
324
ae45360 @myronmarston 1.3.3 release.
authored
325 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.3.2...v1.3.3)
76137bf @myronmarston Hit a local sinatra app rather than example.com in specs.
authored
326
327 * In specs, hit a local sinatra server rather than example.com. This makes
328 the specs faster and removes an external dependency. The specs can pass
329 without being online!
26fae52 @myronmarston Fix VCR::Config.http_stubbing_libraries so that it always returns an …
authored
330 * Raise an explicit error when the http stubbing library is not configured
331 (rather than letting the user get a confusing error later).
ae45360 @myronmarston 1.3.3 release.
authored
332 * Test against the latest WebMock release (1.6.1) (no changes required).
333 * Fix a few cucumber scenarios so they pass on rubinius and jruby.
76137bf @myronmarston Hit a local sinatra app rather than example.com in specs.
authored
334
2efe05d @myronmarston 1.3.2 release.
authored
335 ## 1.3.2 (November 16, 2010)
0025871 @myronmarston Normalize structs so they are serialized the same regardless of which…
authored
336
2efe05d @myronmarston 1.3.2 release.
authored
337 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.3.1...v1.3.2)
0025871 @myronmarston Normalize structs so they are serialized the same regardless of which…
authored
338
339 * Fix serialized structs so that they are normalized andthey will be the same
340 regardless of which HTTP library made the request.
341 * Status "OK " => "OK"
342 * Body '' => nil
343 * Headers {} => nil
344 * Remove extraneous headers added by the HTTP lib (i.e. Typhoeus user agent)
2efe05d @myronmarston 1.3.2 release.
authored
345 * Rewrite cucumber features in a more documentation-oriented style.
0025871 @myronmarston Normalize structs so they are serialized the same regardless of which…
authored
346
75fd8bd @myronmarston 1.3.1 release.
authored
347 ## 1.3.1 (November 11, 2010)
348
429619f @myronmarston Fix URLs in changelog.
authored
349 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.3.0...v1.3.1)
75fd8bd @myronmarston 1.3.1 release.
authored
350
351 * Update WebMock adapter to work with (and require) newly released WebMock 1.6.0.
352
a2e9b46 @myronmarston 1.3.0 release.
authored
353 ## 1.3.0 (November 11, 2010)
e305b26 @myronmarston Update changelog.
authored
354
429619f @myronmarston Fix URLs in changelog.
authored
355 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.2.0...v1.3.0)
e305b26 @myronmarston Update changelog.
authored
356
357 * Moved documentation from README to [Wiki](http://github.com/myronmarston/vcr/wiki).
358 * Refactoring and code cleanup.
922f145 @myronmarston Fix InternetConnection.available? so that it memoizes correctly when …
authored
359 * Fix InternetConnection.available? so that it memoizes correctly when a connection is not available.
4b34280 @myronmarston Allow newly released WebMock 1.5.0 to be used without a warning.
authored
360 * Fix WebMock version checking to allow newly released 1.5.0 to be used without a warning.
1991c61 @myronmarston Update README and CHANGELOG with Typhoeus info.
authored
361 * Add support for [Typhoeus](https://github.com/pauldix/typhoeus). Thanks to
362 [David Balatero](https://github.com/dbalatero) for making the necessary changes in Typhoeus
363 to support VCR.
26fae52 @myronmarston Fix VCR::Config.http_stubbing_libraries so that it always returns an …
authored
364 * Remove FakeWeb/WebMock inference logic. You _must_ configure the http stubbing library
365 explicitly now.
e305b26 @myronmarston Update changelog.
authored
366
d25e34c @myronmarston 1.2.0 release.
authored
367 ## 1.2.0 (October 13, 2010)
4839e58 @myronmarston Improved the :all record mode so that it keeps previously recorded in…
authored
368
d25e34c @myronmarston 1.2.0 release.
authored
369 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.2...v1.2.0)
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
370
4839e58 @myronmarston Improved the :all record mode so that it keeps previously recorded in…
authored
371 * Improved the `:all` record mode so that it keeps previously recorded interactions that do not match the
372 new recorded interactions. Previously, all of the previously recorded interactions were deleted.
d0e7dbd @myronmarston Add :re_record_interval cassette option.
authored
373 * Added `:re_record_interval` cassette option. This option causes a cassette to be re-recorded when the
374 existing file is older than the specified interval.
f4cce4c @myronmarston Improved RSpec support.
authored
375 * Improved RSpec support. Added #use_vcr_cassette RSpec macro method that sets up a cassette for an RSpec
376 example group.
709f593 @myronmarston Update changelog.
authored
377 * Fixed VCR/Net::HTTP/WebMock integration so that VCR no longer loads its Net::HTTP monkey patch when
378 WebMock is used, and relies upon WebMock's after_request callback to record Net::HTTP instead. This
379 fixes [a bug](http://github.com/myronmarston/vcr/issues/14) when using WebMock and Open URI.
6c86a96 @myronmarston Consider 0.0.0.0 to be a localhost alias.
authored
380 * Consider 0.0.0.0 to be a localhost alias (previously only "localhost" and 127.0.0.1 were considered).
ea777b9 @myronmarston Add test coverage for Curb support.
authored
381 * Added spec and feature coverage for Curb integration. Works out of the box with no changes required
8f369c1 @myronmarston Fixed typo.
authored
382 to VCR due to [Pete Higgins'](http://github.com/phiggins) great work to add Curb support to WebMock.
646eab5 @myronmarston Got specs and features to pass on rubinius 1.1.
authored
383 * Got specs and features to pass on rubinius.
91d67ad @myronmarston Upgrade to WebMock 1.4.0.
authored
384 * Changed WebMock version requirement to 1.4.0.
4839e58 @myronmarston Improved the :all record mode so that it keeps previously recorded in…
authored
385
b827a7b @myronmarston 1.1.2 release.
authored
386 ## 1.1.2 (September 9, 2010)
387
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
388 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.1...v1.1.2)
389
b827a7b @myronmarston 1.1.2 release.
authored
390 * Fixed a minor bug with the WebMock integration: WebMock extends each `Net::HTTPResponse` with an extension
391 module after reading the body, and VCR was doing the same thing, leading to some slight deviance from
392 standard Net::HTTP behavior. The fix prevents VCR from adding the same extension to a `Net::HTTPResponse`
393 that has already been extende by WebMock.
394 * Fixed a minor bug in the `VCR::Net::HTTPResponse` module so that it correctly handles nil bodies (such as
395 for a HEAD request).
396 * Refactored `VCR::Net::HTTPResponse` module so it is implemented in a much simpler manner.
397 * Updated specs and features so they pass against the latest WebMock release (1.3.5).
398 * Minor documentation updates.
399
69c0fe7 @myronmarston 1.1.1 release.
authored
400 ## 1.1.1 (August 26, 2010)
4d68e93 @myronmarston Optimized #stub_requests a bit.
authored
401
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
402 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.0...v1.1.1)
403
ed4a662 @myronmarston The latest FakeWeb passes this spec (was pending before).
authored
404 * Updated to use and require FakeWeb 1.3.0. It includes a fix for a bug related to multiple values for the
405 same response header.
7f58282 @myronmarston Use FakeWeb::Utility.request_uri_as_string rather than our own logic …
authored
406 * Use new `FakeWeb::Utility.request_uri_as_string` method rather than our own logic to construct a request uri.
5fc0ba4 @myronmarston Use a localhost regex with FakeWeb.allow_net_connect for the ignore_l…
authored
407 * Use new `FakeWeb.allow_net_connect = /url regex/` feature to power the `ignore_localhost` VCR option rather
408 then toggling `FakeWeb.allow_net_connect` in our Net::HTTP extension.
4d68e93 @myronmarston Optimized #stub_requests a bit.
authored
409 * Optimized `VCR.http_stubbing_adapter.stub_requests` a bit.
5f5da7a @myronmarston Change http stubbing adapters to be modules rather than classes.
authored
410 * Changed the http stubbing adapters to be modules rather than classes. They should never be instantiated and
411 don't really hold state, so a module is more appropriate.
0a979b4 @myronmarston Refactored and updated #check_version! on FakeWeb/WebMock adapters so…
authored
412 * Warn when FakeWeb or WebMock are a minor or major version number ahead of the required version, as the new
413 version isn't known to work with VCR.
4d68e93 @myronmarston Optimized #stub_requests a bit.
authored
414
4a465ca @myronmarston 1.1.0 release.
authored
415 ## 1.1.0 (August 22, 2010)
0289298 @myronmarston Removed task runner as it's no longer needed.
authored
416
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
417 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.3...v1.1.0)
418
3def0be @myronmarston Documentation updates for new :match_requests_on option.
authored
419 * Added `:match_requests_on` cassette option, which determines how VCR matches requests.
0289298 @myronmarston Removed task runner as it's no longer needed.
authored
420 * Removed VCR::TaskRunner and the corresponding rake task definition. The rake task migrated cassettes from the
421 0.3.1 format to the 0.4+ format. If you are still on 0.3.1 or earlier, I recommend you upgrade to 0.4.1 first,
422 migrate your cassettes and deal with migration warnings, then upgrade to the current release.
606e328 @myronmarston Raise an error if VCR::Cassette.new is given invalid options.
authored
423 * Added some code to VCR::Cassette.new to check the options passed to the cassette and raise an error if any
424 invalid options are passed.
f2bb986 @myronmarston Optimized ERB rendering a bit.
authored
425 * Optimized ERB rendering a bit. Rather than creating a new struct subclass for each time we render an ERB
426 cassette with locals, we keep a cache of reusable struct subclasses based on the desired attributes.
427 [Benchmarking](http://gist.github.com/512948) reveals this is about 28% faster.
a40025f @myronmarston Updated em-http-request to 0.2.10.
authored
428 * Upgraded tests to use em-http-request 0.2.10 rather than 0.2.7.
0289298 @myronmarston Removed task runner as it's no longer needed.
authored
429
ce13279 @myronmarston 1.0.3 release.
authored
430 ## 1.0.3 (August 5, 2010)
431
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
432 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.2...v1.0.3)
433
ce13279 @myronmarston 1.0.3 release.
authored
434 * Upgraded VCR specs to RSpec 2.
435 * Updated `VCR::CucumberTags` so that it uses an `around` hook rather than a `before` hook and an `after` hook.
436 Around hooks were added to Cucumber in the 0.7.3 release, so you'll have to be on that version or higher to use
437 the `VCR::CucumberTags` feature.
438 * Updated the WebMock version requirement to 1.3.3 or greater. 1.3.2 and earlier versions did not properly handle
439 multiple value for the same response header.
440 * Miscellaneous documentation updates.
441
e13d215 @myronmarston 1.0.2 release.
authored
442 ## 1.0.2 (July 6, 2010)
443
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
444 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.1...v1.0.2)
445
e13d215 @myronmarston 1.0.2 release.
authored
446 * Fixed VCR to work with [rest-client](http://github.com/archiloque/rest-client). Rest-client extends the Net::HTTP
447 response body string with a module containing additional data, which got serialized to the cassette file YAML
448 and occasionally caused problems when the YAML was deserialized. Bug reported by
449 [Thibaud Guillaume-Gentil](http://github.com/thibaudgg).
450 * Setup bundler to manage development dependencies.
451
ade8181 @myronmarston 1.0.1 release.
authored
452 ## 1.0.1 (July 1, 2010)
453
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
454 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.0...v1.0.1)
455
ade8181 @myronmarston 1.0.1 release.
authored
456 * Fixed specs and features so they pass on MRI 1.9.2-preview3 and JRuby 1.5.1.
457 * Normalized response and request headers so that they are stored the same (i.e. lower case keys, arrays of values)
458 in the cassette yaml files, regardless of which HTTP library is used. This is the same way Net::HTTP normalizes
459 HTTP headers.
460 * Fixed `VCR.use_cassette` so that it doesn't eject a cassette if an exception occurs while inserting one.
461 * Fixed FakeWeb adapter so that it works for requests that use basic auth. Patch submitted by
462 [Eric Allam](http://github.com/rubymaverick).
463
a5ac5bf @myronmarston 1.0.0 release.
authored
464 ## 1.0.0 (June 22, 2010)
465
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
466 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.4.1...v1.0.0)
467
a5ac5bf @myronmarston 1.0.0 release.
authored
468 * New Features
469 * Added support for [HTTPClient](http://github.com/nahi/httpclient), [Patron](http://github.com/toland/patron) and
470 [em-http-request](http://github.com/igrigorik/em-http-request) when WebMock is used. Any future http libraries
471 WebMock supports should (theoretically, at least) work without any VCR code changes. Thanks to
472 [Bartosz Blimke](http://github.com/bblimke) for adding the necessary code to WebMock to make this happen!
473 * Added support for dynamic responses using ERB. A cassette will be evaluated as ERB before the YAML
474 is deserialized if you pass it an `:erb => true` option. You can pass variables using
475 `:erb => { :var1 => 'some value', :var2 => 'another value' }`.
476 * Added `ignore_localhost` configuration setting, which defaults to false. Setting it true does the following:
477 * Localhost requests will proceed as normal. The "Real HTTP connections are disabled" error will not occur.
478 * Localhost requests will not be recorded.
479 * Previously recorded localhost requests will not be replayed.
480 * Exposed the version number:
481 * `VCR.version` => string (in the format "major.minor.patch")
482 * `VCR.version.parts` => array of integers
483 * `VCR.version.major` => integer
484 * `VCR.version.minor` => integer
485 * `VCR.version.patch` => integer
486 * Added test coverage and documentation of using a regex for non-deterministic URLs (i.e. URLs that include
487 a timestamp as a query parameter). It turns out this feature worked before, and I just didn't realize it :).
488
489 * Breaking Changes
490 * The `:allow_real_http => lambda { |uri| ... }` cassette option has been removed. There was no way to get
491 this to work with the newly supported http libraries without extensive monkeypatching, and it was mostly
492 useful for localhost requests, which is more easily handled by the new `ignore_localhost` config setting.
493 * Removed methods and options that had been previously deprecated. If you're upgrading from an old version,
494 I recommend upgrading to 0.4.1 first, deal with all the deprecation warnings, then upgrade to 1.0.0.
495
496 * Misc Changes:
497 * Removed dependency on [jeweler](http://github.com/technicalpickles/jeweler). Manage the gemspec by hand instead.
498 * Removed some extensions that are no longer necessary.
499
dfceeb1 @myronmarston 0.4.1 release.
authored
500 ## 0.4.1 May 11, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
501
502 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.4.0...v0.4.1)
503
dfceeb1 @myronmarston 0.4.1 release.
authored
504 * Fixed a bug: when `Net::HTTPResponse#read_body` was called after VCR had read the body to record a new request,
505 it raised an error (`IOError: Net::HTTPResponse#read_body called twice`). My fix extends Net::HTTPResponse
506 so that it no longer raises this error.
507
7663252 @myronmarston 0.4.0 release.
authored
508 ## 0.4.0 April 28, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
509
510 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.3.1...v0.4.0)
511
af61cfc @myronmarston Updated CHANGELOG with the info about what is coming in the next rele…
authored
512 * Added support for webmock. All the fakeweb-specific code is now in an adapter (as is the webmock code).
513
514 * Changed the format of the VCR cassettes. The old format was tied directly to Net::HTTP, but webmock supports
515 other HTTP libraries and I plan to allow VCR to use them in the future. Note that this is a breaking change--your
516 old VCR cassettes from prior releases will not work with VCR 0.4.0. However, VCR provides a rake task to assist
517 you in migrating your cassettes to the new format. Simply add `load 'vcr/tasks/vcr.rake'` to your project's Rakefile,
518 and run:
519
520 $ rake vcr:migrate_cassettes DIR=path/to/cassete/library/directory
521
522 * The new cassette format records more information about the request (i.e. the request headers and body), so that it
523 can potentially be used with webmock in the future.
524
525 * Made most of `VCR::Cassette`'s methods private. I had forgotten to make the methods private before, and most of them
526 don't need to be exposed.
527
528 * Automatically disallow http connections using the appropriate setting of the http stubbing library (fakeweb or webmock).
529 This relieves users from the need to set the option themselves, so they hopefully aren't using either fakeweb or webmock
530 directly, making it much easier to switch between these.
531
532 * Change documentation from rdoc to markdown format.
533
534 * Lots of other refactoring.
535
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
536 ## 0.3.1 April 10, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
537
538 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.3.0...v0.3.1)
539
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
540 * Fixed a bug: when `Net::HTTP#request` was called with a block that had a return statement, the response was not being recorded.
541
542 ## 0.3.0 March 24, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
543
544 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.2.0...v0.3.0)
545
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
546 * Renamed a bunch of methods, replacing them with method names that more clearly fit the VCR/cassette metaphor:
547 * `VCR.create_cassette!` => `VCR.insert_cassette`
548 * `VCR.destroy_cassette!` => `VCR.eject_cassette`
549 * `VCR.with_cassette` => `VCR.use_cassette`
550 * `VCR::Cassette#destroy!` => `VCR::Cassette#eject`
551 * `VCR::Cassette#cache_file` => `VCR::Cassette#file`
552 * `VCR::Config.cache_dir` => `VCR::Config.cassette_library_dir`
553 * `:unregistered` record mode => `:new_episodes` record mode
554
555 * All the old methods still work, but you'll get deprecation warnings.
556
557 ## 0.2.0 March 9, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
558
559 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.2...v0.2.0)
560
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
561 * Added `:allow_real_http` cassette option, which allows VCR to work with capybara and a javascript driver.
562 Bug reported by [Ben Hutton](http://github.com/benhutton).
563
564 * Deprecated the `default_cassette_record_mode` option. Use `default_cassette_options[:record_mode]` instead.
565
566 ## 0.1.2 March 4, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
567
568 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.1...v0.1.2)
569
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
570 * Added explanatory note about VCR to `FakeWeb::NetConnectNotAllowedError#message`.
571
572 * Got things to work for when a cassette records multiple requests made to the same URL with the same HTTP verb,
573 but different responses. We have to register an array of responses with fakeweb.
574
575 * Fixed our `Net::HTTP` monkey patch so that it only stores the recorded response once per request.
576 Internally, `Net::HTTP#request` recursively calls itself (passing slightly different arguments) in certain circumstances.
577
578 ## 0.1.1 February 25, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
579
580 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.0...v0.1.1)
581
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
582 * Handle asynchronous HTTP requests (such as for mechanize). Bug reported by [Thibaud Guillaume-Gentil](http://github.com/thibaudgg).
583
584 ## 0.1.0 February 25, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
585
586 [Full Changelog](http://github.com/myronmarston/vcr/compare/d2577f79247d7db60bf160881b1b64e9fa10e4fd...v0.1.0)
587
ade8181 @myronmarston 1.0.1 release.
authored
588 * Initial release. Basic recording and replaying of responses works.
Something went wrong with that request. Please try again.