vcr 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTING.md +0 -7
- data/Gemfile +1 -1
- data/Gemfile.lock +14 -12
- data/README.md +4 -4
- data/lib/vcr/deprecations.rb +3 -2
- data/lib/vcr/test_frameworks/rspec.rb +2 -1
- data/lib/vcr/version.rb +1 -1
- data/spec/quality_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/shared_example_groups/hook_into_http_library.rb +8 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmYwMzVkMjVkMzU1YzZlZmMwMTJiZGM0ZGNmOTI1Y2QwOGVhYWYwMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzcyODU1MmU4OWJmOTFmOGM3NzIxNmZhZDJmY2RmZDA2MmUzNmU2Mw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzBkOTk1NzIwZTBkOTllZGE2ZGNiMmVhZWE2YzZhMzU0NzZiNTQxNWYxMjE4
|
10
|
+
Mjc2ZTJmZmY1NDkwYTFhYjExNDliZjc3YjllMDZjOGNiZTU4NzAzYjhmYTEx
|
11
|
+
ZWU2MmU0OGRiNTY1M2Q0YzJjNDJmZTc1OGFjNjA3YmRhOGM1Mjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWIyOWM4NGU1ZDlmZmRmNzQyZDJmNzU4ZjU0ODA3NjkwMTI5N2Y0MmU1NWM5
|
14
|
+
YTEyM2U4YTcyOTM4MzQ0MWYzNWQ1NmY3ZjU1YzllNDZiMmUxYjM2NTlmMjk1
|
15
|
+
NDQ5MzViY2EzZTljM2NlOTRlNGI5Y2RmNmQ3MjM4OGIzY2RhNzY=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 2.9.1 (May 23, 2014)
|
2
|
+
[Full Changelog](http://github.com/vcr/vcr/compare/v2.9.0...v2.9.1)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix RSpec metadata integration to not trigger deprecation warnings
|
7
|
+
with RSpec 3.0.0.rc1+. (Janko Marohnić)
|
8
|
+
|
1
9
|
## 2.9.0 (March 27, 2014)
|
2
10
|
|
3
11
|
[Full Changelog](http://github.com/vcr/vcr/compare/v2.8.0...v2.9.0)
|
data/CONTRIBUTING.md
CHANGED
@@ -24,10 +24,3 @@ If you get an error while running `bundle install`, it may be one of the "extras
|
|
24
24
|
```console
|
25
25
|
bundle install --without extras
|
26
26
|
```
|
27
|
-
|
28
|
-
If you are getting an error installing `rb-fsevent` gem, you may want to temporarily change the Gemfile to use the pre-release version of the gem.
|
29
|
-
|
30
|
-
```ruby
|
31
|
-
gem 'rb-fsevent', '0.9.0.pre4'
|
32
|
-
```
|
33
|
-
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vcr (2.9.
|
4
|
+
vcr (2.9.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -85,16 +85,18 @@ GEM
|
|
85
85
|
rest-client (>= 1.6.1)
|
86
86
|
rest-client (1.6.7)
|
87
87
|
mime-types (>= 1.16)
|
88
|
-
rspec (3.0.0.
|
89
|
-
rspec-core (= 3.0.0.
|
90
|
-
rspec-expectations (= 3.0.0.
|
91
|
-
rspec-mocks (= 3.0.0.
|
92
|
-
rspec-core (3.0.0.
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
rspec-
|
88
|
+
rspec (3.0.0.rc1)
|
89
|
+
rspec-core (= 3.0.0.rc1)
|
90
|
+
rspec-expectations (= 3.0.0.rc1)
|
91
|
+
rspec-mocks (= 3.0.0.rc1)
|
92
|
+
rspec-core (3.0.0.rc1)
|
93
|
+
rspec-support (= 3.0.0.rc1)
|
94
|
+
rspec-expectations (3.0.0.rc1)
|
95
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
+
rspec-support (= 3.0.0.rc1)
|
97
|
+
rspec-mocks (3.0.0.rc1)
|
98
|
+
rspec-support (= 3.0.0.rc1)
|
99
|
+
rspec-support (3.0.0.rc1)
|
98
100
|
ruby-debug (0.10.4)
|
99
101
|
columnize (>= 0.1)
|
100
102
|
ruby-debug-base (~> 0.10.4.0)
|
@@ -145,7 +147,7 @@ DEPENDENCIES
|
|
145
147
|
redcarpet (~> 1.17.2)
|
146
148
|
redis (>= 2.2.2)
|
147
149
|
relish (~> 0.6)
|
148
|
-
rspec (>= 3.0.0.
|
150
|
+
rspec (>= 3.0.0.rc1)
|
149
151
|
ruby-debug
|
150
152
|
simplecov (>= 0.5.3)
|
151
153
|
sinatra (>= 1.3.2)
|
data/README.md
CHANGED
@@ -38,7 +38,7 @@ maintenance) and accurate (the response will contain the same headers and body y
|
|
38
38
|
following are supported:
|
39
39
|
* [WebMock](https://github.com/bblimke/webmock)
|
40
40
|
* [Typhoeus](https://github.com/typhoeus/typhoeus)
|
41
|
-
* [Faraday](https://github.com/
|
41
|
+
* [Faraday](https://github.com/lostisland/faraday)
|
42
42
|
* [Excon](https://github.com/geemus/excon)
|
43
43
|
* [FakeWeb](https://github.com/chrisk/fakeweb) (deprecated)
|
44
44
|
* Supports multiple HTTP libraries:
|
@@ -49,9 +49,9 @@ maintenance) and accurate (the response will contain the same headers and body y
|
|
49
49
|
* [Net::HTTP](http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html) (when using FakeWeb and WebMock)
|
50
50
|
* [Typhoeus](https://github.com/typhoeus/typhoeus) (Typhoeus::Hydra, but not Typhoeus::Easy or Typhoeus::Multi)
|
51
51
|
* [Excon](https://github.com/geemus/excon)
|
52
|
-
* [Faraday](https://github.com/
|
53
|
-
* And of course any library built on Net::HTTP, such as [Mechanize](http://github.com/
|
54
|
-
[HTTParty](http://github.com/jnunemaker/httparty) or [Rest Client](http://github.com/
|
52
|
+
* [Faraday](https://github.com/lostisland/faraday)
|
53
|
+
* And of course any library built on Net::HTTP, such as [Mechanize](http://github.com/sparklemotion/mechanize),
|
54
|
+
[HTTParty](http://github.com/jnunemaker/httparty) or [Rest Client](http://github.com/rest-client/rest-client).
|
55
55
|
* Request matching is configurable based on HTTP method, URI, host, path, body and headers, or you can easily
|
56
56
|
implement a custom request matcher to handle any need.
|
57
57
|
* The same request can receive different responses in different tests--just use different cassettes.
|
data/lib/vcr/deprecations.rb
CHANGED
@@ -91,12 +91,13 @@ module VCR
|
|
91
91
|
# RSpec 1 exposes #description_parts; use that if its available
|
92
92
|
return description_parts.join("/") if respond_to?(:description_parts)
|
93
93
|
|
94
|
-
# Otherwise use RSpec 2 metadata...
|
94
|
+
# Otherwise use RSpec 2/3 metadata...
|
95
95
|
group_descriptions = []
|
96
96
|
klass = self
|
97
97
|
|
98
98
|
while klass.respond_to?(:metadata) && klass.metadata
|
99
|
-
group_descriptions << klass.metadata[:
|
99
|
+
group_descriptions << klass.metadata[:description] ||
|
100
|
+
klass.metadata[:example_group][:description]
|
100
101
|
klass = klass.superclass
|
101
102
|
end
|
102
103
|
|
@@ -9,8 +9,9 @@ module VCR
|
|
9
9
|
::RSpec.configure do |config|
|
10
10
|
vcr_cassette_name_for = lambda do |metadata|
|
11
11
|
description = metadata[:description]
|
12
|
+
example_group = metadata[:parent_example_group] || metadata[:example_group]
|
12
13
|
|
13
|
-
if example_group
|
14
|
+
if example_group && example_group.any?
|
14
15
|
[vcr_cassette_name_for[example_group], description].join('/')
|
15
16
|
else
|
16
17
|
description
|
data/lib/vcr/version.rb
CHANGED
data/spec/quality_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -56,17 +56,16 @@ shared_examples_for "a hook into an HTTP library" do |library_hook_name, library
|
|
56
56
|
test_record_and_playback "with a complex escaped query param", "q=#{CGI.escape("A&(! 234k !@ kasdj232\#$ kjw35")}"
|
57
57
|
|
58
58
|
it 'plays back an empty body response exactly as it was recorded (e.g. nil vs empty string)' do
|
59
|
-
pending "awaiting an external fix"
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
end
|
59
|
+
pending "awaiting an external fix" if library.gsub('_', '/').include?('net/http') && library_hook_name != :webmock
|
60
|
+
get_body = lambda do
|
61
|
+
VCR.use_cassette('empty_body', :record => :once) do
|
62
|
+
get_body_object make_http_request(:get, "http://localhost:#{VCR::SinatraApp.port}/204")
|
64
63
|
end
|
65
|
-
|
66
|
-
recorded = get_body.call
|
67
|
-
played_back = get_body.call
|
68
|
-
expect(played_back).to eq(recorded)
|
69
64
|
end
|
65
|
+
|
66
|
+
recorded = get_body.call
|
67
|
+
played_back = get_body.call
|
68
|
+
expect(played_back).to eq(recorded)
|
70
69
|
end
|
71
70
|
|
72
71
|
describe 'making an HTTP request' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: VCR provides a simple API to record and replay your test suite's HTTP
|
14
14
|
interactions. It works with a variety of HTTP client libraries, HTTP stubbing libraries
|