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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzZkYzJkMTc5OTlhMGM0ZDZiMzNkZDcwYzA5YTRlZTJiNDRiYjFjYw==
4
+ NmYwMzVkMjVkMzU1YzZlZmMwMTJiZGM0ZGNmOTI1Y2QwOGVhYWYwMg==
5
5
  data.tar.gz: !binary |-
6
- ZmQwMDFiY2JjOWRmYjhjOWM5MTg2MGE4ZTcxMDIwMjk5NzJiMDg1NA==
6
+ MzcyODU1MmU4OWJmOTFmOGM3NzIxNmZhZDJmY2RmZDA2MmUzNmU2Mw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzA4NzhmNGE3ODQ1YzcxYTFkNmVmM2E1ZmMxM2JlYjkxNTVmNDk0Yzc4MDZh
10
- NjQ3M2Y0ODgwYjA3YjkwM2NkNWU2NGJlYzk3ZWMxMjY1MTRiMGJlNjFmODU3
11
- NGZjNWFiNzQ4NzdmYzVhMjdhOGRmMTEyZGQ0NDE2NjE1OGE2ZWM=
9
+ NzBkOTk1NzIwZTBkOTllZGE2ZGNiMmVhZWE2YzZhMzU0NzZiNTQxNWYxMjE4
10
+ Mjc2ZTJmZmY1NDkwYTFhYjExNDliZjc3YjllMDZjOGNiZTU4NzAzYjhmYTEx
11
+ ZWU2MmU0OGRiNTY1M2Q0YzJjNDJmZTc1OGFjNjA3YmRhOGM1Mjc=
12
12
  data.tar.gz: !binary |-
13
- OTUxNWE4ZDkzNzMwZGRkNDcyOTRiNjU5MDA3NDRkOTQ1MGVlYzA3MGE5OWRm
14
- ZGI0OTAzMzNkNjQ2MjNlNDkyNzg3Nzg2NDk1NGRkYzJjNDY2NGY0NzI3NWY3
15
- Zjc5ODQ4ZWY0MmY3ZTNmZWVkZjg5NjA2MTA1NGZkMTk3NDhjZTU=
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
@@ -26,7 +26,7 @@ gem 'rake', '>= 0.9.2'
26
26
  gem 'cucumber', '>= 1.1.4'
27
27
  gem 'aruba', '>= 0.5'
28
28
 
29
- gem 'rspec', '>= 3.0.0.beta1'
29
+ gem 'rspec', '>= 3.0.0.rc1'
30
30
 
31
31
  gem 'fakeweb', '>= 1.3.0'
32
32
  gem 'webmock', '>= 1.14'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vcr (2.9.0)
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.beta1)
89
- rspec-core (= 3.0.0.beta1)
90
- rspec-expectations (= 3.0.0.beta1)
91
- rspec-mocks (= 3.0.0.beta1)
92
- rspec-core (3.0.0.beta1)
93
- rspec-expectations (3.0.0.beta1)
94
- diff-lcs (>= 1.1.3, < 2.0)
95
- rspec-support (= 3.0.0.beta1)
96
- rspec-mocks (3.0.0.beta1)
97
- rspec-support (3.0.0.beta1)
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.beta1)
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/technoweenie/faraday)
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/technoweenie/faraday)
53
- * And of course any library built on Net::HTTP, such as [Mechanize](http://github.com/tenderlove/mechanize),
54
- [HTTParty](http://github.com/jnunemaker/httparty) or [Rest Client](http://github.com/archiloque/rest-client).
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.
@@ -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[:example_group][:description]
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 = metadata[: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
@@ -10,7 +10,7 @@ module VCR
10
10
  # * `parts` [Array<Integer>] List of the version parts.
11
11
  def version
12
12
  @version ||= begin
13
- string = '2.9.0'
13
+ string = '2.9.1'
14
14
 
15
15
  def string.parts
16
16
  split('.').map { |p| p.to_i }
data/spec/quality_spec.rb CHANGED
@@ -27,7 +27,7 @@ describe "The library itself" do
27
27
  end
28
28
 
29
29
  RSpec::Matchers.define :be_well_formed do
30
- failure_message_for_should do |actual|
30
+ failure_message do |actual|
31
31
  actual.join("\n")
32
32
  end
33
33
 
data/spec/spec_helper.rb CHANGED
@@ -53,7 +53,7 @@ end
53
53
 
54
54
  RSpec.configure do |config|
55
55
  config.order = :rand
56
- config.color_enabled = true
56
+ config.color = true
57
57
 
58
58
  config.expect_with :rspec do |expectations|
59
59
  expectations.syntax = :expect
@@ -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", :if => library.gsub('_', '/').include?('net/http') && library_hook_name != :webmock do
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")
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.0
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-03-27 00:00:00.000000000 Z
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