Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 223 lines (161 sloc) 12.359 kb
709f593a »
2010-09-27 Update changelog.
1 # Changelog
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
2
4839e582 »
2010-09-14 Improved the :all record mode so that it keeps previously recorded in…
3 ## In git
4
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
5 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.2...master)
6
4839e582 »
2010-09-14 Improved the :all record mode so that it keeps previously recorded in…
7 * Improved the `:all` record mode so that it keeps previously recorded interactions that do not match the
8 new recorded interactions. Previously, all of the previously recorded interactions were deleted.
d0e7dbd2 »
2010-09-18 Add :re_record_interval cassette option.
9 * Added `:re_record_interval` cassette option. This option causes a cassette to be re-recorded when the
10 existing file is older than the specified interval.
f4cce4cd »
2010-09-19 Improved RSpec support.
11 * Improved RSpec support. Added #use_vcr_cassette RSpec macro method that sets up a cassette for an RSpec
12 example group.
709f593a »
2010-09-27 Update changelog.
13 * Fixed VCR/Net::HTTP/WebMock integration so that VCR no longer loads its Net::HTTP monkey patch when
14 WebMock is used, and relies upon WebMock's after_request callback to record Net::HTTP instead. This
15 fixes [a bug](http://github.com/myronmarston/vcr/issues/14) when using WebMock and Open URI.
6c86a96a »
2010-09-28 Consider 0.0.0.0 to be a localhost alias.
16 * Consider 0.0.0.0 to be a localhost alias (previously only "localhost" and 127.0.0.1 were considered).
ea777b93 »
2010-10-04 Add test coverage for Curb support.
17 * Added spec and feature coverage for Curb integration. Works out of the box with no changes required
18 to VCR due to [Pete Higgins](http://github.com/phiggins) great work to add Curb support to WebMock.
4839e582 »
2010-09-14 Improved the :all record mode so that it keeps previously recorded in…
19
b827a7bf »
2010-09-09 1.1.2 release.
20 ## 1.1.2 (September 9, 2010)
21
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
22 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.1...v1.1.2)
23
b827a7bf »
2010-09-09 1.1.2 release.
24 * Fixed a minor bug with the WebMock integration: WebMock extends each `Net::HTTPResponse` with an extension
25 module after reading the body, and VCR was doing the same thing, leading to some slight deviance from
26 standard Net::HTTP behavior. The fix prevents VCR from adding the same extension to a `Net::HTTPResponse`
27 that has already been extende by WebMock.
28 * Fixed a minor bug in the `VCR::Net::HTTPResponse` module so that it correctly handles nil bodies (such as
29 for a HEAD request).
30 * Refactored `VCR::Net::HTTPResponse` module so it is implemented in a much simpler manner.
31 * Updated specs and features so they pass against the latest WebMock release (1.3.5).
32 * Minor documentation updates.
33
69c0fe72 »
2010-08-26 1.1.1 release.
34 ## 1.1.1 (August 26, 2010)
4d68e93e »
2010-08-22 Optimized #stub_requests a bit.
35
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
36 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.0...v1.1.1)
37
ed4a6629 »
2010-08-22 The latest FakeWeb passes this spec (was pending before).
38 * Updated to use and require FakeWeb 1.3.0. It includes a fix for a bug related to multiple values for the
39 same response header.
7f582821 »
2010-08-22 Use FakeWeb::Utility.request_uri_as_string rather than our own logic …
40 * Use new `FakeWeb::Utility.request_uri_as_string` method rather than our own logic to construct a request uri.
5fc0ba4c »
2010-08-23 Use a localhost regex with FakeWeb.allow_net_connect for the ignore_l…
41 * Use new `FakeWeb.allow_net_connect = /url regex/` feature to power the `ignore_localhost` VCR option rather
42 then toggling `FakeWeb.allow_net_connect` in our Net::HTTP extension.
4d68e93e »
2010-08-22 Optimized #stub_requests a bit.
43 * Optimized `VCR.http_stubbing_adapter.stub_requests` a bit.
5f5da7a1 »
2010-08-26 Change http stubbing adapters to be modules rather than classes.
44 * Changed the http stubbing adapters to be modules rather than classes. They should never be instantiated and
45 don't really hold state, so a module is more appropriate.
0a979b4c »
2010-08-26 Refactored and updated #check_version! on FakeWeb/WebMock adapters so…
46 * Warn when FakeWeb or WebMock are a minor or major version number ahead of the required version, as the new
47 version isn't known to work with VCR.
4d68e93e »
2010-08-22 Optimized #stub_requests a bit.
48
4a465ca1 »
2010-08-22 1.1.0 release.
49 ## 1.1.0 (August 22, 2010)
0289298c »
2010-08-07 Removed task runner as it's no longer needed.
50
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
51 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.3...v1.1.0)
52
3def0bec »
2010-08-16 Documentation updates for new :match_requests_on option.
53 * Added `:match_requests_on` cassette option, which determines how VCR matches requests.
0289298c »
2010-08-07 Removed task runner as it's no longer needed.
54 * Removed VCR::TaskRunner and the corresponding rake task definition. The rake task migrated cassettes from the
55 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,
56 migrate your cassettes and deal with migration warnings, then upgrade to the current release.
606e3281 »
2010-08-07 Raise an error if VCR::Cassette.new is given invalid options.
57 * Added some code to VCR::Cassette.new to check the options passed to the cassette and raise an error if any
58 invalid options are passed.
f2bb9861 »
2010-08-07 Optimized ERB rendering a bit.
59 * Optimized ERB rendering a bit. Rather than creating a new struct subclass for each time we render an ERB
60 cassette with locals, we keep a cache of reusable struct subclasses based on the desired attributes.
61 [Benchmarking](http://gist.github.com/512948) reveals this is about 28% faster.
a40025f0 »
2010-08-07 Updated em-http-request to 0.2.10.
62 * Upgraded tests to use em-http-request 0.2.10 rather than 0.2.7.
0289298c »
2010-08-07 Removed task runner as it's no longer needed.
63
ce132794 »
2010-08-05 1.0.3 release.
64 ## 1.0.3 (August 5, 2010)
65
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
66 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.2...v1.0.3)
67
ce132794 »
2010-08-05 1.0.3 release.
68 * Upgraded VCR specs to RSpec 2.
69 * Updated `VCR::CucumberTags` so that it uses an `around` hook rather than a `before` hook and an `after` hook.
70 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
71 the `VCR::CucumberTags` feature.
72 * Updated the WebMock version requirement to 1.3.3 or greater. 1.3.2 and earlier versions did not properly handle
73 multiple value for the same response header.
74 * Miscellaneous documentation updates.
75
e13d215e »
2010-07-06 1.0.2 release.
76 ## 1.0.2 (July 6, 2010)
77
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
78 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.1...v1.0.2)
79
e13d215e »
2010-07-06 1.0.2 release.
80 * Fixed VCR to work with [rest-client](http://github.com/archiloque/rest-client). Rest-client extends the Net::HTTP
81 response body string with a module containing additional data, which got serialized to the cassette file YAML
82 and occasionally caused problems when the YAML was deserialized. Bug reported by
83 [Thibaud Guillaume-Gentil](http://github.com/thibaudgg).
84 * Setup bundler to manage development dependencies.
85
ade81812 »
2010-07-01 1.0.1 release.
86 ## 1.0.1 (July 1, 2010)
87
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
88 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.0...v1.0.1)
89
ade81812 »
2010-07-01 1.0.1 release.
90 * Fixed specs and features so they pass on MRI 1.9.2-preview3 and JRuby 1.5.1.
91 * Normalized response and request headers so that they are stored the same (i.e. lower case keys, arrays of values)
92 in the cassette yaml files, regardless of which HTTP library is used. This is the same way Net::HTTP normalizes
93 HTTP headers.
94 * Fixed `VCR.use_cassette` so that it doesn't eject a cassette if an exception occurs while inserting one.
95 * Fixed FakeWeb adapter so that it works for requests that use basic auth. Patch submitted by
96 [Eric Allam](http://github.com/rubymaverick).
97
a5ac5bf2 »
2010-06-19 1.0.0 release.
98 ## 1.0.0 (June 22, 2010)
99
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
100 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.4.1...v1.0.0)
101
a5ac5bf2 »
2010-06-19 1.0.0 release.
102 * New Features
103 * Added support for [HTTPClient](http://github.com/nahi/httpclient), [Patron](http://github.com/toland/patron) and
104 [em-http-request](http://github.com/igrigorik/em-http-request) when WebMock is used. Any future http libraries
105 WebMock supports should (theoretically, at least) work without any VCR code changes. Thanks to
106 [Bartosz Blimke](http://github.com/bblimke) for adding the necessary code to WebMock to make this happen!
107 * Added support for dynamic responses using ERB. A cassette will be evaluated as ERB before the YAML
108 is deserialized if you pass it an `:erb => true` option. You can pass variables using
109 `:erb => { :var1 => 'some value', :var2 => 'another value' }`.
110 * Added `ignore_localhost` configuration setting, which defaults to false. Setting it true does the following:
111 * Localhost requests will proceed as normal. The "Real HTTP connections are disabled" error will not occur.
112 * Localhost requests will not be recorded.
113 * Previously recorded localhost requests will not be replayed.
114 * Exposed the version number:
115 * `VCR.version` => string (in the format "major.minor.patch")
116 * `VCR.version.parts` => array of integers
117 * `VCR.version.major` => integer
118 * `VCR.version.minor` => integer
119 * `VCR.version.patch` => integer
120 * Added test coverage and documentation of using a regex for non-deterministic URLs (i.e. URLs that include
121 a timestamp as a query parameter). It turns out this feature worked before, and I just didn't realize it :).
122
123 * Breaking Changes
124 * The `:allow_real_http => lambda { |uri| ... }` cassette option has been removed. There was no way to get
125 this to work with the newly supported http libraries without extensive monkeypatching, and it was mostly
126 useful for localhost requests, which is more easily handled by the new `ignore_localhost` config setting.
127 * Removed methods and options that had been previously deprecated. If you're upgrading from an old version,
128 I recommend upgrading to 0.4.1 first, deal with all the deprecation warnings, then upgrade to 1.0.0.
129
130 * Misc Changes:
131 * Removed dependency on [jeweler](http://github.com/technicalpickles/jeweler). Manage the gemspec by hand instead.
132 * Removed some extensions that are no longer necessary.
133
dfceeb1c »
2010-05-11 0.4.1 release.
134 ## 0.4.1 May 11, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
135
136 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.4.0...v0.4.1)
137
dfceeb1c »
2010-05-11 0.4.1 release.
138 * Fixed a bug: when `Net::HTTPResponse#read_body` was called after VCR had read the body to record a new request,
139 it raised an error (`IOError: Net::HTTPResponse#read_body called twice`). My fix extends Net::HTTPResponse
140 so that it no longer raises this error.
141
76632529 »
2010-04-28 0.4.0 release.
142 ## 0.4.0 April 28, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
143
144 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.3.1...v0.4.0)
145
af61cfc2 »
2010-04-24 Updated CHANGELOG with the info about what is coming in the next rele…
146 * Added support for webmock. All the fakeweb-specific code is now in an adapter (as is the webmock code).
147
148 * Changed the format of the VCR cassettes. The old format was tied directly to Net::HTTP, but webmock supports
149 other HTTP libraries and I plan to allow VCR to use them in the future. Note that this is a breaking change--your
150 old VCR cassettes from prior releases will not work with VCR 0.4.0. However, VCR provides a rake task to assist
151 you in migrating your cassettes to the new format. Simply add `load 'vcr/tasks/vcr.rake'` to your project's Rakefile,
152 and run:
153
154 $ rake vcr:migrate_cassettes DIR=path/to/cassete/library/directory
155
156 * The new cassette format records more information about the request (i.e. the request headers and body), so that it
157 can potentially be used with webmock in the future.
158
159 * Made most of `VCR::Cassette`'s methods private. I had forgotten to make the methods private before, and most of them
160 don't need to be exposed.
161
162 * Automatically disallow http connections using the appropriate setting of the http stubbing library (fakeweb or webmock).
163 This relieves users from the need to set the option themselves, so they hopefully aren't using either fakeweb or webmock
164 directly, making it much easier to switch between these.
165
166 * Change documentation from rdoc to markdown format.
167
168 * Lots of other refactoring.
169
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
170 ## 0.3.1 April 10, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
171
172 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.3.0...v0.3.1)
173
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
174 * Fixed a bug: when `Net::HTTP#request` was called with a block that had a return statement, the response was not being recorded.
175
176 ## 0.3.0 March 24, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
177
178 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.2.0...v0.3.0)
179
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
180 * Renamed a bunch of methods, replacing them with method names that more clearly fit the VCR/cassette metaphor:
181 * `VCR.create_cassette!` => `VCR.insert_cassette`
182 * `VCR.destroy_cassette!` => `VCR.eject_cassette`
183 * `VCR.with_cassette` => `VCR.use_cassette`
184 * `VCR::Cassette#destroy!` => `VCR::Cassette#eject`
185 * `VCR::Cassette#cache_file` => `VCR::Cassette#file`
186 * `VCR::Config.cache_dir` => `VCR::Config.cassette_library_dir`
187 * `:unregistered` record mode => `:new_episodes` record mode
188
189 * All the old methods still work, but you'll get deprecation warnings.
190
191 ## 0.2.0 March 9, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
192
193 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.2...v0.2.0)
194
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
195 * Added `:allow_real_http` cassette option, which allows VCR to work with capybara and a javascript driver.
196 Bug reported by [Ben Hutton](http://github.com/benhutton).
197
198 * Deprecated the `default_cassette_record_mode` option. Use `default_cassette_options[:record_mode]` instead.
199
200 ## 0.1.2 March 4, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
201
202 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.1...v0.1.2)
203
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
204 * Added explanatory note about VCR to `FakeWeb::NetConnectNotAllowedError#message`.
205
206 * Got things to work for when a cassette records multiple requests made to the same URL with the same HTTP verb,
207 but different responses. We have to register an array of responses with fakeweb.
208
209 * Fixed our `Net::HTTP` monkey patch so that it only stores the recorded response once per request.
210 Internally, `Net::HTTP#request` recursively calls itself (passing slightly different arguments) in certain circumstances.
211
212 ## 0.1.1 February 25, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
213
214 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.0...v0.1.1)
215
3e442f3c »
2010-04-20 Change History file to markdown format and renamed it to changelog.
216 * Handle asynchronous HTTP requests (such as for mechanize). Bug reported by [Thibaud Guillaume-Gentil](http://github.com/thibaudgg).
217
218 ## 0.1.0 February 25, 2010
d7d9ac94 »
2010-10-10 Add links to github comparison view for each release.
219
220 [Full Changelog](http://github.com/myronmarston/vcr/compare/d2577f79247d7db60bf160881b1b64e9fa10e4fd...v0.1.0)
221
ade81812 »
2010-07-01 1.0.1 release.
222 * Initial release. Basic recording and replaying of responses works.
Something went wrong with that request. Please try again.