vcr 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +0 -3
- data/CHANGELOG.md +32 -3
- data/Gemfile +33 -0
- data/Gemfile.lock +99 -119
- data/README.md +19 -7
- data/Rakefile +5 -9
- data/benchmarks/null_logging.rb +62 -0
- data/features/.nav +0 -1
- data/features/about_these_examples.md +1 -2
- data/features/cassettes/allow_unused_http_interactions.feature +15 -1
- data/features/cassettes/decompress.feature +6 -2
- data/features/cassettes/format.feature +20 -12
- data/features/cassettes/freezing_time.feature +68 -0
- data/features/configuration/cassette_library_dir.feature +5 -0
- data/features/configuration/preserve_exact_body_bytes.feature +5 -0
- data/features/configuration/uri_parser.feature +2 -4
- data/features/http_libraries/net_http.feature +1 -1
- data/features/request_matching/headers.feature +0 -1
- data/features/step_definitions/cli_steps.rb +1 -4
- data/features/test_frameworks/cucumber.feature +59 -0
- data/features/test_frameworks/rspec_metadata.feature +59 -1
- data/gemfiles/typhoeus_old.gemfile +19 -0
- data/gemfiles/typhoeus_old.gemfile.lock +84 -86
- data/lib/vcr.rb +12 -3
- data/lib/vcr/cassette.rb +32 -11
- data/lib/vcr/cassette/http_interaction_list.rb +3 -2
- data/lib/vcr/cassette/migrator.rb +1 -0
- data/lib/vcr/cassette/serializers/json.rb +1 -1
- data/lib/vcr/configuration.rb +17 -9
- data/lib/vcr/library_hooks/typhoeus.rb +3 -2
- data/lib/vcr/library_hooks/webmock.rb +1 -1
- data/lib/vcr/middleware/excon.rb +13 -1
- data/lib/vcr/middleware/faraday.rb +1 -0
- data/lib/vcr/request_handler.rb +1 -1
- data/lib/vcr/structs.rb +19 -4
- data/lib/vcr/test_frameworks/cucumber.rb +2 -2
- data/lib/vcr/test_frameworks/rspec.rb +10 -2
- data/lib/vcr/util/logger.rb +41 -7
- data/lib/vcr/version.rb +1 -1
- data/script/ci.sh +8 -1
- data/spec/acceptance/threading_spec.rb +6 -0
- data/spec/capture_warnings.rb +9 -1
- data/spec/spec_helper.rb +6 -2
- data/spec/support/configuration_stubbing.rb +8 -0
- data/spec/support/http_library_adapters.rb +1 -1
- data/spec/support/limited_uri.rb +1 -0
- data/spec/support/shared_example_groups/excon.rb +23 -1
- data/spec/support/shared_example_groups/hook_into_http_library.rb +12 -12
- data/spec/support/shared_example_groups/request_hooks.rb +1 -1
- data/spec/support/sinatra_app.rb +9 -0
- data/spec/support/vcr_localhost_server.rb +4 -25
- data/spec/support/vcr_stub_helpers.rb +1 -1
- data/spec/vcr/cassette/http_interaction_list_spec.rb +41 -14
- data/spec/vcr/cassette/migrator_spec.rb +1 -1
- data/spec/vcr/cassette/persisters_spec.rb +2 -2
- data/spec/vcr/cassette/serializers_spec.rb +13 -4
- data/spec/vcr/cassette_spec.rb +107 -58
- data/spec/vcr/configuration_spec.rb +23 -23
- data/spec/vcr/deprecations_spec.rb +9 -9
- data/spec/vcr/errors_spec.rb +6 -6
- data/spec/vcr/library_hooks/excon_spec.rb +15 -10
- data/spec/vcr/library_hooks/fakeweb_spec.rb +8 -8
- data/spec/vcr/library_hooks/faraday_spec.rb +1 -1
- data/spec/vcr/library_hooks/typhoeus_0.4_spec.rb +2 -2
- data/spec/vcr/library_hooks/typhoeus_spec.rb +68 -9
- data/spec/vcr/library_hooks/webmock_spec.rb +6 -10
- data/spec/vcr/middleware/faraday_spec.rb +33 -5
- data/spec/vcr/middleware/rack_spec.rb +2 -2
- data/spec/vcr/request_matcher_registry_spec.rb +11 -6
- data/spec/vcr/structs_spec.rb +114 -47
- data/spec/vcr/test_frameworks/cucumber_spec.rb +4 -4
- data/spec/vcr/util/hooks_spec.rb +2 -2
- data/spec/vcr/util/internet_connection_spec.rb +3 -3
- data/spec/vcr/util/version_checker_spec.rb +4 -4
- data/spec/vcr_spec.rb +22 -16
- data/vcr.gemspec +2 -31
- metadata +9 -328
- data/features/test_frameworks/shoulda.feature +0 -64
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWJkMzRlZWY1OTM1ZDQ3NGJiODIyZTJjMjE3YjljNGMwMDIzODdlOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDE3NDU2NTFjYTJkNjY0ZDg4MGI3ZmQzZWE1OGIzN2QxOWI3NDc2ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjIyYjhmNDNjN2ZlMjBhZTY3YWM5YWFkNjZkZWFhN2NmYWQyZTM1Y2M0NDNk
|
10
|
+
MGY3NTFlMjkzYzEyZDY5ODcwOTNjNzgzMDFlYzE3YjA4OWVjYzc5YTliODk2
|
11
|
+
ZmVkMTdhZmQ3YTcwNDYyOGU4YzJjNWNkZWQ0MTc0MzRlNzk2OGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTJmNjYyMDczMWJkOWFkODRjNmEwOTRjNmMyNzNiZDZmZDIyODBmYmNmZTdi
|
14
|
+
Y2JjMTkzMDMwZDg2NWVjNjkyMzIyZGVjMmI2MmNmMDlhMWJjN2I2YTAzYzEz
|
15
|
+
MjM1OTc0OWYyMmY3ODExZDQ0MDFiNWE4ZWQwM2RkZWM0MjM0OGY=
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,37 @@
|
|
1
|
-
##
|
1
|
+
## 2.6.0 (September 25, 2013)
|
2
2
|
|
3
|
-
[Full Changelog](http://github.com/vcr/vcr/compare/v2.5.0...
|
3
|
+
[Full Changelog](http://github.com/vcr/vcr/compare/v2.5.0...v2.6.0)
|
4
4
|
|
5
|
-
|
5
|
+
Enhancements:
|
6
|
+
|
7
|
+
* Add `VCR::Cassette#originally_recorded_at` for use when freezing
|
8
|
+
time based on when the cassette was recorded. (Myron Marston)
|
9
|
+
* Improve the `:allow_unused_http_interactions => false` option
|
10
|
+
so that it does not raise an error when there are unused interactions
|
11
|
+
due to the test failing on its own; otherwise, it could raise
|
12
|
+
an error and silence the original test failure. (Myron Marston)
|
13
|
+
* Improve perf when no logger is used by having it short-circuit
|
14
|
+
and not bother formatting a logger message that won't be
|
15
|
+
printed, anyway (Luan Santos and Matt Parker).
|
16
|
+
|
17
|
+
Bug Fixes:
|
18
|
+
|
19
|
+
* Fix confusing errors that could result when using the YAML serializer
|
20
|
+
if the client code added some state (e.g. via an extension module)
|
21
|
+
onto a request or response body. (Myron Marston)
|
22
|
+
* Ensure response body is always recorded when hooking into `:excon`,
|
23
|
+
even when using a `:response_block` and an unexpected status is
|
24
|
+
returned. Excon doesn't invoke the `:response_block` in this case,
|
25
|
+
requiring special handling. (James Bence)
|
26
|
+
* Explicitly support the latest WebMock (1.13). (Ron Smith)
|
27
|
+
* Explicitly support the latest Excon (0.26). (Myron Marston)
|
28
|
+
* Fix detection of encoding errors to handle `ArgumentError` that
|
29
|
+
is raised by recent versions of `MultiJson`. (Myron Marston)
|
30
|
+
* Fix Excon adapter so that it allows VCR to play nicely with
|
31
|
+
manual Excon stubs (using Excon's `Excon.stub` API). (Myron Marston)
|
32
|
+
* Fix Typhoeus adapter so that it sets `effective_url` properly
|
33
|
+
when the `:followlocation` option is used and a redirect is
|
34
|
+
followed. (Myron Marston)
|
6
35
|
|
7
36
|
## 2.5.0 (May 18, 2013)
|
8
37
|
|
data/Gemfile
CHANGED
@@ -22,3 +22,36 @@ group :extras do
|
|
22
22
|
gem 'debugger', :platforms => :mri_19
|
23
23
|
gem 'pry'
|
24
24
|
end
|
25
|
+
|
26
|
+
gem 'rake', '>= 0.9.2'
|
27
|
+
|
28
|
+
gem 'cucumber', '>= 1.1.4'
|
29
|
+
gem 'aruba', '>= 0.5'
|
30
|
+
|
31
|
+
gem 'rspec', '>= 2.11'
|
32
|
+
|
33
|
+
gem 'fakeweb', '>= 1.3.0'
|
34
|
+
gem 'webmock', '>= 1.13'
|
35
|
+
|
36
|
+
gem 'faraday', '>= 0.8'
|
37
|
+
gem 'httpclient', '>= 2.2'
|
38
|
+
gem 'excon', '>= 0.22'
|
39
|
+
|
40
|
+
# 0.6.2 cannot install on 1.8.7:
|
41
|
+
# https://github.com/travisjeffery/timecop/commit/cec7352a6655cceb0216db53eea630354ee63e3f
|
42
|
+
gem 'timecop', '0.6.1'
|
43
|
+
|
44
|
+
gem 'rack', '>= 1.3.6'
|
45
|
+
gem 'sinatra', '>= 1.3.2'
|
46
|
+
gem 'multi_json', '>= 1.0.3'
|
47
|
+
gem 'json', '>= 1.6.5'
|
48
|
+
gem 'simplecov', '>= 0.5.3'
|
49
|
+
|
50
|
+
gem 'redis', '>= 2.2.2'
|
51
|
+
gem 'typhoeus', '>= 0.6'
|
52
|
+
|
53
|
+
gem 'patron', '>= 0.4.15', :platform => :ruby
|
54
|
+
gem 'em-http-request', '>= 1.0.2', :platform => :ruby
|
55
|
+
gem 'curb', '>= 0.8.0', :platform => :ruby
|
56
|
+
gem 'yajl-ruby', '>= 1.1.0', :platform => :ruby
|
57
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,186 +1,166 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vcr (2.
|
4
|
+
vcr (2.6.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
addressable (2.3.
|
10
|
-
appraisal (0.5.
|
9
|
+
addressable (2.3.5)
|
10
|
+
appraisal (0.5.2)
|
11
11
|
bundler
|
12
12
|
rake
|
13
13
|
archive-tar-minitar (0.5.2)
|
14
|
-
aruba (0.
|
15
|
-
childprocess (>= 0.
|
14
|
+
aruba (0.5.3)
|
15
|
+
childprocess (>= 0.3.6)
|
16
16
|
cucumber (>= 1.1.1)
|
17
|
-
|
18
|
-
|
19
|
-
bouncy-castle-java (1.5.0146.1)
|
20
|
-
builder (3.2.0)
|
17
|
+
rspec-expectations (>= 2.7.0)
|
18
|
+
builder (3.2.2)
|
21
19
|
childprocess (0.3.9)
|
22
20
|
ffi (~> 1.0, >= 1.0.11)
|
23
21
|
coderay (1.0.9)
|
24
22
|
columnize (0.3.6)
|
25
23
|
cookiejar (0.3.0)
|
26
|
-
crack (0.
|
27
|
-
|
24
|
+
crack (0.4.1)
|
25
|
+
safe_yaml (~> 0.9.0)
|
26
|
+
cucumber (1.3.8)
|
28
27
|
builder (>= 2.1.2)
|
29
|
-
diff-lcs (>= 1.1.
|
30
|
-
gherkin (~> 2.
|
31
|
-
|
32
|
-
|
33
|
-
curb (0.8.
|
34
|
-
debugger (1.
|
28
|
+
diff-lcs (>= 1.1.3)
|
29
|
+
gherkin (~> 2.12.1)
|
30
|
+
multi_json (>= 1.7.5, < 2.0)
|
31
|
+
multi_test (>= 0.0.2)
|
32
|
+
curb (0.8.4)
|
33
|
+
debugger (1.6.1)
|
35
34
|
columnize (>= 0.3.1)
|
36
|
-
debugger-linecache (~> 1.
|
37
|
-
debugger-ruby_core_source (~> 1.2.
|
38
|
-
debugger-linecache (1.
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
addressable (>= 2.2.3)
|
35
|
+
debugger-linecache (~> 1.2.0)
|
36
|
+
debugger-ruby_core_source (~> 1.2.3)
|
37
|
+
debugger-linecache (1.2.0)
|
38
|
+
debugger-ruby_core_source (1.2.3)
|
39
|
+
diff-lcs (1.2.4)
|
40
|
+
em-http-request (1.1.0)
|
41
|
+
addressable (>= 2.3.4)
|
44
42
|
cookiejar
|
45
|
-
em-socksify
|
46
|
-
eventmachine (>= 1.0.
|
47
|
-
http_parser.rb (>= 0.
|
48
|
-
em-socksify (0.
|
43
|
+
em-socksify (>= 0.3)
|
44
|
+
eventmachine (>= 1.0.3)
|
45
|
+
http_parser.rb (>= 0.6.0.beta.2)
|
46
|
+
em-socksify (0.3.0)
|
49
47
|
eventmachine (>= 1.0.0.beta.4)
|
50
|
-
ethon (0.
|
51
|
-
ffi (
|
48
|
+
ethon (0.6.1)
|
49
|
+
ffi (>= 1.3.0)
|
52
50
|
mime-types (~> 1.18)
|
53
|
-
eventmachine (1.0.
|
54
|
-
|
55
|
-
excon (0.22.1)
|
51
|
+
eventmachine (1.0.3)
|
52
|
+
excon (0.26.0)
|
56
53
|
fakeweb (1.3.0)
|
57
|
-
faraday (0.8.
|
58
|
-
multipart-post (~> 1.
|
59
|
-
ffi (1.
|
60
|
-
|
61
|
-
fuubar (1.0.0)
|
54
|
+
faraday (0.8.8)
|
55
|
+
multipart-post (~> 1.2.0)
|
56
|
+
ffi (1.9.0)
|
57
|
+
fuubar (1.2.1)
|
62
58
|
rspec (~> 2.0)
|
63
59
|
rspec-instafail (~> 0.2.0)
|
64
|
-
ruby-progressbar (~>
|
65
|
-
fuubar-cucumber (0.0.
|
66
|
-
cucumber (
|
67
|
-
ruby-progressbar (~> 0.0
|
68
|
-
gherkin (2.
|
69
|
-
|
70
|
-
gherkin (2.9.3-java)
|
71
|
-
json (>= 1.4.6)
|
60
|
+
ruby-progressbar (~> 1.0)
|
61
|
+
fuubar-cucumber (0.0.20)
|
62
|
+
cucumber (~> 1.3.0)
|
63
|
+
ruby-progressbar (~> 1.0.0)
|
64
|
+
gherkin (2.12.1)
|
65
|
+
multi_json (~> 1.3)
|
72
66
|
github-markup (0.7.5)
|
73
|
-
http_parser.rb (0.
|
74
|
-
|
75
|
-
|
76
|
-
jruby-openssl (0.8.2)
|
77
|
-
bouncy-castle-java (>= 1.5.0146.1)
|
78
|
-
json (1.6.8)
|
79
|
-
json (1.6.8-java)
|
67
|
+
http_parser.rb (0.6.0.beta.2)
|
68
|
+
httpclient (2.3.4.1)
|
69
|
+
json (1.8.0)
|
80
70
|
linecache (0.46)
|
81
71
|
rbx-require-relative (> 0.0.4)
|
82
|
-
method_source (0.8.
|
83
|
-
mime-types (1.
|
84
|
-
multi_json (1.0
|
72
|
+
method_source (0.8.2)
|
73
|
+
mime-types (1.25)
|
74
|
+
multi_json (1.8.0)
|
75
|
+
multi_test (0.0.2)
|
85
76
|
multipart-post (1.2.0)
|
86
77
|
patron (0.4.18)
|
87
|
-
pry (0.9.12)
|
88
|
-
coderay (~> 1.0.5)
|
89
|
-
method_source (~> 0.8)
|
90
|
-
slop (~> 3.4)
|
91
|
-
pry (0.9.12-java)
|
78
|
+
pry (0.9.12.2)
|
92
79
|
coderay (~> 1.0.5)
|
93
80
|
method_source (~> 0.8)
|
94
81
|
slop (~> 3.4)
|
95
|
-
|
96
|
-
rack (1.
|
97
|
-
rack-protection (1.4.0)
|
82
|
+
rack (1.5.2)
|
83
|
+
rack-protection (1.5.0)
|
98
84
|
rack
|
99
|
-
rake (
|
85
|
+
rake (10.1.0)
|
100
86
|
rbx-require-relative (0.0.9)
|
101
87
|
redcarpet (1.17.2)
|
102
|
-
redis (
|
103
|
-
relish (0.
|
88
|
+
redis (3.0.4)
|
89
|
+
relish (0.7)
|
104
90
|
archive-tar-minitar (>= 0.5.2)
|
105
91
|
json (>= 1.4.6)
|
106
92
|
rest-client (>= 1.6.1)
|
107
93
|
rest-client (1.6.7)
|
108
94
|
mime-types (>= 1.16)
|
109
|
-
rspec (2.
|
110
|
-
rspec-core (~> 2.
|
111
|
-
rspec-expectations (~> 2.
|
112
|
-
rspec-mocks (~> 2.
|
113
|
-
rspec-core (2.
|
114
|
-
rspec-expectations (2.
|
95
|
+
rspec (2.14.1)
|
96
|
+
rspec-core (~> 2.14.0)
|
97
|
+
rspec-expectations (~> 2.14.0)
|
98
|
+
rspec-mocks (~> 2.14.0)
|
99
|
+
rspec-core (2.14.5)
|
100
|
+
rspec-expectations (2.14.2)
|
115
101
|
diff-lcs (>= 1.1.3, < 2.0)
|
116
102
|
rspec-instafail (0.2.4)
|
117
|
-
rspec-mocks (2.
|
103
|
+
rspec-mocks (2.14.3)
|
118
104
|
ruby-debug (0.10.4)
|
119
105
|
columnize (>= 0.1)
|
120
106
|
ruby-debug-base (~> 0.10.4.0)
|
121
107
|
ruby-debug-base (0.10.4)
|
122
108
|
linecache (>= 0.3)
|
123
|
-
ruby-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
rack (~> 1.
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
typhoeus (0.6.2)
|
140
|
-
ethon (~> 0.5.10)
|
141
|
-
webmock (1.11.0)
|
109
|
+
ruby-progressbar (1.0.2)
|
110
|
+
safe_yaml (0.9.7)
|
111
|
+
simplecov (0.7.1)
|
112
|
+
multi_json (~> 1.0)
|
113
|
+
simplecov-html (~> 0.7.1)
|
114
|
+
simplecov-html (0.7.1)
|
115
|
+
sinatra (1.4.3)
|
116
|
+
rack (~> 1.4)
|
117
|
+
rack-protection (~> 1.4)
|
118
|
+
tilt (~> 1.3, >= 1.3.4)
|
119
|
+
slop (3.4.6)
|
120
|
+
tilt (1.4.1)
|
121
|
+
timecop (0.6.1)
|
122
|
+
typhoeus (0.6.5)
|
123
|
+
ethon (~> 0.6.1)
|
124
|
+
webmock (1.13.0)
|
142
125
|
addressable (>= 2.2.7)
|
143
126
|
crack (>= 0.3.2)
|
144
127
|
yajl-ruby (1.1.0)
|
145
|
-
yard (0.8.
|
128
|
+
yard (0.8.7.2)
|
146
129
|
|
147
130
|
PLATFORMS
|
148
|
-
java
|
149
131
|
ruby
|
150
132
|
|
151
133
|
DEPENDENCIES
|
152
134
|
appraisal
|
153
|
-
aruba (
|
154
|
-
|
155
|
-
|
156
|
-
curb (~> 0.8.0)
|
135
|
+
aruba (>= 0.5)
|
136
|
+
cucumber (>= 1.1.4)
|
137
|
+
curb (>= 0.8.0)
|
157
138
|
debugger
|
158
|
-
em-http-request (
|
159
|
-
excon (
|
160
|
-
fakeweb (
|
161
|
-
faraday (
|
139
|
+
em-http-request (>= 1.0.2)
|
140
|
+
excon (>= 0.22)
|
141
|
+
fakeweb (>= 1.3.0)
|
142
|
+
faraday (>= 0.8)
|
162
143
|
fuubar
|
163
144
|
fuubar-cucumber
|
164
145
|
github-markup
|
165
|
-
httpclient (
|
146
|
+
httpclient (>= 2.2)
|
166
147
|
jruby-openssl
|
167
|
-
json (
|
168
|
-
multi_json (
|
169
|
-
patron (
|
148
|
+
json (>= 1.6.5)
|
149
|
+
multi_json (>= 1.0.3)
|
150
|
+
patron (>= 0.4.15)
|
170
151
|
pry
|
171
|
-
rack (
|
172
|
-
rake (
|
152
|
+
rack (>= 1.3.6)
|
153
|
+
rake (>= 0.9.2)
|
173
154
|
redcarpet (~> 1.17.2)
|
174
|
-
redis (
|
155
|
+
redis (>= 2.2.2)
|
175
156
|
relish (~> 0.6)
|
176
|
-
rspec (
|
157
|
+
rspec (>= 2.11)
|
177
158
|
ruby-debug
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
typhoeus (~> 0.6)
|
159
|
+
simplecov (>= 0.5.3)
|
160
|
+
sinatra (>= 1.3.2)
|
161
|
+
timecop (= 0.6.1)
|
162
|
+
typhoeus (>= 0.6)
|
183
163
|
vcr!
|
184
|
-
webmock (
|
185
|
-
yajl-ruby (
|
164
|
+
webmock (>= 1.13)
|
165
|
+
yajl-ruby (>= 1.1.0)
|
186
166
|
yard
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
|
4
4
|
|
5
|
-
[![Build Status](https://secure.travis-ci.org/vcr/vcr.png?branch=master)](http://travis-ci.org/vcr/vcr)
|
5
|
+
[![Build Status](https://secure.travis-ci.org/vcr/vcr.png?branch=master)](http://travis-ci.org/vcr/vcr) [![Code Climate](https://codeclimate.com/github/vcr/vcr.png)](https://codeclimate.com/github/vcr/vcr)
|
6
6
|
|
7
7
|
## Synopsis
|
8
8
|
|
@@ -19,8 +19,8 @@ end
|
|
19
19
|
class VCRTest < Test::Unit::TestCase
|
20
20
|
def test_example_dot_com
|
21
21
|
VCR.use_cassette('synopsis') do
|
22
|
-
response = Net::HTTP.get_response(URI('http://www.iana.org/domains/
|
23
|
-
assert_match /Example
|
22
|
+
response = Net::HTTP.get_response(URI('http://www.iana.org/domains/reserved'))
|
23
|
+
assert_match /Example domains/, response.body
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -113,7 +113,7 @@ Note that as of VCR 2, 1.8.6 and 1.9.1 are not supported.
|
|
113
113
|
and create a topic branch for every separate change you make.
|
114
114
|
* See the [Contributing](https://github.com/vcr/vcr/blob/master/CONTRIBUTING.md)
|
115
115
|
guide for instructions on running the specs and features.
|
116
|
-
* Code quality metrics are checked by [Code Climate](https://codeclimate.com/github/
|
116
|
+
* Code quality metrics are checked by [Code Climate](https://codeclimate.com/github/vcr/vcr).
|
117
117
|
* Documentation is generated with [YARD](http://yardoc.org/) ([cheat sheet](http://cheat.errtheblog.com/s/yard/)).
|
118
118
|
To generate while developing:
|
119
119
|
|
@@ -153,24 +153,29 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
153
153
|
* [Flaviu Simihaian](https://github.com/closedbracket)
|
154
154
|
* [Gordon Wilson](https://github.com/gordoncww)
|
155
155
|
* [Hans Hasselberg](https://github.com/i0rek)
|
156
|
+
* [Ian Cordasco](https://github.com/sigmavirus24)
|
156
157
|
* [Ingemar](https://github.com/ingemar)
|
157
158
|
* [Jacob Green](https://github.com/Jacobkg)
|
159
|
+
* [James Bence](https://github.com/jbence)
|
158
160
|
* [Jay Shepherd](https://github.com/jayshepherd)
|
159
161
|
* [Jeff Pollard](https://github.com/Fluxx)
|
160
162
|
* [Joe Nelson](https://github.com/begriffs)
|
161
163
|
* [Jonathan Tron](https://github.com/JonathanTron)
|
162
164
|
* [Justin Smestad](https://github.com/jsmestad)
|
163
165
|
* [Karl Baum](https://github.com/kbaum)
|
166
|
+
* [Kurt Funai](https://github.com/kurtfunai)
|
164
167
|
* [Luke van der Hoeven](https://github.com/plukevdh)
|
165
168
|
* [Mark Burns](https://github.com/markburns)
|
166
169
|
* [Max Riveiro](https://github.com/kavu)
|
167
170
|
* [Michael Lavrisha](https://github.com/vrish88)
|
168
171
|
* [Mislav Marohnić](https://github.com/mislav)
|
169
172
|
* [Nathaniel Bibler](https://github.com/nbibler)
|
173
|
+
* [Noah Davis](https://github.com/noahd1)
|
170
174
|
* [Oliver Searle-Barnes](https://github.com/opsb)
|
171
175
|
* [Omer Rauchwerger](https://github.com/rauchy)
|
172
176
|
* [Paco Guzmán](https://github.com/pacoguzman)
|
173
177
|
* [playupchris](https://github.com/playupchris)
|
178
|
+
* [Ron Smith](https://github.com/ronwsmith)
|
174
179
|
* [Ryan Bates](https://github.com/ryanb)
|
175
180
|
* [Ryan Burrows](https://github.com/rhburrows)
|
176
181
|
* [Ryan Castillo](https://github.com/rmcastil)
|
@@ -178,27 +183,34 @@ Thanks also to the following people who have contributed patches or helpful sugg
|
|
178
183
|
* [Scott Carleton](https://github.com/ScotterC)
|
179
184
|
* [Shay Frendt](https://github.com/shayfrendt)
|
180
185
|
* [Steve Faulkner](https://github.com/southpolesteve)
|
181
|
-
* [
|
186
|
+
* [Stephen Anderson](https://github.com/bendycode)
|
182
187
|
* [Tyler Hunt](https://github.com/tylerhunt)
|
188
|
+
* [Uģis Ozols](https://github.com/ugisozols)
|
189
|
+
* [vzvu3k6k](https://github.com/vzvu3k6k)
|
183
190
|
* [Wesley Beary](https://github.com/geemus)
|
184
191
|
|
185
192
|
## Ports in other languages
|
186
193
|
|
187
|
-
* [Betamax](https://github.com/robfletcher/betamax) (Groovy)
|
194
|
+
* [Betamax](https://github.com/robfletcher/betamax) (Groovy/JVM)
|
195
|
+
* [Betamax](https://github.com/sigmavirus24/betamax) (Python)
|
196
|
+
* [HAVCR](https://github.com/cordawyn/havcr) (Haskell)
|
188
197
|
* [Mimic](https://github.com/acoulton/mimic) (PHP/Kohana)
|
189
|
-
* [Nock](https://github.com/
|
198
|
+
* [Nock-VCR](https://github.com/carbonfive/nock-vcr) (JavaScript/Node)
|
190
199
|
* [NSURLConnectionVCR](https://bitbucket.org/martijnthe/nsurlconnectionvcr) (Objective-C)
|
200
|
+
* [PHP-VCR](https://github.com/adri/php-vcr) (PHP)
|
191
201
|
* [TapeDeck.js](https://github.com/EndangeredMassa/TapeDeck.js) (JavaScript)
|
192
202
|
* [VCR.js](https://github.com/elcuervo/vcr.js) (JavaScript)
|
193
203
|
* [VCR.py](https://github.com/kevin1024/vcrpy) (Python)
|
194
204
|
* [VCRURLConnection](https://github.com/dstnbrkr/VCRURLConnection) (Objective-C)
|
195
205
|
* [vcr-clj](https://github.com/ifesdjeen/vcr-clj) (Clojure)
|
206
|
+
* [VHS](https://github.com/diegoeche/vhs) (Erlang)
|
196
207
|
|
197
208
|
## Similar Libraries in Ruby
|
198
209
|
|
199
210
|
* [Ephemeral Response](https://github.com/sandro/ephemeral_response)
|
200
211
|
* [Net::HTTP Spy](http://github.com/martinbtt/net-http-spy)
|
201
212
|
* [NetRecorder](https://github.com/chrisyoung/netrecorder)
|
213
|
+
* [Puffing Billy](https://github.com/oesmith/puffing-billy)
|
202
214
|
* [REST-assured](https://github.com/BBC/REST-assured)
|
203
215
|
* [Stale Fish](https://github.com/jsmestad/stale_fish)
|
204
216
|
* [WebFixtures](http://github.com/trydionel/web_fixtures)
|