Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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 Mar 02, 2011
@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.
534925a
@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.
70b195f
Commits on Mar 19, 2011
@myronmarston 1.7.1 release. 0022cf7
Commits on Mar 24, 2011
@myronmarston Add rvm rubies to travis build. e875ddc
Commits on Mar 26, 2011
@myronmarston Don't build so many rubies. Travis seems to have gotten confused. f189e62
@myronmarston Ensure that header values are the same when recording and replaying.
- Typhoeus would have a single header value like 'text/html' when recording, but it was in an array on playback ['text/html'].
- Faraday headers are returned with lower case keys, and I was not handling this properly at all.

There are a few adapter/http library combinations that do not work properly when there are multiple values for one header:
- Faraday/Patron
- WebMock/HTTP Client
- WebMock/EM HTTP Request
- WebMock/Curb

I think this is due to a bug in those libraries.  I could change the way I pass headers to Faraday and WebMock, but that would break the other libs used with Faraday and WebMock (i.e. Faraday/Net::HTTP or WebMock/Net::HTTP) so I think it's best for now to just leave these pending.

Closes #50.
dbbc4b3
@myronmarston Update to em-http-request 0.3.0.
This fixes some specs that were previously pending due to a bug in em-http-request.
cc7f1b5
@myronmarston 1.7.2 release. 717d7c8
Commits on Apr 01, 2011
@myronmarston Update to Faraday 0.6. fb156a7
@myronmarston 1.8.0 release. 487332d
@myronmarston Fix spec to use https like the doc string says. 239f744
Commits on Apr 05, 2011
@myronmarston Fix synopsis example.
Example.com has changed :(.
3581134
Commits on Apr 06, 2011
@myronmarston I've been told travis supports all these rubies now...so let's try bu…
…ilding against them all.
d4eecce
Commits on Apr 08, 2011
@myronmarston Add some test cases for https requests. fb9d0f7
Commits on Apr 09, 2011
@myronmarston Use local tmp folder rather than Dir.mktmpdir for spec isolation.
On travis, the jruby build is failing every spec with an error like "Permission denied - /tmp/d20110408-13741-ptyay/."  This should fix it.
d039c5b
@myronmarston Fix spec so it passes on JRuby on travis.
On travis, JRuby is having permission denied errors for Dir.mktmpdir.
c880c8e
@myronmarston Fix spec so we don't create a 'spec..' dir on accident. 28d8916
@myronmarston Don't run em-http-request tests on travis on 1.8.6.
On travis, we're getting a weird error like:

ruby: symbol lookup error: /home/travis/.rvm/gems/ruby-1.8.6-p420/gems/em-http-request-0.3.0/lib/http11_client.so: undefined symbol: rb_hash_lookup
364ea9e
@myronmarston Lock linecache19 to a version that can install on 1.9.1 and 1.9.2. ded5cf1
@myronmarston Ignore leading and trailing whitespace for YAML fragment matching step. e2adda0
Commits on Apr 13, 2011
@myronmarston Install excon. 4cff3f5
@myronmarston Add beginnings of Excon adapter. 1b135e5
@myronmarston Check Excon version. b3e0b9c
@myronmarston Implement excon http adapter module. 38346fd
@myronmarston Implement Excon adapter. 92786a7
@myronmarston Add excon to cukes. 46341a1
@myronmarston Add excon info to readme. 0eef043
@myronmarston Update to Excon 0.6.1. 7bc841a
@myronmarston Fix spec so it doesn't create a cassette_lib directory in the project…
… root.
f40aa60
@myronmarston Fix cassette/format.feature cuke for excon.
Excon doesn't expose http_version or status.message so these are set to nil.
e983c9b
@myronmarston The excon adapter doesn't yet support regex URIs. 3b040aa
@myronmarston Remove travis status icon.
The build has been very unstable on travis recently (even though it passes fine locally) so there's no point in advertising the "unstable" travis status.
833624d
Commits on Apr 15, 2011
@myronmarston Upgrade excon to 0.6.2. 4c10172
@myronmarston Remove jruby stuff from full build--I can't get jruby to work with th…
…e full build :(.
bf20801
@myronmarston 1.9.0 release. ab598a7
@myronmarston Lock addressable to 2.2.4--2.2.5 has some regression errors.
See sporkmonger/addressable#33 for more info.
4763130
Commits on Apr 19, 2011
@myronmarston Build just 1.8.7 for now. 8f3f960
Commits on Apr 20, 2011
@myronmarston Fix header normalization to properly handle nested arrays and non-str…
…ing values.

Closes #40.
e9b37d4
Commits on Apr 22, 2011
@myronmarston Fix synopsis description. 89b3403
Commits on Apr 24, 2011
@myronmarston Curb uses the Curl namespace.
(thanks @phiggins!)
2fd32ce
Commits on Apr 26, 2011
@myronmarston Add cassette naming cuke that documents the fact that VCR sanitizes c…
…assette names.
74ff261
@myronmarston Lock relish to 0.2.2 since 0.2.3 has a jruby-openssl dependency.
This dependency causes issues since bundler puts it on the load path.

Closes #57.
1fe4f8f
@myronmarston Remove spec focusing I accidentally left before. bdd8e95
Commits on May 06, 2011
@myronmarston Use new github markdown syntax features. aa61962
@myronmarston Relax relish version constraint now that jruby-openssl isn't a depend…
…ency.
225c78c
@myronmarston Fix capitalization of cassette name.
This cuke should hopefully pass travis now.
6f482aa
@myronmarston Now that the 1.8.7 travis build is passing, let's try against other M…
…RI rubies.
5a9dc25
@myronmarston Don't enable debugging on 1.9.1.
For some reason I'm getting an error on travis for `config.debug = true` even though it works fine locally.
2fad0ee
Commits on May 07, 2011
@myronmarston Remove obselete reference to example.com. ba1ce1f
Commits on May 11, 2011
@jsmestad jsmestad Allow cassette insertions to be ignored while VCR is turned off. 1f3c02c
@myronmarston Cleanup new :disable_cassette_errors option.
- Rename it to :ignore_cassettes--I think this is more intention-revealing.
- Ensure `insert_cassette` does not actually insert a cassette when VCR is turned off with :ignore_cassettes => true.
- No need for `use_cassette` to handle this since `insert_cassette` handles it properly now.
- Add additional specs.
- Fix cassette insertion error message so it mentions the new
  :ignore_cassettes option.
bc85a65
@myronmarston Add scenarios to document new :ignore_cassettes option.
Closes #56.
6983ce1
@myronmarston Update changelog. 7613284
@myronmarston Raise an argument error when `VCR.turn_off!` is passed invalid options. 660267f
Commits on May 12, 2011
@myronmarston For the cucumber cuke, pull the server code into a separate file to h…
…opefully make it clearer that vcr_cucumber_helpers is not a file for end users to require.

See https://github.com/myronmarston/vcr/issues/63 for more details.
c9ab4b9
@myronmarston Update contributors. b466443
@myronmarston Fix rack middleware so that it is threadsafe.
VCR as a whole is not designed to be threadsafe (running your tests in multiple threads is asking for trouble), but the rack middleware needs to be, since some rack servers (like WEBrick) are multithreaded.

Closes #58.
eb530ae
@myronmarston Use a mutex rather than Thread.exclusive.
I'm getting errors from the rack middleware cuke on 1.8 w/ the Thread.exclusive.
a82787f
Commits on May 13, 2011
@myronmarston Only build 1.9.2 so I can focus on the one failing ruby. fd9fa29
@myronmarston Focus on just one failed cucumber scenario with logging output so I c…
…an see what's going on on travis.
b35e01c
Commits on May 14, 2011
@myronmarston Update rspec to latest. f52b13a
@myronmarston Make webrick logging visible on CI but not locally. 7be1de9
@myronmarston Use ci tag rather than wip for travis. b26c536
@myronmarston Ensure rack response body responds to each. 4453e92
@myronmarston Don't try to boot the sinatra server multiple times. 3449849
Commits on May 16, 2011
@myronmarston For some reason, this pending spec passes on travis CI even though it…
… fails locally.
7d3e14f
@myronmarston Run all cukes on CI.
One of the ones that was failing on 1.9.2 passes in isolation, so I want to run them all to see if there's an issue with running all of them.
48ea1e7
Commits on May 17, 2011
@myronmarston Run against all rubies on travis.
For some reason, I got a weird error on travis when running against 1.9.2 for HTTPClient, where the response was already the body string rather than an object that responds to #content.  This fixes that as well.
550eb66
Commits on May 18, 2011
@myronmarston Update addressable. ef232ea
Commits on May 19, 2011
@myronmarston Update to latest webmock. a32bc78
@myronmarston 1.10.0 release. 5fcfa61