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
This comparison is big! We're only showing the most recent 250 commits
Commits on Dec 29, 2011
Myron Marston File.absolute_path isn't available on 1.8.
For #118.
85cc91c
Commits on Jan 04, 2012
Myron Marston Ensure rspec metadata cuke is syntax highlighted on relish. 11c8fb9
Commits on Jan 23, 2012
Myron Marston Update excon dependency. 1537d91
Myron Marston Ensure excon retries the right number of times.
Previously, when we were recording a cassette, the excon request being tested had a retry count, and for each of those, our hook would make a real request that was also retried that many times.
5d2e3c8
Myron Marston Ensure excon status errors are handled properly.
When you make an excon request with the :expects option, it will raise a subclass of Excon::Errors::HTTPStatusError if the response is not the expected status code.  We were manually re-raising this error before, but the excon code up the call stack* rescues all errors and raises an Excon::Errors::SocketError.  This caused the error class to be different then what it would have been otherwise.  Instead, we want to return the raw response (i.e. no expects error), and we let excon transform this in to a status error.

* https://github.com/geemus/excon/blob/v0.9.5/lib/excon/connection.rb#L225-232
99f601c
Commits on Jan 24, 2012
Myron Marston Delete some more excon options. e37dfa1
Myron Marston Fix specs failing on 1.8.7 on travis. 70b3127
Myron Marston Update rspec to 2.8 final. bfb3a4d
Commits on Jan 26, 2012
Myron Marston Add comments for the last 2 undocumented methods.
Yard doesn't actually show these comments (see lsegal/yard#428), but I want to ensure I keep up documentation coverage, and getting to 100% and making it part of the build is a nice step towards that.
d0c2efc
Myron Marston Add yard coverage as part of travis build. 1837757
Myron Marston Remove override that's not needed. 8510d8f
Myron Marston Rename method.
This aligns it with the exception name.
249e5e7
Myron Marston Ensure yard installs on travis.
On travis, bundler runs "--without extras".
d61b66f
Commits on Jan 27, 2012
Myron Marston Ensure the request body gets recorded with FakeWeb/Net::HTTP.
For some reason, Net::HTTP provides `request_body` (passed as an extra argument) and `request.body` on the request argument...and sometimes the request body is on one or the other.

