vcr 0.4.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -5,32 +5,25 @@ module Net
|
|
5
5
|
def request_with_vcr(request, body = nil, &block)
|
6
6
|
uri = URI.parse(VCR.http_stubbing_adapter.request_uri(self, request))
|
7
7
|
|
8
|
-
if
|
8
|
+
if VCR::LOCALHOST_ALIASES.include?(uri.host) && VCR.http_stubbing_adapter.ignore_localhost?
|
9
9
|
VCR.http_stubbing_adapter.with_http_connections_allowed_set_to(true) do
|
10
|
-
request_without_vcr(request, body, &block)
|
10
|
+
return request_without_vcr(request, body, &block)
|
11
11
|
end
|
12
|
-
else
|
13
|
-
response = request_without_vcr(request, body)
|
14
|
-
__store_response_with_vcr__(response, request) if started?
|
15
|
-
yield response if block_given?
|
16
|
-
response
|
17
12
|
end
|
18
|
-
end
|
19
|
-
alias_method :request_without_vcr, :request
|
20
|
-
alias_method :request, :request_with_vcr
|
21
13
|
|
22
|
-
|
14
|
+
response = request_without_vcr(request, body)
|
23
15
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
method = request.method.downcase.to_sym
|
16
|
+
if started? && !VCR.http_stubbing_adapter.request_stubbed?(request.method.downcase.to_sym, uri)
|
17
|
+
http_interaction = VCR::HTTPInteraction.from_net_http_objects(self, request, response)
|
18
|
+
response.extend VCR::Net::HTTPResponse # "unwind" the response
|
28
19
|
|
29
|
-
|
30
|
-
cassette.record_http_interaction(VCR::HTTPInteraction.from_net_http_objects(self, request, response))
|
31
|
-
response.extend VCR::Net::HTTPResponse
|
32
|
-
end
|
20
|
+
VCR.record_http_interaction(http_interaction)
|
33
21
|
end
|
22
|
+
|
23
|
+
yield response if block_given?
|
24
|
+
response
|
34
25
|
end
|
26
|
+
alias_method :request_without_vcr, :request
|
27
|
+
alias_method :request, :request_with_vcr
|
35
28
|
end
|
36
|
-
end
|
29
|
+
end
|
@@ -13,35 +13,28 @@ module VCR
|
|
13
13
|
module Net
|
14
14
|
module HTTPResponse
|
15
15
|
def self.extended(object)
|
16
|
-
|
17
|
-
object.instance_variable_set(:@__orig_body__,
|
18
|
-
case body_object
|
19
|
-
when String then body_object
|
20
|
-
when ::Net::ReadAdapter then body_object.instance_variable_get(:@__body_for_vcr__)
|
21
|
-
else raise ArgumentError.new("Unexpected body object: #{body_object}")
|
22
|
-
end
|
23
|
-
)
|
16
|
+
object.instance_variable_set(:@__orig_body_for_vcr__, object.instance_variable_get(:@body))
|
24
17
|
end
|
25
18
|
|
26
19
|
def read_body(dest = nil, &block)
|
27
|
-
if @
|
20
|
+
if @__orig_body_for_vcr__
|
28
21
|
if dest && block
|
29
22
|
raise ArgumentError.new("both arg and block given for HTTP method")
|
30
23
|
elsif dest
|
31
|
-
dest << @
|
24
|
+
dest << @__orig_body_for_vcr__
|
32
25
|
elsif block
|
33
26
|
@body = ::Net::ReadAdapter.new(block)
|
34
|
-
@body << @
|
27
|
+
@body << @__orig_body_for_vcr__
|
35
28
|
@body
|
36
29
|
else
|
37
|
-
@body = @
|
30
|
+
@body = @__orig_body_for_vcr__
|
38
31
|
end
|
39
32
|
else
|
40
33
|
super
|
41
34
|
end
|
42
35
|
ensure
|
43
36
|
# allow subsequent calls to #read_body to proceed as normal, without our hack...
|
44
|
-
@
|
37
|
+
@__orig_body_for_vcr__ = nil
|
45
38
|
end
|
46
39
|
end
|
47
40
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'fakeweb'
|
2
2
|
require 'vcr/extensions/net_http'
|
3
3
|
|
4
4
|
module VCR
|
@@ -44,7 +44,25 @@ module VCR
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def request_uri(net_http, request)
|
47
|
-
|
47
|
+
# Copied from: http://github.com/chrisk/fakeweb/blob/fakeweb-1.2.8/lib/fake_web/ext/net_http.rb#L39-52
|
48
|
+
protocol = net_http.use_ssl? ? "https" : "http"
|
49
|
+
|
50
|
+
path = request.path
|
51
|
+
path = URI.parse(request.path).request_uri if request.path =~ /^http/
|
52
|
+
|
53
|
+
if request["authorization"] =~ /^Basic /
|
54
|
+
userinfo = FakeWeb::Utility.decode_userinfo_from_header(request["authorization"])
|
55
|
+
userinfo = FakeWeb::Utility.encode_unsafe_chars_in_userinfo(userinfo) + "@"
|
56
|
+
else
|
57
|
+
userinfo = ""
|
58
|
+
end
|
59
|
+
|
60
|
+
"#{protocol}://#{userinfo}#{net_http.address}:#{net_http.port}#{path}"
|
61
|
+
end
|
62
|
+
|
63
|
+
attr_writer :ignore_localhost
|
64
|
+
def ignore_localhost?
|
65
|
+
@ignore_localhost
|
48
66
|
end
|
49
67
|
|
50
68
|
private
|
@@ -68,7 +86,7 @@ if defined?(FakeWeb::NetConnectNotAllowedError)
|
|
68
86
|
module FakeWeb
|
69
87
|
class NetConnectNotAllowedError
|
70
88
|
def message
|
71
|
-
super +
|
89
|
+
super + ". You can use VCR to automatically record this request and replay it later. For more details, see the VCR README at: http://github.com/myronmarston/vcr/tree/v#{VCR.version}"
|
72
90
|
end
|
73
91
|
end
|
74
92
|
end
|
@@ -5,7 +5,7 @@ module VCR
|
|
5
5
|
module HttpStubbingAdapters
|
6
6
|
class WebMock < Base
|
7
7
|
class << self
|
8
|
-
VERSION_REQUIREMENT = '1.
|
8
|
+
VERSION_REQUIREMENT = '1.3.0'
|
9
9
|
|
10
10
|
def check_version!
|
11
11
|
unless meets_version_requirement?(::WebMock.version, VERSION_REQUIREMENT)
|
@@ -44,13 +44,21 @@ module VCR
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def request_stubbed?(method, uri)
|
47
|
-
!!::WebMock.registered_request?(::WebMock::RequestSignature.new(method, uri))
|
47
|
+
!!::WebMock.registered_request?(::WebMock::RequestSignature.new(method, uri.to_s))
|
48
48
|
end
|
49
49
|
|
50
50
|
def request_uri(net_http, request)
|
51
51
|
::WebMock::NetHTTPUtility.request_signature_from_request(net_http, request).uri.to_s
|
52
52
|
end
|
53
53
|
|
54
|
+
def ignore_localhost=(value)
|
55
|
+
::WebMock::Config.instance.allow_localhost = value
|
56
|
+
end
|
57
|
+
|
58
|
+
def ignore_localhost?
|
59
|
+
::WebMock::Config.instance.allow_localhost
|
60
|
+
end
|
61
|
+
|
54
62
|
private
|
55
63
|
|
56
64
|
def response_hash(response)
|
@@ -69,12 +77,34 @@ module VCR
|
|
69
77
|
end
|
70
78
|
end
|
71
79
|
|
80
|
+
WebMock.after_request(:except => [:net_http], :real_requests_only => true) do |request, response|
|
81
|
+
http_interaction = VCR::HTTPInteraction.new(
|
82
|
+
VCR::Request.new(
|
83
|
+
request.method,
|
84
|
+
request.uri.to_s,
|
85
|
+
request.body,
|
86
|
+
request.headers
|
87
|
+
),
|
88
|
+
VCR::Response.new(
|
89
|
+
VCR::ResponseStatus.new(
|
90
|
+
response.status.first,
|
91
|
+
response.status.last
|
92
|
+
),
|
93
|
+
response.headers,
|
94
|
+
response.body,
|
95
|
+
'1.1'
|
96
|
+
)
|
97
|
+
)
|
98
|
+
|
99
|
+
VCR.record_http_interaction(http_interaction)
|
100
|
+
end
|
101
|
+
|
72
102
|
if defined?(WebMock::NetConnectNotAllowedError)
|
73
103
|
module WebMock
|
74
104
|
class NetConnectNotAllowedError
|
75
105
|
def message
|
76
|
-
super +
|
106
|
+
super + ". You can use VCR to automatically record this request and replay it later. For more details, see the VCR README at: http://github.com/myronmarston/vcr/tree/v#{VCR.version}"
|
77
107
|
end
|
78
108
|
end
|
79
109
|
end
|
80
|
-
end
|
110
|
+
end
|
data/lib/vcr/version.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
module VCR
|
2
|
+
extend self
|
3
|
+
|
4
|
+
def version
|
5
|
+
@version ||= begin
|
6
|
+
string = [1, 0, 0].join('.')
|
7
|
+
|
8
|
+
def string.parts; VCR.version.split('.').map { |p| p.to_i }; end
|
9
|
+
def string.major; parts[0]; end
|
10
|
+
def string.minor; parts[1]; end
|
11
|
+
def string.patch; parts[2]; end
|
12
|
+
|
13
|
+
string
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -3,10 +3,10 @@ name: vcr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
-
- 0
|
7
|
-
- 4
|
8
6
|
- 1
|
9
|
-
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Myron Marston
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-06-22 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -22,13 +22,13 @@ dependencies:
|
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
segments:
|
28
28
|
- 1
|
29
|
-
-
|
30
|
-
-
|
31
|
-
version: 1.
|
29
|
+
- 3
|
30
|
+
- 0
|
31
|
+
version: 1.3.0
|
32
32
|
type: :development
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
@@ -41,8 +41,8 @@ dependencies:
|
|
41
41
|
segments:
|
42
42
|
- 0
|
43
43
|
- 6
|
44
|
-
-
|
45
|
-
version: 0.6.
|
44
|
+
- 4
|
45
|
+
version: 0.6.4
|
46
46
|
type: :development
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
prerelease: false
|
51
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
segments:
|
56
56
|
- 1
|
@@ -64,111 +64,105 @@ dependencies:
|
|
64
64
|
prerelease: false
|
65
65
|
requirement: &id004 !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
segments:
|
70
70
|
- 1
|
71
|
-
-
|
71
|
+
- 3
|
72
72
|
- 0
|
73
|
-
version: 1.
|
73
|
+
version: 1.3.0
|
74
74
|
type: :development
|
75
75
|
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: httpclient
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 2
|
85
|
+
- 1
|
86
|
+
- 5
|
87
|
+
- 2
|
88
|
+
version: 2.1.5.2
|
89
|
+
type: :development
|
90
|
+
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: patron
|
93
|
+
prerelease: false
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
- 4
|
101
|
+
- 6
|
102
|
+
version: 0.4.6
|
103
|
+
type: :development
|
104
|
+
version_requirements: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: em-http-request
|
107
|
+
prerelease: false
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ~>
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
segments:
|
113
|
+
- 0
|
114
|
+
- 2
|
115
|
+
- 7
|
116
|
+
version: 0.2.7
|
117
|
+
type: :development
|
118
|
+
version_requirements: *id007
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: capybara
|
121
|
+
prerelease: false
|
122
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ~>
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
- 3
|
129
|
+
- 8
|
130
|
+
version: 0.3.8
|
131
|
+
type: :development
|
132
|
+
version_requirements: *id008
|
76
133
|
description: 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.
|
77
134
|
email: myron.marston@gmail.com
|
78
135
|
executables: []
|
79
136
|
|
80
137
|
extensions: []
|
81
138
|
|
82
|
-
extra_rdoc_files:
|
83
|
-
|
84
|
-
- README.md
|
139
|
+
extra_rdoc_files: []
|
140
|
+
|
85
141
|
files:
|
86
|
-
- .document
|
87
|
-
- .gitignore
|
88
|
-
- CHANGELOG.md
|
89
|
-
- LICENSE
|
90
|
-
- README.md
|
91
|
-
- Rakefile
|
92
|
-
- VERSION
|
93
|
-
- benchmarks/http_stubbing_libraries.rb
|
94
|
-
- features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette1.yml
|
95
|
-
- features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette2.yml
|
96
|
-
- features/fixtures/vcr_cassettes/1.8.6/cucumber_tags/replay_cassette3.yml
|
97
|
-
- features/fixtures/vcr_cassettes/1.8.6/nested_replay_cassette.yml
|
98
|
-
- features/fixtures/vcr_cassettes/1.8.6/not_the_real_response.yml
|
99
|
-
- features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette1.yml
|
100
|
-
- features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette2.yml
|
101
|
-
- features/fixtures/vcr_cassettes/1.8.7/cucumber_tags/replay_cassette3.yml
|
102
|
-
- features/fixtures/vcr_cassettes/1.8.7/nested_replay_cassette.yml
|
103
|
-
- features/fixtures/vcr_cassettes/1.8.7/not_the_real_response.yml
|
104
|
-
- features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette1.yml
|
105
|
-
- features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette2.yml
|
106
|
-
- features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette3.yml
|
107
|
-
- features/fixtures/vcr_cassettes/1.9.1/nested_replay_cassette.yml
|
108
|
-
- features/fixtures/vcr_cassettes/1.9.1/not_the_real_response.yml
|
109
|
-
- features/record_response.feature
|
110
|
-
- features/replay_recorded_response.feature
|
111
|
-
- features/step_definitions/vcr_steps.rb
|
112
|
-
- features/support/env.rb
|
113
|
-
- lib/vcr.rb
|
114
142
|
- lib/vcr/cassette.rb
|
115
143
|
- lib/vcr/config.rb
|
116
144
|
- lib/vcr/cucumber_tags.rb
|
117
145
|
- lib/vcr/deprecations.rb
|
118
|
-
- lib/vcr/extensions/fake_web.rb
|
119
146
|
- lib/vcr/extensions/net_http.rb
|
120
147
|
- lib/vcr/extensions/net_http_response.rb
|
121
|
-
- lib/vcr/extensions/net_read_adapter.rb
|
122
148
|
- lib/vcr/http_stubbing_adapters/base.rb
|
123
149
|
- lib/vcr/http_stubbing_adapters/fakeweb.rb
|
124
150
|
- lib/vcr/http_stubbing_adapters/webmock.rb
|
125
151
|
- lib/vcr/structs.rb
|
126
152
|
- lib/vcr/task_runner.rb
|
127
153
|
- lib/vcr/tasks/vcr.rake
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
- spec/extensions/net_http_spec.rb
|
134
|
-
- spec/extensions/net_read_adapter_spec.rb
|
135
|
-
- spec/fixtures/1.8.6/0_3_1_cassette.yml
|
136
|
-
- spec/fixtures/1.8.6/cassette_spec/example.yml
|
137
|
-
- spec/fixtures/1.8.6/example_net_http.yml
|
138
|
-
- spec/fixtures/1.8.6/example_net_http_request.yml
|
139
|
-
- spec/fixtures/1.8.6/example_net_http_response.yml
|
140
|
-
- spec/fixtures/1.8.6/fake_example.com_responses.yml
|
141
|
-
- spec/fixtures/1.8.7/0_3_1_cassette.yml
|
142
|
-
- spec/fixtures/1.8.7/cassette_spec/example.yml
|
143
|
-
- spec/fixtures/1.8.7/example_net_http.yml
|
144
|
-
- spec/fixtures/1.8.7/example_net_http_request.yml
|
145
|
-
- spec/fixtures/1.8.7/example_net_http_response.yml
|
146
|
-
- spec/fixtures/1.8.7/fake_example.com_responses.yml
|
147
|
-
- spec/fixtures/1.9.1/0_3_1_cassette.yml
|
148
|
-
- spec/fixtures/1.9.1/cassette_spec/example.yml
|
149
|
-
- spec/fixtures/1.9.1/example_net_http.yml
|
150
|
-
- spec/fixtures/1.9.1/example_net_http_request.yml
|
151
|
-
- spec/fixtures/1.9.1/example_net_http_response.yml
|
152
|
-
- spec/fixtures/1.9.1/fake_example.com_responses.yml
|
153
|
-
- spec/http_stubbing_adapters/fakeweb_spec.rb
|
154
|
-
- spec/http_stubbing_adapters/webmock_spec.rb
|
155
|
-
- spec/spec.opts
|
156
|
-
- spec/spec_helper.rb
|
157
|
-
- spec/structs_spec.rb
|
158
|
-
- spec/support/deprecated.rb
|
159
|
-
- spec/support/disable_warnings.rb
|
160
|
-
- spec/support/http_stubbing_adapter.rb
|
161
|
-
- spec/support/temp_cassette_library_dir.rb
|
162
|
-
- spec/task_runner_spec.rb
|
163
|
-
- spec/vcr_spec.rb
|
164
|
-
- vcr.gemspec
|
154
|
+
- lib/vcr/version.rb
|
155
|
+
- lib/vcr.rb
|
156
|
+
- LICENSE
|
157
|
+
- README.md
|
158
|
+
- CHANGELOG.md
|
165
159
|
has_rdoc: true
|
166
160
|
homepage: http://github.com/myronmarston/vcr
|
167
161
|
licenses: []
|
168
162
|
|
169
163
|
post_install_message:
|
170
|
-
rdoc_options:
|
171
|
-
|
164
|
+
rdoc_options: []
|
165
|
+
|
172
166
|
require_paths:
|
173
167
|
- lib
|
174
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -176,15 +170,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
170
|
- - ">="
|
177
171
|
- !ruby/object:Gem::Version
|
178
172
|
segments:
|
179
|
-
-
|
180
|
-
|
173
|
+
- 1
|
174
|
+
- 8
|
175
|
+
- 6
|
176
|
+
version: 1.8.6
|
181
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
178
|
requirements:
|
183
179
|
- - ">="
|
184
180
|
- !ruby/object:Gem::Version
|
185
181
|
segments:
|
186
|
-
-
|
187
|
-
|
182
|
+
- 1
|
183
|
+
- 3
|
184
|
+
- 5
|
185
|
+
version: 1.3.5
|
188
186
|
requirements: []
|
189
187
|
|
190
188
|
rubyforge_project:
|
@@ -192,21 +190,5 @@ rubygems_version: 1.3.6
|
|
192
190
|
signing_key:
|
193
191
|
specification_version: 3
|
194
192
|
summary: Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
|
195
|
-
test_files:
|
196
|
-
|
197
|
-
- spec/config_spec.rb
|
198
|
-
- spec/cucumber_tags_spec.rb
|
199
|
-
- spec/deprecations_spec.rb
|
200
|
-
- spec/extensions/net_http_response_spec.rb
|
201
|
-
- spec/extensions/net_http_spec.rb
|
202
|
-
- spec/extensions/net_read_adapter_spec.rb
|
203
|
-
- spec/http_stubbing_adapters/fakeweb_spec.rb
|
204
|
-
- spec/http_stubbing_adapters/webmock_spec.rb
|
205
|
-
- spec/spec_helper.rb
|
206
|
-
- spec/structs_spec.rb
|
207
|
-
- spec/support/deprecated.rb
|
208
|
-
- spec/support/disable_warnings.rb
|
209
|
-
- spec/support/http_stubbing_adapter.rb
|
210
|
-
- spec/support/temp_cassette_library_dir.rb
|
211
|
-
- spec/task_runner_spec.rb
|
212
|
-
- spec/vcr_spec.rb
|
193
|
+
test_files: []
|
194
|
+
|