Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: myronmarston/vcr
head fork: myronmarston/vcr
Commits on Jan 16, 2011
@myronmarston Improve full build output. 5cdbba3
Commits on Jan 21, 2011
@myronmarston Ensure headers get serialized as raw strings.
Closes #39.
@myronmarston 1.5.1 release. be6672d
Commits on Jan 22, 2011
@myronmarston Fix spec doc strings. fd41836
@myronmarston Clean up VCR.version. c9d9bca
@myronmarston Refactoring: extract private method. 44acf01
Commits on Jan 31, 2011
@myronmarston Update benchmarks. 356eca4
@myronmarston Updated typhoeus to latest 0.2.1 release.
The latest includes a new ignore_hosts option.
@myronmarston Extract some logic into new method: VCR::Config.uri_should_be_ignored? ee52fa8
@myronmarston Remove #ignore_localhost? from the http stubbing adapters. 7b6c9f3
@myronmarston Add new VCR::Config.ignore_hosts option. bf907f7
@myronmarston Add deprecations.
The following are deprecated:

- VCR::Config.ignore_localhost?
- VCR::HttpStubbingAdapters::{FakeWeb,WebMock,Typhoeus,Faraday}.ignore_localhost?
- VCR::HttpStubbingAdapters::FakeWeb::LOCALHOST_REGEX
@myronmarston Refactoring: extract regex construction into module. bd4f25b
@myronmarston Add cuke for new ignore_hosts configuration option.
Closes #30.
@myronmarston Clean up set construction. e94e616
@myronmarston Add cuke demonstrating Net/HTTP usage over HTTPS. 3a5100d
Commits on Feb 03, 2011
@myronmarston Split structs.rb (and structs_spec.rb) into separate files for each c…
…lass and module.
Commits on Feb 04, 2011
@myronmarston Fix require (no more vcr/structs file). b5c66b2
@myronmarston 1.6.0 release. de8c689
Commits on Feb 08, 2011
@myronmarston Ignore Gemfile.lock. 5f3c8a3
@myronmarston Lock aruba version. f602a2a
@myronmarston Use latest version of ruby-debug on 1.9.2. 6b6d19c
@myronmarston Update RSpec. fccbf7e
@myronmarston Fix VCR::Request#method so that it delegates to Object#method when gi…
…ven arguments.
@myronmarston Use Psych if it is available.
Syck (the default YAML engine) modifies strings when they are
round-tripped through it: "1/n /n2" becomes "1/n/n2".  Psych doesn't.

This doesn't usually matter, but can occasionally cause problems when
using an HTTP client that raises errors when the content_length header
does not match the actual content length (as does Mechanize).

To use psych, you may need to reinstall ruby 1.9.2 with psych support.
On OSX with homebrew and rvm, this will do the trick:

brew install libyaml
rvm install ruby-1.9.2 --with-libyaml-dir=/usr/local

For more info, see the following:

@myronmarston Document known issue with syck. fbc1fac
Commits on Feb 09, 2011
@myronmarston Favor polymorphism over ternary operator. 3639d0b
@myronmarston Fix VCR::HttpStubbingAdapters::FakeWeb.stub_requests so that it handl…
…es empty headers.
@myronmarston Add new :update_content_length_header cassette option. 1e2e011
@myronmarston Update changelog. d66f924
Commits on Feb 10, 2011
@myronmarston Add new :once record mode.
Closes #44.
@myronmarston Re-organize description of record modes. f840dc3
@myronmarston Make the new `:once` record mode the default. 2f62c03
@myronmarston Update changelog. 8ca9b67
@myronmarston Update gem description. 78a8028
Commits on Feb 11, 2011
@myronmarston Use a more straightforward way to delegate to Object#method. 55fab3b
@myronmarston Move hooks.rb into util directory. 3b0e037
@myronmarston Move cucumber and rspec support into new test_frameworks directory. d9b2f33
@myronmarston Extract deprecations into separate files for each class. 426ac36
@myronmarston Use an explicit lambda in some specs so that we properly test variabl…
…e args.