Closes #127.
907b7bc
Myron Marston Fix travis build on 1.8.7.
We can't count on hash ordering on 1.8.
dc7ce79
Myron Marston Update changelog. e0d3a4f
Commits on Jan 28, 2012
Myron Marston Less meta in the gemspec. 51f6146
Myron Marston Update cucumber and aruba. e7dc0a9
Myron Marston Remove env vars that aruba now sets for JRuby. b37e593
Myron Marston Install simplecov. 133bf59
Myron Marston Remove version checking shared specs.
These don't provide much benefit, and the fact that they were reloading files messes with simple cov.
9f2ae33
Myron Marston Refactor specs to not use code reloading.
Code reloading messes up simplecov.
fe7ecba
Myron Marston Add another simple cov filter. ae6f413
Myron Marston Move simplecov config into spec_helper. c4f44f8
Myron Marston Remove rcov. 55accc4
Myron Marston Fail the build if test coverage is too low. bd3dc79
Myron Marston Install simplecov on all platforms.
It won't work on all platforms but I believe it's designed to no-op on platforms it doesn't work on.
de0a94e
Myron Marston Fix check_code_coverage task. 9ce3d16
Commits on Jan 29, 2012
Myron Marston Update copyright years. 59dd56c
Myron Marston Remove unnecessary require. 5dc886b
Myron Marston Brought back #has_interaction_matching?
This is going to be needed for the typed request hooks, to allow a WebMock/Typhoeus after request hook to figure out if the request was stubbed without consuming an interaction.
7782123
Myron Marston Use a development version of webmock, and update Curb.
The latest WebMock no longer works with older curb releases.
175b0ed
Commits on Jan 31, 2012
Myron Marston Set the type of request for the before/after request hooks.
For #124.
31e7ebd
Myron Marston Use delegation so the assigned type doesn't bleed to other contexts. e130752
Myron Marston Refactor fiber aware to use delegation rather than an extension module. 8f84e26
Myron Marston Add query interface to VCR::Request::Typed. 2233ea8
Myron Marston Refactor hooks for greater flexibility. c9944d3
Commits on Feb 01, 2012
Myron Marston Ensure cukes run with bundler-managed gems on the load path. 1756b3d
Myron Marston Add cukes and docs about before/after hook filtering. 27b4bc3
Myron Marston Rubygems has to be required before rspec/expectations on 1.8. 4c9db34
Myron Marston Fix spec that was failing on 1.8. cbd3c14
Myron Marston Fix ruby warning. 6080d72
Myron Marston Fix build.
On REE I get a warning: "Object#type is deprecated; use Object#class", which fails the build since I've got the capture warnings thing going.
c25bfcd
Myron Marston Support multiple tags. 3e903f2
Myron Marston Simplify how the update_content_length_header option works. 1a9370a
Myron Marston Extract HTTPInteraction hook aware logic. fbf2506
Myron Marston Update some documentation. d4ee444
Myron Marston Fix failing test. 1ce6aaf
Myron Marston Copy cassette option docs with a "see" directive. 7cd7121
Myron Marston Fix method implementation to match signature. 99296a3
Myron Marston More doc fixes. 32d09cf
Myron Marston Make parameter optional. ea9656e
Commits on Feb 02, 2012
Myron Marston Don't query the http interaction list so many times. a6c3a0c
Myron Marston Fix ivar not initialized warning. 589bee4
Myron Marston Fix typo. df30aa7
Myron Marston Add missing specs for new hooks method. a5eba88
Commits on Feb 03, 2012
Myron Marston Documentation fixes. e354003
Myron Marston First pass at debug logging.
For #132.
9ff4f22
Myron Marston Skip cuke on 1.8 to fix build.
We can't count on consistent hash ordering on 1.8.
964778c
Commits on Feb 04, 2012
Myron Marston Update WebMock to version that supports Excon. 61f4ff0
Commits on Feb 05, 2012
Myron Marston Disable WebMock's excon adapter in our excon hook. 5e9ae62
Myron Marston Simplify the way we ensure the typhoeus/webmock hooks don't interfere…
… with each other.
5f31572
Myron Marston Got tests to pass for WebMock's new Excon adapter. f6a6798
Myron Marston Update sinatra and rack dependency.
We need to disable rack-protection so that there aren't extra headers such as X-Frame-Options.
183592b
Myron Marston em-http-request apparently allows nil request headers. f9dfc44
Myron Marston Add VCR.js to readme. 92d3aaf
Myron Marston Fix localhost server to properly shutdown.
The INT signal handler in rack 1.1 has moved to the rack binary, so we need to add it ourselves now.
3c871bf
Myron Marston Get yard coverage back to 100% so the build passes. b826b93
Myron Marston Update Changelog. 2062381
Commits on Feb 09, 2012
Myron Marston Flesh out Upgrade.md.
Closes #131.
14e7730
Commits on Feb 11, 2012
Myron Marston Allow filters to be used with `around_http_request` hook. 6819297
Myron Marston Simplify example. 4eca724
Myron Marston Deep structural stubs are a problem. a973773
Commits on Feb 13, 2012
Myron Marston Fix typo. e0c462d
Myron Marston Add additional files to yard listing. 940d764
Myron Marston Add rake task to boot the test app. 283a1bf
Commits on Feb 14, 2012
Myron Marston Use markdown format for yard comments. 7824d07
Commits on Feb 15, 2012
Myron Marston Add link to TapeDeck.js to README. 78db8f1
Commits on Feb 19, 2012
Myron Marston Be a bit more liberal about how we parse headers for curb and em-http. 844cb74
Myron Marston Force the usage of syck in some cukes to get the travis build green.
The just released 1.9.3-p125 includes an updated psych that apparently behaves differently from the one in 1.9.3-p0 and 1.9.2.  It serializes any string that is tagged with the ASCII-8BIT encoding as a binary string (using base64 encoding) even if the string is ASCII-7BIT compatible.
7dda15b
Myron Marston No more pending specs!
The latest WebMock includes a fix that makes HTTP Client pass this spec.
cf5b781
Myron Marston Got travis yml file to pass travis lint. 88b4d9d
Commits on Feb 20, 2012
Myron Marston Update webmock dependency now that 1.8.0 is out. 580f827
Commits on Feb 21, 2012
Myron Marston Add preserve_exact_string_bytes config option.
For #74.
53d7256
Myron Marston Migrate call the cucumber cassettes to updated format.
The cassette format now includes the encoding of the request and response body.
531acdf
Myron Marston Make the lack of forced encoding explicit. 9fe1ba2
Myron Marston Add additional info about encoding issues. bcacd1f
Myron Marston Pass the entire HTTP message to the preserve hook.
This provides additional flexibility; the user may want to check the encoding specified in an HTTP header.

