Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: myronmarston/vcr
...
head fork: myronmarston/vcr
Commits on Mar 09, 2010
Myron Marston Changed the configuration option to have a default_cassette_options h…
…ash. #default_cassette_record_mode is deprecated.
a35de86
Myron Marston Added a global before/after that sets default settings for VCR and fa…
…keweb, so our specs don't have to keep setting things back to the defaults in their own before and after blocks.
6a98933
Myron Marston Added #allow_real_http cassette option, that allows real http request…
…s for URLs that return true for the given lambda.
2ed9c3c
Myron Marston Updated readme. eb0ac7e
Myron Marston Updated the history. aa14820
Myron Marston Version bump to 0.2.0 59ca1b1
Myron Marston Updated gemspec. 5fd41fd
Commits on Mar 10, 2010
Myron Marston Refactored some of the step definitions. 6b7166a
Myron Marston Added asynchronous request replay scenario. This functionality works …
…but I didn't a scenario demonstrating it before.
d7eb41e
Commits on Mar 13, 2010
Myron Marston Corrected the wording on a couple of specs. 6b148a0
Myron Marston Fixed a typo and the copyright date. f4eb12f
Myron Marston Updated Readme with links to the CI servers. 4714a00
Commits on Mar 24, 2010
Myron Marston Updated some of the method names/option keys to fit the VCR metaphor …
…better. The first pass of the code was based on "sandboxes" rather than "cassettes" and the terminology reflected that.

Changes:

