vcr 1.11.2 → 1.11.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,13 @@
1
1
  ## In git
2
2
 
3
- [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.2...master)
3
+ [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.3...master)
4
+
5
+ ## 1.11.3 (August 31, 2011)
6
+
7
+ [Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.2...v1.11.3)
8
+
9
+ * Fix cassette serialization so that it does not include extra `ignored`
10
+ instance variable.
4
11
 
5
12
  ## 1.11.2 (August 28, 2011)
6
13
 
data/Guardfile CHANGED
@@ -2,13 +2,13 @@
2
2
  # More info at http://github.com/guard/guard#readme
3
3
 
4
4
  guard 'rspec', :version => 2 do
5
- watch('^spec/(.*)_spec.rb')
6
- watch('^lib/(.*)\.rb') { |m| "spec/#{m[1]}_spec.rb" }
7
- watch('^spec/spec_helper.rb') { "spec" }
5
+ watch(%r|^spec/(.*)_spec.rb|)
6
+ watch(%r|^lib/(.*)\.rb|) { |m| "spec/#{m[1]}_spec.rb" }
7
+ watch(%r|^spec/spec_helper.rb|) { "spec" }
8
8
  end
9
9
 
10
10
  guard 'cucumber' do
11
- watch('^features/(.*).feature')
12
- watch('^features/support') { 'features' }
13
- watch('^features/step_definitions') { 'features' }
11
+ watch(%r|^features/(.*).feature|)
12
+ watch(%r|^features/support|) { 'features' }
13
+ watch(%r|^features/step_definitions|) { 'features' }
14
14
  end
@@ -6,12 +6,18 @@ module VCR
6
6
  def_delegators :request, :uri, :method
7
7
 
8
8
  def ignore!
9
- @ignored = true
9
+ # we don't want to store any additional
10
+ # ivars on this object because that would get
11
+ # serialized with the object...so we redefine
12
+ # `ignored?` instead.
13
+ (class << self; self; end).class_eval do
14
+ undef ignored?
15
+ def ignored?; true; end
16
+ end
10
17
  end
11
18
 
12
19
  def ignored?
13
- @ignored = false unless defined?(@ignored)
14
- @ignored
20
+ false
15
21
  end
16
22
 
17
23
  def filter!(text, replacement_text)
@@ -3,7 +3,7 @@ module VCR
3
3
 
4
4
  def version
5
5
  @version ||= begin
6
- string = '1.11.2'
6
+ string = '1.11.3'
7
7
 
8
8
  def string.parts
9
9
  split('.').map { |p| p.to_i }
@@ -21,6 +21,11 @@ describe VCR::HTTPInteraction do
21
21
  end
22
22
  end
23
23
 
24
+ it 'does not include `@ignored` in the serialized output' do
25
+ subject.ignore!
26
+ VCR::YAML.dump(subject).should_not include('ignored')
27
+ end
28
+
24
29
  describe '#filter!' do
25
30
  let(:response_status) { VCR::ResponseStatus.new(200, "OK foo") }
26
31
  let(:body) { "The body foo this is (foo-Foo)" }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 11
9
- - 2
10
- version: 1.11.2
9
+ - 3
10
+ version: 1.11.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Myron Marston
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-29 00:00:00 Z
18
+ date: 2011-09-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement