vcr 1.11.2 → 1.11.3
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 +8 -1
- data/Guardfile +6 -6
- data/lib/vcr/structs/http_interaction.rb +9 -3
- data/lib/vcr/version.rb +1 -1
- data/spec/vcr/structs/http_interaction_spec.rb +5 -0
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
## In git
|
2
2
|
|
3
|
-
[Full Changelog](http://github.com/myronmarston/vcr/compare/v1.11.
|
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(
|
6
|
-
watch(
|
7
|
-
watch(
|
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(
|
12
|
-
watch(
|
13
|
-
watch(
|
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
|
-
|
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
|
-
|
14
|
-
@ignored
|
20
|
+
false
|
15
21
|
end
|
16
22
|
|
17
23
|
def filter!(text, replacement_text)
|
data/lib/vcr/version.rb
CHANGED
@@ -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:
|
4
|
+
hash: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 1.11.
|
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-
|
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
|