* VCR.create_cassette! => VCR.insert_cassette
* VCR.destroy_cassette! => VCR.eject_cassette
* VCR.with_cassette => VCR.use_cassette
* VCR::Cassette#destroy! => VCR::Cassette#eject
* VCR::Cassette#cache_file => VCR::Cassette#file
* VCR::Config.cache_dir => VCR::Config.cassette_library_dir
* :unregistered record mode => :new_episodes record mode
5f4089f
Myron Marston Moved the VCR::Config.default_cassette_record_mode deprecation into t…
…he deprecation file.
3545053
Myron Marston Updated readme. 7bdd7ab
Commits on Mar 25, 2010
Myron Marston Fixed deprecation warning message to use the correct method name. ea72321
Myron Marston 0.3.0 release. d4767bf
Commits on Apr 11, 2010
Myron Marston Updated our Net::HTTP extension so that the response is yielded after…
… the response is stored, in case the block has a return statement. Closes GH-1.
fe4fa1c
Myron Marston 0.3.1 release. 323d72d
Myron Marston Added request body and headers to recorded response. These will come …
…in handy for getting VCR to work with webmock.
7003176
Myron Marston Extracted the interactions with FakeWeb into an adapter so we can imp…
…lement the same adapter interface for other http stubbing libraries like WebMock.
024fab9
Myron Marston Pulled the fakeweb logic that constructs the request_uri out of the n…
…et http extension and put it in the fakeweb extension.
91e944d
Myron Marston Use the fakeweb http_stubbing_adapter rather than using fakeweb direc…
…tly.
ddbfa8c
Myron Marston Updated features rake task to run the features against multiple http_…
…stubbing_adapters.
973481f
Myron Marston Instead of unstubbing the previously stubbed requests, use a checkpoi…
…nt system, so that the http_stubbing registry is returned to exactly the same state.
674bfde
Myron Marston Removed unneeded fakeweb extensions. 8fe911f
Commits on Apr 15, 2010
Myron Marston Changed the format of the cassettes. Use a VCR structured object rath…
…er than a Net::HTTP response as that is tied directly to net/http and I hope to get this to work with other http libraries eventually.
9b230ba
Myron Marston Added rake task to migrate old VCR cassettes to the new format, to ma…
…ke it easy for VCR users to upgrade.
b582340
Myron Marston Migrated all of the vcr cassette fixtures using the rake task. 59acae8
Myron Marston Added back request bodies since I had lost them in the migration. 11bbf3b
Myron Marston Updated the code to work with the new structs and terminology. a835bb5
Myron Marston Implemented the WebMock http stubbing adapter. 208310e
Commits on Apr 16, 2010
Myron Marston Updated the http interaction structs:
- Renamed RequestSignature to Request since the object represents the actual request.
- Changed the response headers to use an array for the values, since a response can have multiple values for the same header.
39fb46d
Myron Marston Updated our cassette fixtures to the latest format. 9a01697
Commits on Apr 17, 2010
Myron Marston Use VCR.http_stubbing_adapter rather than VCR::Config.http_stubbing_a…
…dapter.
62eb574
Myron Marston Allow the webmock adapter to be used. 011586c
Myron Marston Update the default rake task to that it runs the features with the we…
…bmock adapter in addition to the fakeweb one.
bb84b1a
Myron Marston Temporarily disable a spec that won't pass until some changes are mad…
…e to webmock.
d5f3a69
Myron Marston Load our net/http extension so it gets used when webmock is used. Whe…
…n fakeweb is used, our net/http extension has to be loaded after it, so we load it after webmock as well.
8cd5049
Myron Marston Simplified our net http extension. 57dec56
Myron Marston Added logic to VCR::Config.http_stubbing_adapter so that it returns t…
…he appropriate value if just one of fakeweb/webmock are loaded.
b8d942d
Myron Marston Raise a helpful error message when people try to use VCR with depreca…
…ted cassettes.
4128bcc
Commits on Apr 18, 2010
Myron Marston Made most of VCR::Cassette's methods private. I had forgotten to make…
… the methods private before, but most of them don't need to be exposed.
4ff3f9b
Myron Marston Reorganized some code. d17615b
Myron Marston Disallow http connections by default. 5d89dff
Myron Marston Updated exception message to be more helpful. 0242578
Myron Marston Check that the versions of FakeWeb and WebMock are supported. 80ad7b3
Myron Marston Disallow http connections and check the adapter version when the VCR.…
…config block completes, rather than the first time http_stubbing_adpater is accessed. This ensures that these things are done before the test suite starts running.
dede4db
Commits on Apr 19, 2010
Myron Marston Bumped the webmock version requirement to 1.1.0 as that is the versio…
…n number that will be used for the webmock release that supports VCR.
55564f7
Myron Marston Override WebMock::NetConnectNotAllowedError so that it includes a hel…
…pful message about using VCR.
37bac90
Commits on Apr 22, 2010
Myron Marston Added a benchmark to test the performance characterstics of fakeweb v…
…s webmock.
aa775a3
Myron Marston Renamed file. 8d41610
Myron Marston Fixed the vcr task so it actually, you know....works. fffd3aa
Myron Marston Change History file to markdown format and renamed it to changelog. 3e442f3
Commits on Apr 24, 2010
Myron Marston Renamed VCR::Cassette#http_stubbing_adapter to http_stubbing_library. 632db1f
Myron Marston Changed the readme to markdown format, and re-wrote most of it. cff2b84
Myron Marston Updated CHANGELOG with the info about what is coming in the next rele…
…ase.
af61cfc
Myron Marston Updated gemspec info. ee245f3
Myron Marston Updated the cucumber VCR configuration so that it uses :fakeweb by de…
…fault if HTTP_STUBBING_ADAPTER is not set.
892ba38
Commits on Apr 29, 2010
Myron Marston Use strings instead of symbols for the hash keys for Net::HTTP.post_f…
…orm.

On my ruby 1.9.1 CI server, the build is failing with this error: "TypeError: can't dup Symbol".  I can't repro this locally (maybe a different 1.9.1 patch level?), but I think this may fix it.
8e4121e
Myron Marston 0.4.0 release. 7663252
Commits on May 12, 2010
Myron Marston Fixed a bug: Net::HTTPResponse#read_body was raising an error because…
… VCR "pre-read" the body when recording a new request.

My fix is to extend the already read response with a module that attempts to preserve the behavior of #read_body when the response has not yet been read.
4b5647a
Myron Marston 0.4.1 release. dfceeb1