vcr 0.4.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +34 -0
- data/README.md +89 -21
- data/lib/vcr.rb +12 -1
- data/lib/vcr/cassette.rb +50 -27
- data/lib/vcr/config.rb +9 -0
- data/lib/vcr/deprecations.rb +15 -42
- data/lib/vcr/extensions/net_http.rb +13 -20
- data/lib/vcr/extensions/net_http_response.rb +6 -13
- data/lib/vcr/http_stubbing_adapters/fakeweb.rb +21 -3
- data/lib/vcr/http_stubbing_adapters/webmock.rb +34 -4
- data/lib/vcr/version.rb +16 -0
- metadata +90 -108
- data/.document +0 -5
- data/.gitignore +0 -22
- data/Rakefile +0 -67
- data/VERSION +0 -1
- data/benchmarks/http_stubbing_libraries.rb +0 -59
- data/features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette1.yml +0 -43
- data/features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette2.yml +0 -47
- data/features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette3.yml +0 -85
- data/features/fixtures/vcr_cassettes/1.8.6/nested_replay_cassette.yml +0 -24
- data/features/fixtures/vcr_cassettes/1.8.6/not_the_real_response.yml +0 -43
- data/features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette1.yml +0 -43
- data/features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette2.yml +0 -47
- data/features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette3.yml +0 -85
- data/features/fixtures/vcr_cassettes/1.8.7/nested_replay_cassette.yml +0 -24
- data/features/fixtures/vcr_cassettes/1.8.7/not_the_real_response.yml +0 -43
- data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette1.yml +0 -43
- data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette2.yml +0 -63
- data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette3.yml +0 -85
- data/features/fixtures/vcr_cassettes/1.9.1/nested_replay_cassette.yml +0 -32
- data/features/fixtures/vcr_cassettes/1.9.1/not_the_real_response.yml +0 -43
- data/features/record_response.feature +0 -77
- data/features/replay_recorded_response.feature +0 -69
- data/features/step_definitions/vcr_steps.rb +0 -144
- data/features/support/env.rb +0 -64
- data/lib/vcr/extensions/fake_web.rb +0 -20
- data/lib/vcr/extensions/net_read_adapter.rb +0 -22
- data/spec/cassette_spec.rb +0 -213
- data/spec/config_spec.rb +0 -49
- data/spec/cucumber_tags_spec.rb +0 -71
- data/spec/deprecations_spec.rb +0 -67
- data/spec/extensions/net_http_response_spec.rb +0 -86
- data/spec/extensions/net_http_spec.rb +0 -72
- data/spec/extensions/net_read_adapter_spec.rb +0 -10
- data/spec/fixtures/1.8.6/0_3_1_cassette.yml +0 -29
- data/spec/fixtures/1.8.6/cassette_spec/example.yml +0 -110
- data/spec/fixtures/1.8.6/example_net_http.yml +0 -14
- data/spec/fixtures/1.8.6/example_net_http_request.yml +0 -12
- data/spec/fixtures/1.8.6/example_net_http_response.yml +0 -25
- data/spec/fixtures/1.8.6/fake_example.com_responses.yml +0 -90
- data/spec/fixtures/1.8.7/0_3_1_cassette.yml +0 -29
- data/spec/fixtures/1.8.7/cassette_spec/example.yml +0 -110
- data/spec/fixtures/1.8.7/example_net_http.yml +0 -14
- data/spec/fixtures/1.8.7/example_net_http_request.yml +0 -12
- data/spec/fixtures/1.8.7/example_net_http_response.yml +0 -25
- data/spec/fixtures/1.8.7/fake_example.com_responses.yml +0 -90
- data/spec/fixtures/1.9.1/0_3_1_cassette.yml +0 -29
- data/spec/fixtures/1.9.1/cassette_spec/example.yml +0 -110
- data/spec/fixtures/1.9.1/example_net_http.yml +0 -14
- data/spec/fixtures/1.9.1/example_net_http_request.yml +0 -12
- data/spec/fixtures/1.9.1/example_net_http_response.yml +0 -25
- data/spec/fixtures/1.9.1/fake_example.com_responses.yml +0 -90
- data/spec/http_stubbing_adapters/fakeweb_spec.rb +0 -24
- data/spec/http_stubbing_adapters/webmock_spec.rb +0 -23
- data/spec/spec.opts +0 -2
- data/spec/spec_helper.rb +0 -35
- data/spec/structs_spec.rb +0 -95
- data/spec/support/deprecated.rb +0 -18
- data/spec/support/disable_warnings.rb +0 -12
- data/spec/support/http_stubbing_adapter.rb +0 -113
- data/spec/support/temp_cassette_library_dir.rb +0 -16
- data/spec/task_runner_spec.rb +0 -59
- data/spec/vcr_spec.rb +0 -119
- data/vcr.gemspec +0 -147
@@ -1,113 +0,0 @@
|
|
1
|
-
shared_examples_for "an http stubbing adapter" do
|
2
|
-
subject { described_class }
|
3
|
-
|
4
|
-
def make_http_request(method, path, body = {})
|
5
|
-
case method
|
6
|
-
when :get
|
7
|
-
Net::HTTP.get_response(URI.parse('http://example.com' + path))
|
8
|
-
when :post
|
9
|
-
Net::HTTP.post_form(URI.parse('http://example.com' + path), body)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.test_real_http_request(http_allowed)
|
14
|
-
if http_allowed
|
15
|
-
it 'allows real http requests' do
|
16
|
-
make_http_request(:get, '/foo').body.should =~ /The requested URL \/foo was not found/
|
17
|
-
end
|
18
|
-
else
|
19
|
-
it 'does not allow real HTTP requests' do
|
20
|
-
lambda { make_http_request(:get, '/foo') }.should raise_error(StandardError, /You can use VCR to automatically record this request and replay it later/)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
[true, false].each do |http_allowed|
|
26
|
-
context "when #http_connections_allowed is set to #{http_allowed}" do
|
27
|
-
before(:each) { subject.http_connections_allowed = http_allowed }
|
28
|
-
|
29
|
-
it "returns #{http_allowed} for #http_connections_allowed?" do
|
30
|
-
subject.http_connections_allowed?.should == http_allowed
|
31
|
-
end
|
32
|
-
|
33
|
-
test_real_http_request(http_allowed)
|
34
|
-
|
35
|
-
context 'when some requests are stubbed, after setting a checkpoint' do
|
36
|
-
before(:each) do
|
37
|
-
subject.create_stubs_checkpoint(:my_checkpoint)
|
38
|
-
@recorded_interactions = YAML.load(File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', RUBY_VERSION, 'fake_example.com_responses.yml')))
|
39
|
-
subject.stub_requests(@recorded_interactions)
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'returns true from #request_stubbed? for the requests that are stubbed' do
|
43
|
-
subject.request_stubbed?(:post, 'http://example.com').should be_true
|
44
|
-
subject.request_stubbed?(:get, 'http://example.com/foo').should be_true
|
45
|
-
end
|
46
|
-
|
47
|
-
it 'returns false from #request_stubbed? for requests that are not stubbed' do
|
48
|
-
subject.request_stubbed?(:post, 'http://example.com/foo').should be_false
|
49
|
-
subject.request_stubbed?(:get, 'http://google.com').should be_false
|
50
|
-
end
|
51
|
-
|
52
|
-
it 'gets the stubbed responses when multple post requests are made to http://example.com' do
|
53
|
-
make_http_request(:post, '/', { 'id' => '7' }).body.should == 'example.com post response with id=7'
|
54
|
-
make_http_request(:post, '/', { 'id' => '3' }).body.should == 'example.com post response with id=3'
|
55
|
-
end
|
56
|
-
|
57
|
-
it 'gets the stubbed responses when requests are made to http://example.com/foo' do
|
58
|
-
make_http_request(:get, '/foo').body.should == 'example.com get response with path=foo'
|
59
|
-
end
|
60
|
-
|
61
|
-
context 'when we restore our previous check point' do
|
62
|
-
before(:each) { subject.restore_stubs_checkpoint(:my_checkpoint) }
|
63
|
-
|
64
|
-
test_real_http_request(http_allowed)
|
65
|
-
|
66
|
-
it 'returns false from #request_stubbed?' do
|
67
|
-
subject.request_stubbed?(:get, 'http://example.com/foo').should be_false
|
68
|
-
subject.request_stubbed?(:post, 'http://example.com').should be_false
|
69
|
-
subject.request_stubbed?(:get, 'http://google.com').should be_false
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
describe '#request_uri' do
|
77
|
-
it 'returns the uri for the given http request' do
|
78
|
-
net_http = Net::HTTP.new('example.com', 80)
|
79
|
-
request = Net::HTTP::Get.new('/foo/bar')
|
80
|
-
subject.request_uri(net_http, request).should == 'http://example.com:80/foo/bar'
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
describe "#with_http_connections_allowed_set_to" do
|
85
|
-
it 'sets http_connections_allowed for the duration of the block to the provided value' do
|
86
|
-
[true, false].each do |expected|
|
87
|
-
yielded_value = :not_set
|
88
|
-
subject.with_http_connections_allowed_set_to(expected) { yielded_value = subject.http_connections_allowed? }
|
89
|
-
yielded_value.should == expected
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
it 'returns the value returned by the block' do
|
94
|
-
subject.with_http_connections_allowed_set_to(true) { :return_value }.should == :return_value
|
95
|
-
end
|
96
|
-
|
97
|
-
it 'reverts http_connections_allowed when the block completes' do
|
98
|
-
[true, false].each do |expected|
|
99
|
-
subject.http_connections_allowed = expected
|
100
|
-
subject.with_http_connections_allowed_set_to(true) { }
|
101
|
-
subject.http_connections_allowed?.should == expected
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
it 'reverts http_connections_allowed when the block completes, even if an error is raised' do
|
106
|
-
[true, false].each do |expected|
|
107
|
-
subject.http_connections_allowed = expected
|
108
|
-
lambda { subject.with_http_connections_allowed_set_to(true) { raise RuntimeError } }.should raise_error(RuntimeError)
|
109
|
-
subject.http_connections_allowed?.should == expected
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module TempCassetteLibraryDir
|
2
|
-
def temp_dir(dir, options = {})
|
3
|
-
before(:each) do
|
4
|
-
@temp_dir = dir
|
5
|
-
@dir_remover = lambda { FileUtils.rm_rf(@temp_dir) if File.exist?(@temp_dir) }
|
6
|
-
@dir_remover.call
|
7
|
-
if options[:assign_to_cassette_library_dir]
|
8
|
-
VCR::Config.cassette_library_dir = @temp_dir
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
after(:each) do
|
13
|
-
@dir_remover.call
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
data/spec/task_runner_spec.rb
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'vcr/task_runner'
|
3
|
-
|
4
|
-
describe VCR::TaskRunner do
|
5
|
-
describe '.migrate_cassettes' do
|
6
|
-
temp_dir File.expand_path(File.dirname(__FILE__) + '/fixtures/task_runner')
|
7
|
-
|
8
|
-
let(:file_name) { '0_3_1_cassette.yml' }
|
9
|
-
let(:orig_file_name) { File.dirname(__FILE__) + "/fixtures/#{RUBY_VERSION}/#{file_name}" }
|
10
|
-
let(:test_dir) { @temp_dir + '/migrate_cassettes' }
|
11
|
-
|
12
|
-
def migrate
|
13
|
-
VCR::TaskRunner.migrate_cassettes(test_dir)
|
14
|
-
end
|
15
|
-
|
16
|
-
before(:each) do
|
17
|
-
FileUtils.mkdir_p(test_dir)
|
18
|
-
FileUtils.cp(orig_file_name, test_dir)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'makes a backup of the directory' do
|
22
|
-
migrate
|
23
|
-
expected_backup_dir_name = test_dir + '-backup'
|
24
|
-
expected_backup_file_name = expected_backup_dir_name + "/#{file_name}"
|
25
|
-
File.exist?(expected_backup_dir_name).should be_true
|
26
|
-
File.file?(expected_backup_file_name).should be_true
|
27
|
-
File.read(expected_backup_file_name).should == File.read(orig_file_name)
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'does not error out on yaml files with individual records' do
|
31
|
-
YAML.should_receive(:load).and_return(VCR::Request.new(:get, 'http://example.com'))
|
32
|
-
migrate
|
33
|
-
end
|
34
|
-
|
35
|
-
describe 'the structure serialized in the new 0_3_1_cassette_yml file' do
|
36
|
-
subject do
|
37
|
-
migrate
|
38
|
-
YAML.load(File.read(test_dir + "/#{file_name}")).first
|
39
|
-
end
|
40
|
-
|
41
|
-
its(:request) { should be_instance_of(VCR::Request) }
|
42
|
-
|
43
|
-
describe '.request' do
|
44
|
-
def subject; super.request; end
|
45
|
-
|
46
|
-
its(:method) { should == :post }
|
47
|
-
its(:uri) { should == 'http://example.com:80/' }
|
48
|
-
its(:body) { should be_nil }
|
49
|
-
its(:headers) { should be_nil }
|
50
|
-
end
|
51
|
-
|
52
|
-
it 'assigns the response using VCR::Response.from_net_http_response' do
|
53
|
-
VCR::Response.should respond_to(:from_net_http_response)
|
54
|
-
VCR::Response.should_receive(:from_net_http_response).with(an_instance_of(Net::HTTPOK)).and_return(:the_response)
|
55
|
-
subject.response.should == :the_response
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
data/spec/vcr_spec.rb
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
-
|
3
|
-
describe VCR do
|
4
|
-
def insert_cassette
|
5
|
-
VCR.insert_cassette(:cassette_test)
|
6
|
-
end
|
7
|
-
|
8
|
-
describe 'insert_cassette' do
|
9
|
-
it 'creates a new cassette' do
|
10
|
-
insert_cassette.should be_instance_of(VCR::Cassette)
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'takes over as the #current_cassette' do
|
14
|
-
orig_cassette = VCR.current_cassette
|
15
|
-
new_cassette = insert_cassette
|
16
|
-
new_cassette.should_not == orig_cassette
|
17
|
-
VCR.current_cassette.should == new_cassette
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
describe 'eject_cassette' do
|
22
|
-
it 'ejects the current cassette' do
|
23
|
-
cassette = insert_cassette
|
24
|
-
cassette.should_receive(:eject)
|
25
|
-
VCR.eject_cassette
|
26
|
-
end
|
27
|
-
|
28
|
-
it 'returns the ejected cassette' do
|
29
|
-
cassette = insert_cassette
|
30
|
-
VCR.eject_cassette.should == cassette
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'returns the #current_cassette to the previous one' do
|
34
|
-
cassette1, cassette2 = insert_cassette, insert_cassette
|
35
|
-
lambda { VCR.eject_cassette }.should change(VCR, :current_cassette).from(cassette2).to(cassette1)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe 'use_cassette' do
|
40
|
-
it 'inserts a new cassette' do
|
41
|
-
new_cassette = VCR::Cassette.new(:use_cassette_test)
|
42
|
-
VCR.should_receive(:insert_cassette).and_return(new_cassette)
|
43
|
-
VCR.use_cassette(:cassette_test) { }
|
44
|
-
end
|
45
|
-
|
46
|
-
it 'yields' do
|
47
|
-
yielded = false
|
48
|
-
VCR.use_cassette(:cassette_test) { yielded = true }
|
49
|
-
yielded.should be_true
|
50
|
-
end
|
51
|
-
|
52
|
-
it 'ejects the cassette' do
|
53
|
-
VCR.should_receive(:eject_cassette)
|
54
|
-
VCR.use_cassette(:cassette_test) { }
|
55
|
-
end
|
56
|
-
|
57
|
-
it 'ejects the cassette even if there is an error' do
|
58
|
-
VCR.should_receive(:eject_cassette)
|
59
|
-
lambda { VCR.use_cassette(:cassette_test) { raise StandardError } }.should raise_error
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'config' do
|
64
|
-
it 'yields the configuration object' do
|
65
|
-
yielded_object = nil
|
66
|
-
VCR.config do |obj|
|
67
|
-
yielded_object = obj
|
68
|
-
end
|
69
|
-
yielded_object.should == VCR::Config
|
70
|
-
end
|
71
|
-
|
72
|
-
it "disallows http connections" do
|
73
|
-
VCR.http_stubbing_adapter.should respond_to(:http_connections_allowed=)
|
74
|
-
VCR.http_stubbing_adapter.should_receive(:http_connections_allowed=).with(false)
|
75
|
-
VCR.config { }
|
76
|
-
end
|
77
|
-
|
78
|
-
it "checks the adapted library's version to make sure it's compatible with VCR" do
|
79
|
-
VCR.http_stubbing_adapter.should respond_to(:check_version!)
|
80
|
-
VCR.http_stubbing_adapter.should_receive(:check_version!)
|
81
|
-
VCR.config { }
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
describe 'cucumber_tags' do
|
86
|
-
it 'yields a cucumber tags object' do
|
87
|
-
yielded_object = nil
|
88
|
-
VCR.cucumber_tags do |obj|
|
89
|
-
yielded_object = obj
|
90
|
-
end
|
91
|
-
yielded_object.should be_instance_of(VCR::CucumberTags)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe '#http_stubbing_adapter' do
|
96
|
-
subject { VCR.http_stubbing_adapter }
|
97
|
-
before(:each) do
|
98
|
-
VCR.instance_variable_set(:@http_stubbing_adapter, nil)
|
99
|
-
end
|
100
|
-
|
101
|
-
{
|
102
|
-
:fakeweb => VCR::HttpStubbingAdapters::FakeWeb,
|
103
|
-
:webmock => VCR::HttpStubbingAdapters::WebMock
|
104
|
-
}.each do |setting, adapter|
|
105
|
-
context "when config http_stubbing_library = :#{setting.to_s}" do
|
106
|
-
before(:each) { VCR::Config.http_stubbing_library = setting }
|
107
|
-
|
108
|
-
it "returns #{adapter}" do
|
109
|
-
subject.should == adapter
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
it 'raises an error when library is not set' do
|
115
|
-
VCR::Config.http_stubbing_library = nil
|
116
|
-
lambda { subject }.should raise_error(/The http stubbing library is not configured correctly/)
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
data/vcr.gemspec
DELETED
@@ -1,147 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{vcr}
|
8
|
-
s.version = "0.4.1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Myron Marston"]
|
12
|
-
s.date = %q{2010-05-11}
|
13
|
-
s.description = %q{VCR provides helpers to record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. It works with any ruby testing framework, and provides built-in support for cucumber.}
|
14
|
-
s.email = %q{myron.marston@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".gitignore",
|
22
|
-
"CHANGELOG.md",
|
23
|
-
"LICENSE",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"benchmarks/http_stubbing_libraries.rb",
|
28
|
-
"features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette1.yml",
|
29
|
-
"features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette2.yml",
|
30
|
-
"features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette3.yml",
|
31
|
-
"features/fixtures/vcr_cassettes/1.8.6/nested_replay_cassette.yml",
|
32
|
-
"features/fixtures/vcr_cassettes/1.8.6/not_the_real_response.yml",
|
33
|
-
"features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette1.yml",
|
34
|
-
"features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette2.yml",
|
35
|
-
"features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette3.yml",
|
36
|
-
"features/fixtures/vcr_cassettes/1.8.7/nested_replay_cassette.yml",
|
37
|
-
"features/fixtures/vcr_cassettes/1.8.7/not_the_real_response.yml",
|
38
|
-
"features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette1.yml",
|
39
|
-
"features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette2.yml",
|
40
|
-
"features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette3.yml",
|
41
|
-
"features/fixtures/vcr_cassettes/1.9.1/nested_replay_cassette.yml",
|
42
|
-
"features/fixtures/vcr_cassettes/1.9.1/not_the_real_response.yml",
|
43
|
-
"features/record_response.feature",
|
44
|
-
"features/replay_recorded_response.feature",
|
45
|
-
"features/step_definitions/vcr_steps.rb",
|
46
|
-
"features/support/env.rb",
|
47
|
-
"lib/vcr.rb",
|
48
|
-
"lib/vcr/cassette.rb",
|
49
|
-
"lib/vcr/config.rb",
|
50
|
-
"lib/vcr/cucumber_tags.rb",
|
51
|
-
"lib/vcr/deprecations.rb",
|
52
|
-
"lib/vcr/extensions/fake_web.rb",
|
53
|
-
"lib/vcr/extensions/net_http.rb",
|
54
|
-
"lib/vcr/extensions/net_http_response.rb",
|
55
|
-
"lib/vcr/extensions/net_read_adapter.rb",
|
56
|
-
"lib/vcr/http_stubbing_adapters/base.rb",
|
57
|
-
"lib/vcr/http_stubbing_adapters/fakeweb.rb",
|
58
|
-
"lib/vcr/http_stubbing_adapters/webmock.rb",
|
59
|
-
"lib/vcr/structs.rb",
|
60
|
-
"lib/vcr/task_runner.rb",
|
61
|
-
"lib/vcr/tasks/vcr.rake",
|
62
|
-
"spec/cassette_spec.rb",
|
63
|
-
"spec/config_spec.rb",
|
64
|
-
"spec/cucumber_tags_spec.rb",
|
65
|
-
"spec/deprecations_spec.rb",
|
66
|
-
"spec/extensions/net_http_response_spec.rb",
|
67
|
-
"spec/extensions/net_http_spec.rb",
|
68
|
-
"spec/extensions/net_read_adapter_spec.rb",
|
69
|
-
"spec/fixtures/1.8.6/0_3_1_cassette.yml",
|
70
|
-
"spec/fixtures/1.8.6/cassette_spec/example.yml",
|
71
|
-
"spec/fixtures/1.8.6/example_net_http.yml",
|
72
|
-
"spec/fixtures/1.8.6/example_net_http_request.yml",
|
73
|
-
"spec/fixtures/1.8.6/example_net_http_response.yml",
|
74
|
-
"spec/fixtures/1.8.6/fake_example.com_responses.yml",
|
75
|
-
"spec/fixtures/1.8.7/0_3_1_cassette.yml",
|
76
|
-
"spec/fixtures/1.8.7/cassette_spec/example.yml",
|
77
|
-
"spec/fixtures/1.8.7/example_net_http.yml",
|
78
|
-
"spec/fixtures/1.8.7/example_net_http_request.yml",
|
79
|
-
"spec/fixtures/1.8.7/example_net_http_response.yml",
|
80
|
-
"spec/fixtures/1.8.7/fake_example.com_responses.yml",
|
81
|
-
"spec/fixtures/1.9.1/0_3_1_cassette.yml",
|
82
|
-
"spec/fixtures/1.9.1/cassette_spec/example.yml",
|
83
|
-
"spec/fixtures/1.9.1/example_net_http.yml",
|
84
|
-
"spec/fixtures/1.9.1/example_net_http_request.yml",
|
85
|
-
"spec/fixtures/1.9.1/example_net_http_response.yml",
|
86
|
-
"spec/fixtures/1.9.1/fake_example.com_responses.yml",
|
87
|
-
"spec/http_stubbing_adapters/fakeweb_spec.rb",
|
88
|
-
"spec/http_stubbing_adapters/webmock_spec.rb",
|
89
|
-
"spec/spec.opts",
|
90
|
-
"spec/spec_helper.rb",
|
91
|
-
"spec/structs_spec.rb",
|
92
|
-
"spec/support/deprecated.rb",
|
93
|
-
"spec/support/disable_warnings.rb",
|
94
|
-
"spec/support/http_stubbing_adapter.rb",
|
95
|
-
"spec/support/temp_cassette_library_dir.rb",
|
96
|
-
"spec/task_runner_spec.rb",
|
97
|
-
"spec/vcr_spec.rb",
|
98
|
-
"vcr.gemspec"
|
99
|
-
]
|
100
|
-
s.homepage = %q{http://github.com/myronmarston/vcr}
|
101
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
102
|
-
s.require_paths = ["lib"]
|
103
|
-
s.rubygems_version = %q{1.3.6}
|
104
|
-
s.summary = %q{Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.}
|
105
|
-
s.test_files = [
|
106
|
-
"spec/cassette_spec.rb",
|
107
|
-
"spec/config_spec.rb",
|
108
|
-
"spec/cucumber_tags_spec.rb",
|
109
|
-
"spec/deprecations_spec.rb",
|
110
|
-
"spec/extensions/net_http_response_spec.rb",
|
111
|
-
"spec/extensions/net_http_spec.rb",
|
112
|
-
"spec/extensions/net_read_adapter_spec.rb",
|
113
|
-
"spec/http_stubbing_adapters/fakeweb_spec.rb",
|
114
|
-
"spec/http_stubbing_adapters/webmock_spec.rb",
|
115
|
-
"spec/spec_helper.rb",
|
116
|
-
"spec/structs_spec.rb",
|
117
|
-
"spec/support/deprecated.rb",
|
118
|
-
"spec/support/disable_warnings.rb",
|
119
|
-
"spec/support/http_stubbing_adapter.rb",
|
120
|
-
"spec/support/temp_cassette_library_dir.rb",
|
121
|
-
"spec/task_runner_spec.rb",
|
122
|
-
"spec/vcr_spec.rb"
|
123
|
-
]
|
124
|
-
|
125
|
-
if s.respond_to? :specification_version then
|
126
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
127
|
-
s.specification_version = 3
|
128
|
-
|
129
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
130
|
-
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
131
|
-
s.add_development_dependency(%q<cucumber>, [">= 0.6.1"])
|
132
|
-
s.add_development_dependency(%q<fakeweb>, [">= 1.2.8"])
|
133
|
-
s.add_development_dependency(%q<webmock>, [">= 1.1.0"])
|
134
|
-
else
|
135
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
136
|
-
s.add_dependency(%q<cucumber>, [">= 0.6.1"])
|
137
|
-
s.add_dependency(%q<fakeweb>, [">= 1.2.8"])
|
138
|
-
s.add_dependency(%q<webmock>, [">= 1.1.0"])
|
139
|
-
end
|
140
|
-
else
|
141
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
142
|
-
s.add_dependency(%q<cucumber>, [">= 0.6.1"])
|
143
|
-
s.add_dependency(%q<fakeweb>, [">= 1.2.8"])
|
144
|
-
s.add_dependency(%q<webmock>, [">= 1.1.0"])
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|