Also, I'm passing the current cassette as an optional yielded param as well.
814e482
Myron Marston Allow multiple preserve_exact_body_bytes hooks.
This will pave the way to make it easy to support a cassette option for this feature.
33cd528
Myron Marston Ensure VCR.current_cassette is accurate during VCR::Cassette#eject.
This is needed for the preserve_exact_body_bytes hook.
eb213a7
Myron Marston Add new :preserve_exact_body_bytes cassette config option. befc480
Myron Marston Make VCR::Normalizers::Body::ClassMethods private. cb5bf03
Myron Marston Update relish nav. 9c3daab
Myron Marston Remove :focus. 9c7622a
Myron Marston Append info about the preserve bytes option to serialization encoding…
… errors.
a299c20
Myron Marston Try to re-encode bodies as their original encoding, printing a warnin…
…g when that fails.
b26a65b
Myron Marston Use the base class of all encoding errors. 550a58e
Commits on Feb 22, 2012
Myron Marston Fix build on 1.8. a4e2353
Myron Marston Setup limited red. 6459cad
Myron Marston The specs require simplecov, so let's make it a proper dev dependency. 59d3b99
Myron Marston Skip yajl test on jruby since it requires native dependencies. a45d1ee
Myron Marston It's simplecov, not simple_cov. 6d435d1
Myron Marston Try building against some other rubies.
[ci skip]
da23955
Myron Marston Words. 994a236
Myron Marston Don't load limited red in the CI environment. It needs the API key to…
… work.
48d7dea
Myron Marston Use latest Excon. 9380ddb
Commits on Feb 24, 2012
Myron Marston Release 2.0.0.rc2. 618a581
Myron Marston yajl-ruby can't install on jruby 19 mode. ae138db
Commits on Feb 25, 2012
Myron Marston Rearrange code a bit so the main APIs are first. c857d4d
Commits on Feb 26, 2012
Myron Marston Add logging of filter_sensitive_data hooks.
This should help with troubleshooting #137.
a0ea7b9
Myron Marston Add logging about the re_record_interval behavior.
Closes #123.
a0f047e
Myron Marston Add quality spec that enforces whitespace policy. d34b6f7
Myron Marston Remove unnecessary code causing a warning on 1.9.3.
/home/vagrant/builds/myronmarston/vcr/spec/quality_spec.rb:6: warning: setting Encoding.default_external
ad48b85
Myron Marston Update em-http-request dependency. b4fcf22
Myron Marston Fix scenario to use new em-http-request 1.0 APIs. c130bc5
Myron Marston rbx-18mode is passing on travis; add ruby-head. 1c11b66
Myron Marston Update changelog. 5bf57c1
Myron Marston Don't worry about stripping standard port from URIs on playback.
The standard port only needs to be stripped during recording; for playback, it will have already been stripped.  This allows people to use the `filter_sensitive_data` option in a way that changes the URI; before this change, doing so resulted in `URI::InvalidURIError`.

