Skip to content
Newer
Older
100644 285 lines (208 sloc) 14.9 KB
709f593 @myronmarston Update changelog.
authored
1 # Changelog
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
2
c1c590e @myronmarston Update changelog.
authored
3 ## In git
4
5 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.3.3...master)
6
b58808d @myronmarston Add rack middleware feature.
authored
7 * Added support for making HTTP requests without a cassette (i.e. if you don't
c1c590e @myronmarston Update changelog.
authored
8 want to use VCR for all of your test suite). There are a few ways to
9 enable this:
10 * In your `VCR.config` block, set `allow_http_connections_when_no_cassette`
11 to true to allow HTTP requests without a cassette.
12 * You can temporarily turn off VCR using `VCR.turned_off { ... }`.
13 * You can toggle VCR off and on with `VCR.turn_off!` and `VCR.turn_on!`.
b58808d @myronmarston Add rack middleware feature.
authored
14 * Fixed bug with `ignore_localhost` config option. Previously, an error would
021cfea @myronmarston Fixed bug with ignore_localhost config option.
authored
15 be raised if it was set before the `stub_with` option.
b58808d @myronmarston Add rack middleware feature.
authored
16 * Added VCR::Middleware::Rack (see features/middleware/rack.feature for usage).
4f8e467 @myronmarston Add Faraday support.
authored
17 * Added support for Faraday (see features/middleware/faraday.feature for usage).
c1c590e @myronmarston Update changelog.
authored
18
ae45360 @myronmarston 1.3.3 release.
authored
19 ## 1.3.3 (November 21, 2010)
76137bf @myronmarston Hit a local sinatra app rather than example.com in specs.
authored
20
ae45360 @myronmarston 1.3.3 release.
authored
21 [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
22
23 * In specs, hit a local sinatra server rather than example.com. This makes
24 the specs faster and removes an external dependency. The specs can pass
25 without being online!
26fae52 @myronmarston Fix VCR::Config.http_stubbing_libraries so that it always returns an …
authored
26 * Raise an explicit error when the http stubbing library is not configured
27 (rather than letting the user get a confusing error later).
ae45360 @myronmarston 1.3.3 release.
authored
28 * Test against the latest WebMock release (1.6.1) (no changes required).
29 * 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
30
2efe05d @myronmarston 1.3.2 release.
authored
31 ## 1.3.2 (November 16, 2010)
0025871 @myronmarston Normalize structs so they are serialized the same regardless of which…
authored
32
2efe05d @myronmarston 1.3.2 release.
authored
33 [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
34
35 * Fix serialized structs so that they are normalized andthey will be the same
36 regardless of which HTTP library made the request.
37 * Status "OK " => "OK"
38 * Body '' => nil
39 * Headers {} => nil
40 * Remove extraneous headers added by the HTTP lib (i.e. Typhoeus user agent)
2efe05d @myronmarston 1.3.2 release.
authored
41 * Rewrite cucumber features in a more documentation-oriented style.
0025871 @myronmarston Normalize structs so they are serialized the same regardless of which…
authored
42
75fd8bd @myronmarston 1.3.1 release.
authored
43 ## 1.3.1 (November 11, 2010)
44
429619f @myronmarston Fix URLs in changelog.
authored
45 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.3.0...v1.3.1)
75fd8bd @myronmarston 1.3.1 release.
authored
46
47 * Update WebMock adapter to work with (and require) newly released WebMock 1.6.0.
48
a2e9b46 @myronmarston 1.3.0 release.
authored
49 ## 1.3.0 (November 11, 2010)
e305b26 @myronmarston Update changelog.
authored
50
429619f @myronmarston Fix URLs in changelog.
authored
51 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.2.0...v1.3.0)
e305b26 @myronmarston Update changelog.
authored
52
53 * Moved documentation from README to [Wiki](http://github.com/myronmarston/vcr/wiki).
54 * Refactoring and code cleanup.
922f145 @myronmarston Fix InternetConnection.available? so that it memoizes correctly when …
authored
55 * 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
56 * 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
57 * Add support for [Typhoeus](https://github.com/pauldix/typhoeus). Thanks to
58 [David Balatero](https://github.com/dbalatero) for making the necessary changes in Typhoeus
59 to support VCR.
26fae52 @myronmarston Fix VCR::Config.http_stubbing_libraries so that it always returns an …
authored
60 * Remove FakeWeb/WebMock inference logic. You _must_ configure the http stubbing library
61 explicitly now.
e305b26 @myronmarston Update changelog.
authored
62
d25e34c @myronmarston 1.2.0 release.
authored
63 ## 1.2.0 (October 13, 2010)
4839e58 @myronmarston Improved the :all record mode so that it keeps previously recorded in…
authored
64
d25e34c @myronmarston 1.2.0 release.
authored
65 [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
66
4839e58 @myronmarston Improved the :all record mode so that it keeps previously recorded in…
authored
67 * Improved the `:all` record mode so that it keeps previously recorded interactions that do not match the
68 new recorded interactions. Previously, all of the previously recorded interactions were deleted.
d0e7dbd @myronmarston Add :re_record_interval cassette option.
authored
69 * Added `:re_record_interval` cassette option. This option causes a cassette to be re-recorded when the
70 existing file is older than the specified interval.
f4cce4c @myronmarston Improved RSpec support.
authored
71 * Improved RSpec support. Added #use_vcr_cassette RSpec macro method that sets up a cassette for an RSpec
72 example group.
709f593 @myronmarston Update changelog.
authored
73 * Fixed VCR/Net::HTTP/WebMock integration so that VCR no longer loads its Net::HTTP monkey patch when
74 WebMock is used, and relies upon WebMock's after_request callback to record Net::HTTP instead. This
75 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
76 * 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
77 * Added spec and feature coverage for Curb integration. Works out of the box with no changes required
8f369c1 @myronmarston Fixed typo.
authored
78 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
79 * Got specs and features to pass on rubinius.
91d67ad @myronmarston Upgrade to WebMock 1.4.0.
authored
80 * Changed WebMock version requirement to 1.4.0.
4839e58 @myronmarston Improved the :all record mode so that it keeps previously recorded in…
authored
81
b827a7b @myronmarston 1.1.2 release.
authored
82 ## 1.1.2 (September 9, 2010)
83
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
84 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.1...v1.1.2)
85
b827a7b @myronmarston 1.1.2 release.
authored
86 * Fixed a minor bug with the WebMock integration: WebMock extends each `Net::HTTPResponse` with an extension
87 module after reading the body, and VCR was doing the same thing, leading to some slight deviance from
88 standard Net::HTTP behavior. The fix prevents VCR from adding the same extension to a `Net::HTTPResponse`
89 that has already been extende by WebMock.
90 * Fixed a minor bug in the `VCR::Net::HTTPResponse` module so that it correctly handles nil bodies (such as
91 for a HEAD request).
92 * Refactored `VCR::Net::HTTPResponse` module so it is implemented in a much simpler manner.
93 * Updated specs and features so they pass against the latest WebMock release (1.3.5).
94 * Minor documentation updates.
95
69c0fe7 @myronmarston 1.1.1 release.
authored
96 ## 1.1.1 (August 26, 2010)
4d68e93 @myronmarston Optimized #stub_requests a bit.
authored
97
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
98 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.1.0...v1.1.1)
99
ed4a662 @myronmarston The latest FakeWeb passes this spec (was pending before).
authored
100 * Updated to use and require FakeWeb 1.3.0. It includes a fix for a bug related to multiple values for the
101 same response header.
7f58282 @myronmarston Use FakeWeb::Utility.request_uri_as_string rather than our own logic …
authored
102 * 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
103 * Use new `FakeWeb.allow_net_connect = /url regex/` feature to power the `ignore_localhost` VCR option rather
104 then toggling `FakeWeb.allow_net_connect` in our Net::HTTP extension.
4d68e93 @myronmarston Optimized #stub_requests a bit.
authored
105 * Optimized `VCR.http_stubbing_adapter.stub_requests` a bit.
5f5da7a @myronmarston Change http stubbing adapters to be modules rather than classes.
authored
106 * Changed the http stubbing adapters to be modules rather than classes. They should never be instantiated and
107 don't really hold state, so a module is more appropriate.
0a979b4 @myronmarston Refactored and updated #check_version! on FakeWeb/WebMock adapters so…
authored
108 * Warn when FakeWeb or WebMock are a minor or major version number ahead of the required version, as the new
109 version isn't known to work with VCR.
4d68e93 @myronmarston Optimized #stub_requests a bit.
authored
110
4a465ca @myronmarston 1.1.0 release.
authored
111 ## 1.1.0 (August 22, 2010)
0289298 @myronmarston Removed task runner as it's no longer needed.
authored
112
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
113 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.3...v1.1.0)
114
3def0be @myronmarston Documentation updates for new :match_requests_on option.
authored
115 * Added `:match_requests_on` cassette option, which determines how VCR matches requests.
0289298 @myronmarston Removed task runner as it's no longer needed.
authored
116 * Removed VCR::TaskRunner and the corresponding rake task definition. The rake task migrated cassettes from the
117 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,
118 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
119 * Added some code to VCR::Cassette.new to check the options passed to the cassette and raise an error if any
120 invalid options are passed.
f2bb986 @myronmarston Optimized ERB rendering a bit.
authored
121 * Optimized ERB rendering a bit. Rather than creating a new struct subclass for each time we render an ERB
122 cassette with locals, we keep a cache of reusable struct subclasses based on the desired attributes.
123 [Benchmarking](http://gist.github.com/512948) reveals this is about 28% faster.
a40025f @myronmarston Updated em-http-request to 0.2.10.
authored
124 * 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
125
ce13279 @myronmarston 1.0.3 release.
authored
126 ## 1.0.3 (August 5, 2010)
127
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
128 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.2...v1.0.3)
129
ce13279 @myronmarston 1.0.3 release.
authored
130 * Upgraded VCR specs to RSpec 2.
131 * Updated `VCR::CucumberTags` so that it uses an `around` hook rather than a `before` hook and an `after` hook.
132 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
133 the `VCR::CucumberTags` feature.
134 * Updated the WebMock version requirement to 1.3.3 or greater. 1.3.2 and earlier versions did not properly handle
135 multiple value for the same response header.
136 * Miscellaneous documentation updates.
137
e13d215 @myronmarston 1.0.2 release.
authored
138 ## 1.0.2 (July 6, 2010)
139
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
140 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.1...v1.0.2)
141
e13d215 @myronmarston 1.0.2 release.
authored
142 * Fixed VCR to work with [rest-client](http://github.com/archiloque/rest-client). Rest-client extends the Net::HTTP
143 response body string with a module containing additional data, which got serialized to the cassette file YAML
144 and occasionally caused problems when the YAML was deserialized. Bug reported by
145 [Thibaud Guillaume-Gentil](http://github.com/thibaudgg).
146 * Setup bundler to manage development dependencies.
147
ade8181 @myronmarston 1.0.1 release.
authored
148 ## 1.0.1 (July 1, 2010)
149
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
150 [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.0.0...v1.0.1)
151
ade8181 @myronmarston 1.0.1 release.
authored
152 * Fixed specs and features so they pass on MRI 1.9.2-preview3 and JRuby 1.5.1.
153 * Normalized response and request headers so that they are stored the same (i.e. lower case keys, arrays of values)
154 in the cassette yaml files, regardless of which HTTP library is used. This is the same way Net::HTTP normalizes
155 HTTP headers.
156 * Fixed `VCR.use_cassette` so that it doesn't eject a cassette if an exception occurs while inserting one.
157 * Fixed FakeWeb adapter so that it works for requests that use basic auth. Patch submitted by
158 [Eric Allam](http://github.com/rubymaverick).
159
a5ac5bf @myronmarston 1.0.0 release.
authored
160 ## 1.0.0 (June 22, 2010)
161
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
162 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.4.1...v1.0.0)
163
a5ac5bf @myronmarston 1.0.0 release.
authored
164 * New Features
165 * Added support for [HTTPClient](http://github.com/nahi/httpclient), [Patron](http://github.com/toland/patron) and
166 [em-http-request](http://github.com/igrigorik/em-http-request) when WebMock is used. Any future http libraries
167 WebMock supports should (theoretically, at least) work without any VCR code changes. Thanks to
168 [Bartosz Blimke](http://github.com/bblimke) for adding the necessary code to WebMock to make this happen!
169 * Added support for dynamic responses using ERB. A cassette will be evaluated as ERB before the YAML
170 is deserialized if you pass it an `:erb => true` option. You can pass variables using
171 `:erb => { :var1 => 'some value', :var2 => 'another value' }`.
172 * Added `ignore_localhost` configuration setting, which defaults to false. Setting it true does the following:
173 * Localhost requests will proceed as normal. The "Real HTTP connections are disabled" error will not occur.
174 * Localhost requests will not be recorded.
175 * Previously recorded localhost requests will not be replayed.
176 * Exposed the version number:
177 * `VCR.version` => string (in the format "major.minor.patch")
178 * `VCR.version.parts` => array of integers
179 * `VCR.version.major` => integer
180 * `VCR.version.minor` => integer
181 * `VCR.version.patch` => integer
182 * Added test coverage and documentation of using a regex for non-deterministic URLs (i.e. URLs that include
183 a timestamp as a query parameter). It turns out this feature worked before, and I just didn't realize it :).
184
185 * Breaking Changes
186 * The `:allow_real_http => lambda { |uri| ... }` cassette option has been removed. There was no way to get
187 this to work with the newly supported http libraries without extensive monkeypatching, and it was mostly
188 useful for localhost requests, which is more easily handled by the new `ignore_localhost` config setting.
189 * Removed methods and options that had been previously deprecated. If you're upgrading from an old version,
190 I recommend upgrading to 0.4.1 first, deal with all the deprecation warnings, then upgrade to 1.0.0.
191
192 * Misc Changes:
193 * Removed dependency on [jeweler](http://github.com/technicalpickles/jeweler). Manage the gemspec by hand instead.
194 * Removed some extensions that are no longer necessary.
195
dfceeb1 @myronmarston 0.4.1 release.
authored
196 ## 0.4.1 May 11, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
197
198 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.4.0...v0.4.1)
199
dfceeb1 @myronmarston 0.4.1 release.
authored
200 * Fixed a bug: when `Net::HTTPResponse#read_body` was called after VCR had read the body to record a new request,
201 it raised an error (`IOError: Net::HTTPResponse#read_body called twice`). My fix extends Net::HTTPResponse
202 so that it no longer raises this error.
203
7663252 @myronmarston 0.4.0 release.
authored
204 ## 0.4.0 April 28, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
205
206 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.3.1...v0.4.0)
207
af61cfc @myronmarston Updated CHANGELOG with the info about what is coming in the next rele…
authored
208 * Added support for webmock. All the fakeweb-specific code is now in an adapter (as is the webmock code).
209
210 * Changed the format of the VCR cassettes. The old format was tied directly to Net::HTTP, but webmock supports
211 other HTTP libraries and I plan to allow VCR to use them in the future. Note that this is a breaking change--your
212 old VCR cassettes from prior releases will not work with VCR 0.4.0. However, VCR provides a rake task to assist
213 you in migrating your cassettes to the new format. Simply add `load 'vcr/tasks/vcr.rake'` to your project's Rakefile,
214 and run:
215
216 $ rake vcr:migrate_cassettes DIR=path/to/cassete/library/directory
217
218 * The new cassette format records more information about the request (i.e. the request headers and body), so that it
219 can potentially be used with webmock in the future.
220
221 * Made most of `VCR::Cassette`'s methods private. I had forgotten to make the methods private before, and most of them
222 don't need to be exposed.
223
224 * Automatically disallow http connections using the appropriate setting of the http stubbing library (fakeweb or webmock).
225 This relieves users from the need to set the option themselves, so they hopefully aren't using either fakeweb or webmock
226 directly, making it much easier to switch between these.
227
228 * Change documentation from rdoc to markdown format.
229
230 * Lots of other refactoring.
231
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
232 ## 0.3.1 April 10, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
233
234 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.3.0...v0.3.1)
235
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
236 * Fixed a bug: when `Net::HTTP#request` was called with a block that had a return statement, the response was not being recorded.
237
238 ## 0.3.0 March 24, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
239
240 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.2.0...v0.3.0)
241
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
242 * Renamed a bunch of methods, replacing them with method names that more clearly fit the VCR/cassette metaphor:
243 * `VCR.create_cassette!` => `VCR.insert_cassette`
244 * `VCR.destroy_cassette!` => `VCR.eject_cassette`
245 * `VCR.with_cassette` => `VCR.use_cassette`
246 * `VCR::Cassette#destroy!` => `VCR::Cassette#eject`
247 * `VCR::Cassette#cache_file` => `VCR::Cassette#file`
248 * `VCR::Config.cache_dir` => `VCR::Config.cassette_library_dir`
249 * `:unregistered` record mode => `:new_episodes` record mode
250
251 * All the old methods still work, but you'll get deprecation warnings.
252
253 ## 0.2.0 March 9, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
254
255 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.2...v0.2.0)
256
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
257 * Added `:allow_real_http` cassette option, which allows VCR to work with capybara and a javascript driver.
258 Bug reported by [Ben Hutton](http://github.com/benhutton).
259
260 * Deprecated the `default_cassette_record_mode` option. Use `default_cassette_options[:record_mode]` instead.
261
262 ## 0.1.2 March 4, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
263
264 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.1...v0.1.2)
265
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
266 * Added explanatory note about VCR to `FakeWeb::NetConnectNotAllowedError#message`.
267
268 * Got things to work for when a cassette records multiple requests made to the same URL with the same HTTP verb,
269 but different responses. We have to register an array of responses with fakeweb.
270
271 * Fixed our `Net::HTTP` monkey patch so that it only stores the recorded response once per request.
272 Internally, `Net::HTTP#request` recursively calls itself (passing slightly different arguments) in certain circumstances.
273
274 ## 0.1.1 February 25, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
275
276 [Full Changelog](http://github.com/myronmarston/vcr/compare/v0.1.0...v0.1.1)
277
3e442f3 @myronmarston Change History file to markdown format and renamed it to changelog.
authored
278 * Handle asynchronous HTTP requests (such as for mechanize). Bug reported by [Thibaud Guillaume-Gentil](http://github.com/thibaudgg).
279
280 ## 0.1.0 February 25, 2010
d7d9ac9 @myronmarston Add links to github comparison view for each release.
authored
281
282 [Full Changelog](http://github.com/myronmarston/vcr/compare/d2577f79247d7db60bf160881b1b64e9fa10e4fd...v0.1.0)
283
ade8181 @myronmarston 1.0.1 release.
authored
284 * Initial release. Basic recording and replaying of responses works.
Something went wrong with that request. Please try again.