Blocks can already accept a variable number of args, but lambdas raise an error.  We should use a lambda so we can test it properly.
@myronmarston Unify handling of a variable number of args for a block into a reusab…
…le module.
Commits on Feb 12, 2011
@myronmarston Move all shared example group definitions into a directory. a8d61d8
Commits on Feb 13, 2011
@myronmarston Words. ea6933b
@myronmarston Add note about release policy using semantic versioning. d84800a
Commits on Feb 17, 2011
@myronmarston Ensure the cassette_library_dir is isolated for all specs.
Trying to get builds to pass on exposed some ordering dependencies between specs because of this setting.
@myronmarston Use metadata instead of #disable_warnings macro method. 983c148
@myronmarston Use metadata rather than #without_webmock_callbacks macro method. f30f2dc
@myronmarston Use metadata rather than #without_monkey_patches macro method. c217a7d
Commits on Feb 18, 2011
@myronmarston Use a shared example group rather than a macro method. 17926de
Commits on Feb 19, 2011
@myronmarston Setup build for
- Lock patron to 0.4.9.  On, my build failed because the newest patron uses a version of libcurl to new for the debian installation it uses.
- Setup ci:build.
Commits on Feb 24, 2011
@myronmarston Fix shared example group so it works on rubinius.
I was getting "unexpected return (LocalJumpError)".
Commits on Feb 27, 2011
@myronmarston Add travis build icon. acb9c52
@myronmarston Add new filter_sensitive_data configuration option.
Closes #38.
@myronmarston Match on headers to demonstrate that the header gets set back to the …
…original value before playback.
@myronmarston Update changelog. 06cf3f6
@myronmarston Lock curb to 0.7.8 as the latest version (0.7.12) seems to be having …
…issues installing through bundler.
Commits on Feb 28, 2011
@myronmarston Add support for 1aa5b6d
@myronmarston Add require so that users who required 'vcr/rspec' before still get v…
…cr loaded.
@myronmarston Allow specs to run when the code is not checked out through git.
The presence of `git` commands in my gemspec prevents bundler from being usable for `gem test vcr`.  This fixes the issue.
Commits on Mar 01, 2011
@myronmarston Don't configure rspec to use debugger when running tests through `gem…
… test vcr`.
@myronmarston Update changelog. fd67425
@myronmarston Use separate Before/After hooks rather than a single Around hook.
Unfortunately, cucumber doesn't run background steps within the Around hook.

Closes #45.
@myronmarston Update Changelog. 8050f83
@myronmarston Extract deprecation code into the lib/vcr/deprecations directory. d045a93
@myronmarston Rename relish doc. 851b83b
@myronmarston Add readme, changelog and license to relish docs. 284494f
@myronmarston Adding getting started document. 6435062
@myronmarston Link to relish instead of wiki. aab8b57
Commits on Mar 02, 2011
@myronmarston Fix failing cuke on JRuby. ef249d1
@myronmarston We shouldn't define Ping at the top level. c178cb0
@myronmarston Add list of supported ruby interpreters to README. 9329f89
@myronmarston Use proper constant. 508efd0
@myronmarston 1.7.0 release. 1467ebb
@myronmarston Fix readme links. bd013c9
@myronmarston Fixes for relish. 5bd3bff
@myronmarston Use "And" instead of second "Given". b19a93f
@myronmarston Fleshed out cassette format outline. fb6dbaa
Commits on Mar 05, 2011
@myronmarston Fix faraday middleware to handle nil response headers. 0131853
Commits on Mar 06, 2011
@myronmarston Fixed net/http adapter.
URI#request_uri should be used rather than URI#path, since #request_uri includes query params but #path does not.
@myronmarston Fix faraday adapter so that it properly normalizes query parameters. 0d4d9f5
@myronmarston Fix broken cukes.
We can't have different adapters return different values for #normalize_uri because it breaks when you stub with multiple libraries.
Commits on Mar 19, 2011
@myronmarston 1.7.1 release. 0022cf7