Closes #137.
06a8e00
Myron Marston Add rbx-18mode back to the list of allowed failures.
Removing it was premature, apparently.  I got a bunch of random cuke failures on travis all of a sudden.
8dedcee
Myron Marston Update changelog.
[ci skip]
efc5712
Commits on Feb 29, 2012
Myron Marston Explicitly require faraday middleware from library hook.
This ensures that the version checking happens. Previously, if you did `hook_into :faraday` but were on an older version that doesn't support the middleware `lock!` API, the middleware would never be loaded and the version checking would never take place.
4d0d7bf
Commits on Mar 01, 2012
Myron Marston Explicitly support newly released Excon 0.10. 2aeea4a
Commits on Mar 02, 2012
Myron Marston Update changelog. 8d356b1
Myron Marston Run tests against Faraday 0.8.0.rc2. 72332bf
Myron Marston Update README.
[ci skip]
245ae11
Myron Marston Add note to upgrade document about change in the :uri matcher.
[ci skip]
b3cea43
Myron Marston A couple more documentation tweaks.
[ci skip]
d46736e
Myron Marston Release 2.0.0! 396dd4c
Commits on Mar 03, 2012
Myron Marston Clarify a few things in the Upgrade doc. 1e1b5b0
Commits on Mar 05, 2012
Myron Marston Update limited red to version that doesn't abort if the .limited_red …
…file isn't present.
0183d44
Commits on Mar 08, 2012
Myron Marston Add link to REST-assured and re-organize library links. ca6abe8
Commits on Mar 09, 2012
Omer Rauchwerger support for naming cassettes automatically according to the current s…
…cenario's name using the :use_scenario_name option when creating Cucumber tags
d0eb335
Myron Marston Give credit where credit's due. 0d01bfd
Myron Marston Fix ruby warnings ("useless use of == in void context").
This should hopefully make the build green again.
cc4f6cf
Myron Marston Some file systems (like linux) aren't case sensitive.
OS X is though, so this passed for me but failed on travis.
18b449f
Commits on Mar 10, 2012
Myron Marston Fix another place where case-sensitivity matters on Linux. 748d6c2
Commits on Mar 13, 2012
Mislav Marohnić mislav allow bundler 1.1 9e49c5b
Mislav Marohnić mislav add cassette option to decode compressed response before recording
When the option is used, "gzip" and "deflate" respones are decompressed
using Zlib before recording, making the serialized data readable and
editable.

Example

  VCR.use_cassette(:example, :decode_compressed_response => true) do
    # ...
  end
