site_prism.vcr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +33 -13
- data/Gemfile +9 -14
- data/README.md +14 -0
- data/TODO.md +10 -14
- data/lib/site_prism_vcr/applier.rb +11 -10
- data/lib/site_prism_vcr/dsl/adjuster.rb +28 -4
- data/lib/site_prism_vcr/dsl/initial_adjuster.rb +4 -1
- data/lib/site_prism_vcr/fixture.rb +19 -9
- data/lib/site_prism_vcr/fixtures/converter.rb +4 -4
- data/lib/site_prism_vcr/fixtures/handler.rb +7 -5
- data/lib/site_prism_vcr/fixtures/manager.rb +4 -4
- data/lib/site_prism_vcr/fixtures/modifiers/base.rb +11 -0
- data/lib/site_prism_vcr/fixtures/modifiers/home_path.rb +4 -6
- data/lib/site_prism_vcr/fixtures/modifiers/path.rb +5 -7
- data/lib/site_prism_vcr/fixtures/modifiers/relative_path.rb +21 -0
- data/lib/site_prism_vcr/fixtures.rb +2 -2
- data/lib/site_prism_vcr/options.rb +27 -2
- data/lib/site_prism_vcr/version.rb +1 -1
- data/lib/site_prism_vcr/waiter.rb +6 -0
- data/lib/site_prism_vcr.rb +1 -0
- data/site_prism.vcr.gemspec +3 -3
- data/spec/fixtures/arya_stark.yml +21 -27
- data/spec/fixtures/custom/blank.yml +21 -27
- data/spec/fixtures/custom/bran_stark.yml +21 -27
- data/spec/fixtures/custom/daenerys_targaryen.yml +21 -27
- data/spec/fixtures/jon_snow.yml +21 -27
- data/spec/fixtures/ned_stark.yml +21 -27
- data/spec/fixtures/robb_stark.yml +21 -27
- data/spec/spec_helper.rb +6 -0
- data/spec/spec_integration_helper.rb +16 -6
- data/spec/support/server.rb +8 -0
- data/spec/support/shared/integration/custom_fixtures.rb +5 -2
- data/spec/support/shared/integration/exchange.rb +11 -1
- data/spec/support/shared/integration/home_path.rb +14 -0
- data/spec/support/test_app/test_app.rb +30 -12
- data/spec/unit/applier_spec.rb +6 -13
- data/spec/unit/dsl/adjuster_spec.rb +78 -47
- data/spec/unit/dsl/initial_adjuster_spec.rb +14 -3
- data/spec/unit/fixture_spec.rb +43 -6
- data/spec/unit/fixtures/manager_spec.rb +31 -12
- data/spec/unit/fixtures/modifiers/path_spec.rb +2 -2
- data/spec/unit/fixtures/modifiers/relative_path_spec.rb +23 -0
- data/spec/unit/waiter_spec.rb +65 -31
- metadata +25 -19
data/spec/unit/applier_spec.rb
CHANGED
@@ -76,7 +76,6 @@ describe SPV::Applier do
|
|
76
76
|
context 'when an event is shifted' do
|
77
77
|
let(:cloned_options) { 'cloned options' }
|
78
78
|
let(:options) { instance_double('SPV::Options', clone_options: cloned_options) }
|
79
|
-
let(:waiter) { instance_double('SPV::Waiter', wait: true) }
|
80
79
|
let(:prepared_fixtures) { 'prepared_fixtures by adjuster' }
|
81
80
|
|
82
81
|
let(:adjuster) do
|
@@ -89,7 +88,7 @@ describe SPV::Applier do
|
|
89
88
|
|
90
89
|
before do
|
91
90
|
SPV::DSL::Adjuster.stub(:new).and_return(adjuster)
|
92
|
-
SPV::Waiter.stub(:
|
91
|
+
SPV::Waiter.stub(:wait)
|
93
92
|
|
94
93
|
applier.shift_event { node.click }
|
95
94
|
end
|
@@ -117,16 +116,6 @@ describe SPV::Applier do
|
|
117
116
|
applier.apply_vcr
|
118
117
|
end
|
119
118
|
|
120
|
-
it 'initializes the waiter' do
|
121
|
-
expect(SPV::Waiter).to receive(:new).with(
|
122
|
-
node,
|
123
|
-
fixtures_manager,
|
124
|
-
cloned_options
|
125
|
-
).and_return(waiter)
|
126
|
-
|
127
|
-
applier.apply_vcr
|
128
|
-
end
|
129
|
-
|
130
119
|
it 'does the click action over a node' do
|
131
120
|
expect(node).to receive(:click)
|
132
121
|
|
@@ -134,7 +123,11 @@ describe SPV::Applier do
|
|
134
123
|
end
|
135
124
|
|
136
125
|
it 'waits until all HTTP interactions are finished' do
|
137
|
-
expect(
|
126
|
+
expect(SPV::Waiter).to receive(:wait).with(
|
127
|
+
node,
|
128
|
+
fixtures_manager,
|
129
|
+
cloned_options
|
130
|
+
)
|
138
131
|
|
139
132
|
applier.apply_vcr
|
140
133
|
end
|
@@ -24,53 +24,6 @@ describe SPV::DSL::Adjuster do
|
|
24
24
|
|
25
25
|
subject { described_class.new(options, fixtures) }
|
26
26
|
|
27
|
-
describe '#prepare_fixtures' do
|
28
|
-
context 'when the replace action is defined' do
|
29
|
-
let(:replaced_fixtures) { 'replaced fixtures' }
|
30
|
-
|
31
|
-
before do
|
32
|
-
fixtures.stub(:replace).and_return(replaced_fixtures)
|
33
|
-
|
34
|
-
subject.replace
|
35
|
-
end
|
36
|
-
|
37
|
-
it 'replaces fixtures' do
|
38
|
-
expect(fixtures).to receive(:replace).with(raw_fixtures)
|
39
|
-
|
40
|
-
subject.prepare_fixtures
|
41
|
-
end
|
42
|
-
|
43
|
-
it 'returns a new container with fixtures' do
|
44
|
-
expect(subject.prepare_fixtures).to eq(replaced_fixtures)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
context 'when the union action is defined' do
|
49
|
-
let(:new_fixtures) { 'new fixtures' }
|
50
|
-
|
51
|
-
before do
|
52
|
-
fixtures.stub(:union).and_return(new_fixtures)
|
53
|
-
subject.union
|
54
|
-
end
|
55
|
-
|
56
|
-
it 'joins fixtures' do
|
57
|
-
expect(fixtures).to receive(:union).with(raw_fixtures)
|
58
|
-
|
59
|
-
subject.prepare_fixtures
|
60
|
-
end
|
61
|
-
|
62
|
-
it 'returns a new container with fixtures' do
|
63
|
-
expect(subject.prepare_fixtures).to eq(new_fixtures)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
it 'the replace action is used as a default' do
|
68
|
-
expect(fixtures).to receive(:replace).with(raw_fixtures)
|
69
|
-
|
70
|
-
subject.prepare_fixtures
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
27
|
describe '#exchange' do
|
75
28
|
def exchange
|
76
29
|
subject.exchange(
|
@@ -149,4 +102,82 @@ describe SPV::DSL::Adjuster do
|
|
149
102
|
subject.waiter_options(my: 'options')
|
150
103
|
end
|
151
104
|
end
|
105
|
+
|
106
|
+
describe '#prepare_fixtures' do
|
107
|
+
context 'when the replace action is defined' do
|
108
|
+
let(:replaced_fixtures) { 'replaced fixtures' }
|
109
|
+
|
110
|
+
before do
|
111
|
+
fixtures.stub(:replace).and_return(replaced_fixtures)
|
112
|
+
|
113
|
+
subject.replace
|
114
|
+
end
|
115
|
+
|
116
|
+
it 'replaces fixtures' do
|
117
|
+
expect(fixtures).to receive(:replace).with(raw_fixtures)
|
118
|
+
|
119
|
+
subject.prepare_fixtures
|
120
|
+
end
|
121
|
+
|
122
|
+
it 'returns a new container with fixtures' do
|
123
|
+
expect(subject.prepare_fixtures).to eq(replaced_fixtures)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
context 'when the union action is defined' do
|
128
|
+
let(:new_fixtures) { 'new fixtures' }
|
129
|
+
|
130
|
+
before do
|
131
|
+
fixtures.stub(:union).and_return(new_fixtures)
|
132
|
+
subject.union
|
133
|
+
end
|
134
|
+
|
135
|
+
it 'joins fixtures' do
|
136
|
+
expect(fixtures).to receive(:union).with(raw_fixtures)
|
137
|
+
|
138
|
+
subject.prepare_fixtures
|
139
|
+
end
|
140
|
+
|
141
|
+
it 'returns a new container with fixtures' do
|
142
|
+
expect(subject.prepare_fixtures).to eq(new_fixtures)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
it 'the replace action is used as a default' do
|
147
|
+
expect(fixtures).to receive(:replace).with(raw_fixtures)
|
148
|
+
|
149
|
+
subject.prepare_fixtures
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# This case is common for the replace and union action
|
154
|
+
describe '#replace' do
|
155
|
+
context 'when an action is redefined' do
|
156
|
+
it 'raises an error' do
|
157
|
+
subject.union
|
158
|
+
expect{ subject.replace }.to raise_error(
|
159
|
+
SPV::DSL::DoubleActionError,
|
160
|
+
'You cannot use "replace" and "union" actions together. It may lead to unexpected behavior.'
|
161
|
+
)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
context 'when the same action is used a few times' do
|
166
|
+
context 'union' do
|
167
|
+
it 'does not raises any error' do
|
168
|
+
subject.union
|
169
|
+
|
170
|
+
expect{ subject.union }.to_not raise_error
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
context 'replace' do
|
175
|
+
it 'does not raises any error' do
|
176
|
+
subject.replace
|
177
|
+
|
178
|
+
expect{ subject.replace }.to_not raise_error
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
152
183
|
end
|
@@ -28,11 +28,13 @@ describe SPV::DSL::InitialAdjuster do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
describe '#fixtures' do
|
31
|
-
let(:raw_fixtures)
|
32
|
-
let(:home_path_modifier)
|
31
|
+
let(:raw_fixtures) { 'some fixtures' }
|
32
|
+
let(:home_path_modifier) { double('home path modifier') }
|
33
|
+
let(:relative_path_modifier) { double('relative path modifier') }
|
33
34
|
|
34
35
|
before do
|
35
36
|
SPV::Fixtures::Modifiers::HomePath.stub(:new).and_return(home_path_modifier)
|
37
|
+
SPV::Fixtures::Modifiers::RelativePath.stub(:new).and_return(relative_path_modifier)
|
36
38
|
end
|
37
39
|
|
38
40
|
it 'initializes the home path modifier' do
|
@@ -41,10 +43,19 @@ describe SPV::DSL::InitialAdjuster do
|
|
41
43
|
subject.fixtures(raw_fixtures)
|
42
44
|
end
|
43
45
|
|
46
|
+
it 'initializes the relative path modifier' do
|
47
|
+
expect(SPV::Fixtures::Modifiers::RelativePath).to receive(:new).with(options)
|
48
|
+
|
49
|
+
subject.fixtures(raw_fixtures)
|
50
|
+
end
|
51
|
+
|
44
52
|
it 'handles raw fixtures' do
|
45
53
|
expect(fixtures_handler).to receive(:handle_raw).with(
|
46
54
|
raw_fixtures,
|
47
|
-
[
|
55
|
+
[
|
56
|
+
home_path_modifier,
|
57
|
+
relative_path_modifier
|
58
|
+
]
|
48
59
|
)
|
49
60
|
|
50
61
|
subject.fixtures(raw_fixtures)
|
data/spec/unit/fixture_spec.rb
CHANGED
@@ -1,13 +1,42 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe SPV::Fixture do
|
4
|
-
describe '#
|
5
|
-
subject { described_class.new(
|
4
|
+
describe '#name' do
|
5
|
+
subject { described_class.new(name) }
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
context 'when there is only a name' do
|
8
|
+
let(:name) { 'test' }
|
9
9
|
|
10
|
-
|
10
|
+
it 'has correct name' do
|
11
|
+
expect(subject.name).to eq('test')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
context 'when there is a name with path' do
|
16
|
+
let(:name) { 'parent_dir/test' }
|
17
|
+
|
18
|
+
it 'has correct name' do
|
19
|
+
expect(subject.name).to eq('parent_dir/test')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when there is a name with a home path' do
|
24
|
+
let(:name) { '~/test' }
|
25
|
+
|
26
|
+
it 'has correct name' do
|
27
|
+
expect(subject.name).to eq('~/test')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '#path=' do
|
33
|
+
subject { described_class.new('somename') }
|
34
|
+
|
35
|
+
it 'have a path object' do
|
36
|
+
subject.path = 'somepath/'
|
37
|
+
|
38
|
+
expect(subject.path).to be_an_instance_of(Pathname)
|
39
|
+
expect(subject.path.to_path).to eq('somepath/')
|
11
40
|
end
|
12
41
|
end
|
13
42
|
|
@@ -15,9 +44,17 @@ describe SPV::Fixture do
|
|
15
44
|
subject { described_class.new('~/fixture_name') }
|
16
45
|
|
17
46
|
it 'defines a new name with replaced home path symbol' do
|
47
|
+
expect(subject).to receive(:path=).with('my_home_path/')
|
48
|
+
|
18
49
|
subject.set_home_path('my_home_path/')
|
50
|
+
end
|
51
|
+
|
52
|
+
it 'defines a new name with replaced home path symbol and keeps a path to subdirectory' do
|
53
|
+
fixture = described_class.new('~/sub/fixture_name')
|
54
|
+
|
55
|
+
expect(fixture).to receive(:path=).with('my_home_path/sub')
|
19
56
|
|
20
|
-
|
57
|
+
fixture.set_home_path('my_home_path/')
|
21
58
|
end
|
22
59
|
end
|
23
60
|
|
@@ -8,7 +8,12 @@ describe SPV::Fixtures::Manager do
|
|
8
8
|
instance_double(
|
9
9
|
'SPV::Fixture',
|
10
10
|
name: 'arya_stark',
|
11
|
-
options: {
|
11
|
+
options: {
|
12
|
+
erb: {
|
13
|
+
testvar: true,
|
14
|
+
port: 123
|
15
|
+
}
|
16
|
+
}
|
12
17
|
)
|
13
18
|
end
|
14
19
|
|
@@ -32,23 +37,37 @@ describe SPV::Fixtures::Manager do
|
|
32
37
|
VCR.eject_cassette
|
33
38
|
end
|
34
39
|
|
35
|
-
|
36
|
-
|
40
|
+
context 'when VCR holds the first fixture' do
|
41
|
+
before do
|
42
|
+
manager.inject(fixtures)
|
37
43
|
|
38
|
-
|
39
|
-
|
44
|
+
VCR.eject_cassette
|
45
|
+
@fixture = VCR.eject_cassette
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'has a right fixture name' do
|
49
|
+
expect(@fixture.name).to eq('arya_stark')
|
50
|
+
end
|
40
51
|
|
41
|
-
|
42
|
-
|
52
|
+
it 'has custom erb variables' do
|
53
|
+
expect(@fixture.erb).to eq(testvar: true, port: 123)
|
54
|
+
end
|
43
55
|
end
|
44
56
|
|
45
|
-
|
46
|
-
|
57
|
+
context 'when VCR holds the second fixture' do
|
58
|
+
before do
|
59
|
+
manager.inject(fixtures)
|
60
|
+
|
61
|
+
@fixture = VCR.eject_cassette
|
62
|
+
end
|
47
63
|
|
48
|
-
fixture
|
64
|
+
it 'has a right fixture name' do
|
65
|
+
expect(@fixture.name).to eq('jon_snow')
|
66
|
+
end
|
49
67
|
|
50
|
-
|
51
|
-
|
68
|
+
it 'has no custom erb variables which was defined for the first fixture' do
|
69
|
+
expect(@fixture.erb).to_not eq(testvar: true, port: 123)
|
70
|
+
end
|
52
71
|
end
|
53
72
|
end
|
54
73
|
|
@@ -10,7 +10,7 @@ describe SPV::Fixtures::Modifiers::Path do
|
|
10
10
|
|
11
11
|
context 'when the path does not end with slash symbol' do
|
12
12
|
it 'adds a given path to the fixture with additional slash symbol' do
|
13
|
-
expect(fixture).to receive(:
|
13
|
+
expect(fixture).to receive(:path=).with(path + '/')
|
14
14
|
|
15
15
|
subject
|
16
16
|
end
|
@@ -20,7 +20,7 @@ describe SPV::Fixtures::Modifiers::Path do
|
|
20
20
|
let(:path) { 'some path/' }
|
21
21
|
|
22
22
|
it 'adds a given path to the fixture without additional slash symbol' do
|
23
|
-
expect(fixture).to receive(:
|
23
|
+
expect(fixture).to receive(:path=).with(path)
|
24
24
|
|
25
25
|
subject
|
26
26
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SPV::Fixtures::Modifiers::RelativePath do
|
4
|
+
describe '#modify' do
|
5
|
+
let(:fixture) { instance_double('SPV::Fixture', path: 'top_dir/next_dir/../') }
|
6
|
+
|
7
|
+
subject { described_class.new(double) }
|
8
|
+
|
9
|
+
it 'moves up on one level in the hierarchy of directories' do
|
10
|
+
expect(fixture).to receive(:path=).with('top_dir')
|
11
|
+
|
12
|
+
subject.modify(fixture)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'moves up on 2 levels in the hierarchy of directories' do
|
16
|
+
fixture.stub(:path).and_return('parent_dir/some_dir/next_dir/../../')
|
17
|
+
|
18
|
+
expect(fixture).to receive(:path=).with('parent_dir')
|
19
|
+
|
20
|
+
subject.modify(fixture)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/spec/unit/waiter_spec.rb
CHANGED
@@ -17,63 +17,97 @@ describe SPV::Waiter do
|
|
17
17
|
)
|
18
18
|
}
|
19
19
|
|
20
|
-
|
20
|
+
context 'class methods' do
|
21
|
+
describe '.wait' do
|
22
|
+
def wait
|
23
|
+
described_class.wait(node, fixtures_manager, options)
|
24
|
+
end
|
21
25
|
|
22
|
-
|
23
|
-
context 'when a waiter is defined' do
|
24
|
-
let(:node) { double('node of DOM', wait_for_content: true) }
|
26
|
+
let(:waiter) { instance_double('SPV::Waiter', wait: true) }
|
25
27
|
|
26
28
|
before do
|
27
|
-
|
29
|
+
described_class.stub(:new).and_return(waiter)
|
28
30
|
end
|
29
31
|
|
30
|
-
it '
|
31
|
-
expect(
|
32
|
+
it 'initializes a new instance of the waiter' do
|
33
|
+
expect(described_class).to receive(:new).with(
|
34
|
+
node, fixtures_manager, options
|
35
|
+
)
|
32
36
|
|
33
|
-
|
37
|
+
wait
|
34
38
|
end
|
35
39
|
|
36
|
-
|
37
|
-
|
38
|
-
expect(fixtures_manager).to receive(:eject)
|
40
|
+
it 'the waiter waits :)' do
|
41
|
+
expect(waiter).to receive(:wait)
|
39
42
|
|
40
|
-
|
41
|
-
end
|
43
|
+
wait
|
42
44
|
end
|
43
45
|
|
44
|
-
|
46
|
+
it 'returns the waiter' do
|
47
|
+
expect(wait).to eq(waiter)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
context 'instance methods' do
|
53
|
+
subject(:waiter) { described_class.new(node, fixtures_manager, options) }
|
54
|
+
|
55
|
+
describe '#wait' do
|
56
|
+
context 'when a waiter is defined' do
|
57
|
+
let(:node) { double('node of DOM', wait_for_content: true) }
|
58
|
+
|
45
59
|
before do
|
46
|
-
options.stub(:
|
60
|
+
options.stub(:waiter).and_return(proc { self.wait_for_content })
|
47
61
|
end
|
48
62
|
|
49
|
-
it '
|
50
|
-
expect(
|
63
|
+
it 'calls the waiter to wait until all HTTP interactions are finished' do
|
64
|
+
expect(node).to receive(:wait_for_content)
|
51
65
|
|
52
66
|
waiter.wait
|
53
67
|
end
|
68
|
+
|
69
|
+
context 'when the option disallowing fixtures ejection is not passed' do
|
70
|
+
it 'ejects fixtures' do
|
71
|
+
expect(fixtures_manager).to receive(:eject)
|
72
|
+
|
73
|
+
waiter.wait
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
context 'when the option disallowing fixtures ejection is passed' do
|
78
|
+
before do
|
79
|
+
options.stub(:waiter_options).and_return(eject_cassettes: false)
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'does not eject fixtures' do
|
83
|
+
expect(fixtures_manager).to_not receive(:eject)
|
84
|
+
|
85
|
+
waiter.wait
|
86
|
+
end
|
87
|
+
end
|
54
88
|
end
|
55
|
-
end
|
56
89
|
|
57
|
-
|
58
|
-
|
59
|
-
|
90
|
+
context 'when a waiter is not defined' do
|
91
|
+
it 'the fixtures handler does not eject fixtures' do
|
92
|
+
expect(fixtures_manager).to_not receive(:eject)
|
60
93
|
|
61
|
-
|
94
|
+
waiter.wait
|
95
|
+
end
|
62
96
|
end
|
63
97
|
end
|
64
|
-
end
|
65
98
|
|
66
|
-
|
67
|
-
|
99
|
+
describe '#with_new_options' do
|
100
|
+
let(:new_options) { 'some new options' }
|
68
101
|
|
69
|
-
|
70
|
-
|
102
|
+
it 'initializes a new instance of the waiter' do
|
103
|
+
subject
|
71
104
|
|
72
|
-
|
73
|
-
|
74
|
-
|
105
|
+
expect(described_class).to receive(:new).with(
|
106
|
+
node, fixtures_manager, new_options
|
107
|
+
)
|
75
108
|
|
76
|
-
|
109
|
+
waiter.with_new_options(new_options)
|
110
|
+
end
|
77
111
|
end
|
78
112
|
end
|
79
113
|
end
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_prism.vcr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Nesteryuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: site_prism
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: vcr
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.9.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.9.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: webmock
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: This gem integrates VCR library into SitePrism
|
@@ -59,9 +59,9 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
63
|
-
- .rspec
|
64
|
-
- .travis.yml
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".travis.yml"
|
65
65
|
- CHANGELOG.md
|
66
66
|
- Gemfile
|
67
67
|
- LICENSE.txt
|
@@ -79,8 +79,10 @@ files:
|
|
79
79
|
- lib/site_prism_vcr/fixtures/converter.rb
|
80
80
|
- lib/site_prism_vcr/fixtures/handler.rb
|
81
81
|
- lib/site_prism_vcr/fixtures/manager.rb
|
82
|
+
- lib/site_prism_vcr/fixtures/modifiers/base.rb
|
82
83
|
- lib/site_prism_vcr/fixtures/modifiers/home_path.rb
|
83
84
|
- lib/site_prism_vcr/fixtures/modifiers/path.rb
|
85
|
+
- lib/site_prism_vcr/fixtures/modifiers/relative_path.rb
|
84
86
|
- lib/site_prism_vcr/fixtures/tmp_keeper.rb
|
85
87
|
- lib/site_prism_vcr/options.rb
|
86
88
|
- lib/site_prism_vcr/options_with_path.rb
|
@@ -103,6 +105,7 @@ files:
|
|
103
105
|
- spec/integration/pages/load_spec.rb
|
104
106
|
- spec/spec_helper.rb
|
105
107
|
- spec/spec_integration_helper.rb
|
108
|
+
- spec/support/server.rb
|
106
109
|
- spec/support/shared/integration/custom_fixtures.rb
|
107
110
|
- spec/support/shared/integration/exchange.rb
|
108
111
|
- spec/support/shared/integration/home_path.rb
|
@@ -129,6 +132,7 @@ files:
|
|
129
132
|
- spec/unit/fixtures/manager_spec.rb
|
130
133
|
- spec/unit/fixtures/modifiers/home_path_spec.rb
|
131
134
|
- spec/unit/fixtures/modifiers/path_spec.rb
|
135
|
+
- spec/unit/fixtures/modifiers/relative_path_spec.rb
|
132
136
|
- spec/unit/fixtures/tmp_keeper_spec.rb
|
133
137
|
- spec/unit/fixtures_spec.rb
|
134
138
|
- spec/unit/options_spec.rb
|
@@ -136,7 +140,7 @@ files:
|
|
136
140
|
- spec/unit/patches/page_spec.rb
|
137
141
|
- spec/unit/vcr_helpers_spec.rb
|
138
142
|
- spec/unit/waiter_spec.rb
|
139
|
-
homepage:
|
143
|
+
homepage: http://github.com/dnesteryuk/site_prism.vcr
|
140
144
|
licenses:
|
141
145
|
- MIT
|
142
146
|
metadata: {}
|
@@ -146,17 +150,17 @@ require_paths:
|
|
146
150
|
- lib
|
147
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
152
|
requirements:
|
149
|
-
- -
|
153
|
+
- - ">="
|
150
154
|
- !ruby/object:Gem::Version
|
151
155
|
version: '0'
|
152
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
157
|
requirements:
|
154
|
-
- -
|
158
|
+
- - ">="
|
155
159
|
- !ruby/object:Gem::Version
|
156
160
|
version: '0'
|
157
161
|
requirements: []
|
158
162
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.2.2
|
160
164
|
signing_key:
|
161
165
|
specification_version: 4
|
162
166
|
summary: VCR and SitePrism are awesome libraries. But, it is a bit difficult to work
|
@@ -178,6 +182,7 @@ test_files:
|
|
178
182
|
- spec/integration/pages/load_spec.rb
|
179
183
|
- spec/spec_helper.rb
|
180
184
|
- spec/spec_integration_helper.rb
|
185
|
+
- spec/support/server.rb
|
181
186
|
- spec/support/shared/integration/custom_fixtures.rb
|
182
187
|
- spec/support/shared/integration/exchange.rb
|
183
188
|
- spec/support/shared/integration/home_path.rb
|
@@ -204,6 +209,7 @@ test_files:
|
|
204
209
|
- spec/unit/fixtures/manager_spec.rb
|
205
210
|
- spec/unit/fixtures/modifiers/home_path_spec.rb
|
206
211
|
- spec/unit/fixtures/modifiers/path_spec.rb
|
212
|
+
- spec/unit/fixtures/modifiers/relative_path_spec.rb
|
207
213
|
- spec/unit/fixtures/tmp_keeper_spec.rb
|
208
214
|
- spec/unit/fixtures_spec.rb
|
209
215
|
- spec/unit/options_spec.rb
|