Skip to content

HTTPS clone URL

Subversion checkout URL

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