ca7cfed
Myron Marston Got decompress.feature to pass on 1.9.2.
- An extra line break is needed; otherwise, the appended content gets smashed against the "end" from the existing content, with no line break.
- Normalize quotes to singles ('). On 1.9.2p290 I was getting a failure because psych was serializing content length as `"43"` rather than `'43'`.
44e91ec
Myron Marston Use a vcr error for unknown content encoding. c1a4f55
Myron Marston Document new :decode_compressed_response option. a08448c
Myron Marston Update Changelog. a96f0aa
Myron Marston Add missing require.
Other things in VCR load this but when I ran this spec file on its own it failed because it wasn't loaded.
e8c53e6
Commits on Mar 14, 2012
Myron Marston Lock em-http-request to version that works with WebMock 1.8.2.
em-http-request 1.0.2, just released today, breaks WebMock's em-http-request adapter.  There's a pull request to get it fixed in WebMock[1], but for now it's simplest to lock to 1.0.1.

[1] bblimke/webmock#168
a17b4b9
Myron Marston limited_red can't install on 1.8.7 due to being build with psych. edf58a2
Myron Marston Upgrade to rspec 2.9.0rc2. 8ef5b0e
Myron Marston Get structs_spec.rb to pass on 1.8.7. 114e6bc
Myron Marston Set file type of a few cuke sections for syntax highlighting on relish. 986557c
Myron Marston Use syck since psych on 1.9.3p125 emits ASCII-8BIT strings as binary.
That was causing these scenarios to fail on travis on 1.9.3.
b5aea12
Myron Marston Revert "Upgrade to rspec 2.9.0rc2."
This reverts commit 8ef5b0e.

VCR's specs aren't passing on 2.9.0.rc2 :(.
1c5217b
Myron Marston Handle limited red not being installed. e0034eb
Commits on Mar 15, 2012
Myron Marston Re-upgrade to rspec 2.9.0.rc2.
On 2.9, metadata filter lambdas are only invoked if the named key is present in the metadata hash, so the old way we made :skip_vcr_reset work is no longer supported.
4cd88e1
Myron Marston Upgrade to limited red 0.3.9, which fixes the 1.8.7 issues. 07ad209
Commits on Mar 16, 2012
Myron Marston Test against new webmock, excon and em-http-request releases. 4a3ed8b
Commits on Mar 19, 2012
Myron Marston Don't try to encode to a nil encoding.
This should allow cassettes recorded on 1.8 to work on 1.9.

Closes #149.
45b3fcf
Myron Marston Update Changelog.
[ci skip]
193c6c1
Myron Marston Ignore rubinius artifacts. 9765851
Myron Marston Work around rubinius bug. f26ac93
Commits on Mar 23, 2012
Myron Marston We need the rubinius fix here in the cukes, too. 022a010
Myron Marston Just force encode to ASCII-8BIT.
Encoding to ASCII-8BIT is nonsensical since it just means "binary".
deea152
Myron Marston RSpec 2.9.0 is out. 4872438
Myron Marston Only uses simplecov on MRI 1.9.
Rubinius in 1.9 mode has problems with it:

rubinius/rubinius#1575
ce67f9b
Myron Marston Excon 0.13 is out and VCR works fine with it. cbacaaa
Myron Marston Travis tweaks.
- rbx 18 mode is passing consistently now.
- Don't bother with ruby head; I'm not paying attention to it and it just wastes travis resources

[ci skip]
a936557
Commits on Mar 28, 2012
Myron Marston Fix faraday middleware so that it plays back parallel requests properly. 2098a95
Commits on Mar 30, 2012
Myron Marston Remove unneeded .document file. 9c0caee
Commits on Apr 01, 2012
Ezekiel Templin ezkl Remove explicit definition of parallel_manager 835be52
Commits on Apr 02, 2012
Myron Marston Add @ezkl to list of contributors in the readme. 0714dbd
Commits on Apr 03, 2012
Myron Marston Raise a helpful message if #use_cassette is called with no block.
Previously, doing so would raise a confusing error:

  NoMethodError: undefined method `arity' for nil:NilClass
4f900a7
Commits on Apr 06, 2012
Myron Marston Remove unused method. 5677f88
Commits on Apr 19, 2012
Myron Marston Add link to codeclimate. b5f78ea
Myron Marston Update Changelog to reflect 2.0.1 release. 1977f87
Myron Marston Fix readme.
[ci skip]
67c1823
Myron Marston 2.1.0 release.
[ci skip]
23fe0d7
Commits on Apr 23, 2012
Myron Marston Fix :use_scenario_name option so that it works for multiple scenarios.
Closes #156.
751783e
Myron Marston Update Changelog. dbe142d
Commits on Apr 24, 2012
Myron Marston Only use the first line of the cuke feature name in the cassette name.
Closes #157.
034bdaf
Myron Marston Update changelog.
[ci skip]
92da531
Commits on Apr 25, 2012
Myron Marston 2.1.1 release. 4858f4e
Chris Le Refactored cassette to use a storage backend 5a7021b
Myron Marston Remove DB storage backend.
VCR's only going to provide a file system implementation of a storage backend. Any other storage backends will need to be implemented by end users.
7667c7a
Myron Marston Remove unused variable. f7fb0ba
Myron Marston Remove unused method. daee674
Myron Marston Use a shorter variable name. 93f3c1a
Myron Marston Use an attr_reader rather than an explicit method. ff972d1
Myron Marston Add specs for StorageBackends. 6c6a3b3
Commits on Apr 26, 2012
Myron Marston Implement FileSystem read/write interface. d44afaa
Commits on Apr 27, 2012
Myron Marston Change Cassette::Reader to Cassette::ERBRenderer.
This moves the responsibility for reading the file back into VCR::Cassette, which will pave the way for using the new storage backends.
67a9cf0
Myron Marston Use the storage backend rather than direct file calls. 488042c
Myron Marston Rename raw_yaml_content to raw_cassette_bytes
...since other (non-yaml) serializers are supported now.
37ed57f
Myron Marston VCR::Configuration doesn't use fileutils anymore. ef459e4
Myron Marston Pass the cassette name to the ERBRenderer.
This allows it to use it in error messages.
7e03d4c
Myron Marston Move the file name sanitization into the FileSystem backend.
This sanitization is designed for file names, so it belongs there.
56c6c19
Commits on Apr 28, 2012
Myron Marston Allow a custom storage backend to be used. fd6bbaa
Myron Marston Change :storage_backend option to :persist_with.
I like this a bit better and it lines up nicely with the :serialize_with option.
e0b63b8
Myron Marston Add yard docs for new persister feature. 924e703
Myron Marston Fix failing cuke.
The new persist_with option gets logged.
d79146d
Myron Marston Gracefully handle the case where the template is nil. c9766f5
Myron Marston Words. 7af62f4
Commits on May 01, 2012
playupchris playupchris Modify after_http_request scenario to fail 9e2d24e
playupchris playupchris BUGFIX for calling "to procable" filters in hooks
eg. VCR.configure.after_http_request(:stubbed?)
db7f0bc
Myron Marston Slightly more robust fix for the after_http_request symbol filter pro…
…blem.

I don't think it's the right general behavior to have hook filters only forward 1 argument to the filter when the filter uses splat args.  Symbols are a special case for after_http_request filters where we only want to forward the request argument (since they are arg-less predicate methods on the request).
262393a
Myron Marston Words.
[ci skip]
4fecdff
Myron Marston Cassette#file is only valid when the FileSystem persister is used. 6e1359c
Commits on May 02, 2012
Myron Marston Shift things around to make yard 0.8 happy. 3193708
Myron Marston Print out the yard coverage info (including warnings) even when the t…
…ask passes.
c0836b6
Myron Marston Deal with some YARD warnings. 8bc984f
Myron Marston Refactor cassette initialization. 76c1e35
Myron Marston Add link to nock.
[ci skip]
9f68800
Commits on May 03, 2012
ingemar ingemar Pass the given URI to ::FakeWeb.allow_net_connect? when VCR is turned…
… off

[fixes #160]
cef9f9d
Myron Marston Prefer eq matcher to ==.
Using should == generates warnings.
bface04
Gordon Wilson gordoncww WebMock's :allow filters work now bd6a9ce
Myron Marston Words. e564ec3
Commits on May 04, 2012
Myron Marston Remove old scripts I no longer use.
[ci skip]
4d2066a
Myron Marston Fix/cleanup webmock spec version/adapter checking code.
It had `library` but that's an undefined variable and it was causing jruby/rbx to abort.
1bdaa8c
Myron Marston Cut rake out of rspec/cucumber for CI builds.
When something environmental fails (i.e. not in an individual spec, but when the spec files are being loaded), the rake tasks craps out but does not include the backtrace of what failed.  It's really annoying and hard to troubleshoot.  This should work better.
2ac7a03
Commits on May 07, 2012
Myron Marston Add link to NSURLConnectionVCR.
...and re-arrange links alphabetically while I'm at it.

[ci skip]
6723279
Myron Marston Print a warning when a non-standard Faraday stack is used.
When the Faraday stack includes a middleware after the HTTP adapter it gets "first dibs" on modifying the response and thus can prevent VCR from recording the response properly.  This is a problem with the instagram gem.

For #159.
e536a51
Myron Marston Raise an error if a response is recorded with an invalid body.
This can occur when a non-standard Faraday stack is used, where a response-modifying middleware comes after the HTTP adapter.

For #159.
d924f66
Commits on May 11, 2012
Myron Marston Fix documentation typo. f5bb8a0
Commits on May 14, 2012
Myron Marston Relax httpclient version constraint.
This should pick up the latest, to run the build for #168.
8575ba5
Commits on May 23, 2012
Myron Marston Fix HTTPInteraction filtering to handle integers (e.g. port) correctly.
Previously, we would get an error:
  TypeError: can't convert Fixnum into String

Closes #167.
04cd243
Myron Marston Gracefully handle a faraday stack w/ no explicit adapter.
Closes #170.
30549e8
Myron Marston Update changelog. 90dacb2
Commits on May 26, 2012
Myron Marston Work around bug in WebMock's em-http-request adapter.
When the :redirects option is used with em-http-request,
WebMock's after_request hook gets invoked twice for a
single request. It appears to be doing it one for the original
request and once for the following redirect request. However,
the second time it does not actually have the new URL, and,
furthermore, the globally_stub_request hook is only invoked
once. As a result, the @__typed_vcr_request ivar has already
been removed, and we were getting nil on the second after_request
hook invocation.

Our fix is to make our WebMock library hook tolerant of the
@__typed_vcr_request hook not being present. Some things
(such as filtering an after_http_request hook based on request
type) will not work properly but the main VCR functionality can
work this way.

Closes #171.
b161e10
Myron Marston Ensure our injected instance variable gets removed. aa087c1
Myron Marston Fix 1.8.7 compatibility.
- On 1.8, #instance_variables returns an array of strings.
- On 1.9, #instance_variables returns an array of symbols.
524ac1c
Myron Marston Remove guard...I haven't used guard in a while. ea84bfb
Commits on May 27, 2012
Myron Marston Uninstall JSON gem before running the Travis build.
Some of the VMs appear to have JSON 1.7.1 installed and it's causing weird breakage:

http://travis-ci.org/#!/myronmarston/vcr/jobs/1443136/L145
e1ca679
Myron Marston Work around weird rubinius issue on travis. 50c6ef5
Myron Marston Require spec support files relative to load path.
This should prevent any of them from being loaded twice as long as we use the relative form everywhere.
139ac6b
Commits on May 28, 2012
Myron Marston Fix cukes failing on rubinius.
Rubinius now includes some extra leading spaces on some kinds of errors, for some reason.
99bd91a
Myron Marston Fix failing specs on rubinius.
I'm not sure why there's this different behavior for MRI vs RBX, but this fixes it.
0885843
Myron Marston Skip some tests on JRuby that don't apply.
JRuby handles YAML and JSON a bit different from MRI.
Also, JRuby keeps #type in 1.9 mode even though MRI does not (but has it on 1.8).
fe4f152
Myron Marston 1.9 mode on rbx doesn't have the same serialization errors. 04ed9df
Myron Marston Rubinius 1.9 mode doesn't raise encoding errors like it should :(. f8cfae3
Myron Marston Rubinius 1.9 mode has a gzip issue, too... 42babb2
Commits on May 29, 2012
Myron Marston Allow requests to be stubbed by external libraries (e.g. WebMock or F…
…akeWeb).

Previously, direct WebMock/FakeWeb/Typhoeus stubs would be ignored
unless VCR was turned off. However, some users have requested that
VCR use these stubs if they are set. This enables that.

Part of this changes the VCR::Request::Typed interface a little bit;
#stubbed? now returns true regardless of how it was stubbed, and
#stubbed_by_vcr? should be used to test if VCR stubbed it (vs.
#externally_stubbed?).

Note that I consider this a bit experimental. I'm not sure I've thought
through all the repercussions of this, and I consider this only
"semi supported".

Closes #146.
499646a
Tyler Hunt tylerhunt Fix multipart POST requests with Faraday. cec9fe3
Commits on May 30, 2012
Myron Marston Some improvements to @tylerhunt's faraday multipart upload fix.
- Add tests.
- Move the body reading out of #vcr_request and into a helper method--
  we don't want it to happen multiple times and #vcr_request is memoized
  for a reason.
- Refactor the body reading a bit.
- Use it for the response body, too. I don't really understand it, but
  for some reason the multipart request body becomes the response body
  when no HTTP adapter is set, and due to the change I made in
  d924f66, an error was raised.

Closes #172.
4752496
Myron Marston Remove limited red...I'm not actually using it. b364c82
Myron Marston Reformat changelog.
[ci skip]
aff7f48
Mattias Putman challengee Added allow_episode_skipping option notion c7a5b09
Mattias Putman challengee Assert if a list can be stopped using properly; Custom error when req…
…uests have been skipped
58ddbb0
Mattias Putman challengee Renamed option; made has_unused_interactions? private; don't mix opti…
…on in with http interaction list; Added default option
75d64a7
Commits on May 31, 2012
Myron Marston Finish the allow_unused_http_interactions feature.
- Add cuke.
- Add #assert_no_unused_interactions! call from Cassette#eject.
- Rename error class to match option.
- Various other small fixes.
d6e9610
Myron Marston Update changelog.
[ci skip]
729292e
Myron Marston Make cuke tolerant of slight interpreter discrepancies.
JRuby and Rubinius print errors a bit different (e.g.
extra spacing, different placement of error class
relative to the error message w/ a multiline message).
9c686c9
Myron Marston Add links to other VCR ports. 9795ddb
Myron Marston 2.2.0 release. e1e0b62