vcr 2.0.0.rc2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -0
- data/CHANGELOG.md +19 -2
- data/README.md +17 -5
- data/Upgrade.md +33 -0
- data/benchmarks/http_stubbing_libraries.rb +2 -2
- data/features/getting_started.md +1 -1
- data/features/http_libraries/em_http_request.feature +6 -3
- data/lib/vcr.rb +46 -47
- data/lib/vcr/cassette.rb +16 -3
- data/lib/vcr/configuration.rb +146 -138
- data/lib/vcr/library_hooks/excon.rb +1 -1
- data/lib/vcr/library_hooks/faraday.rb +1 -1
- data/lib/vcr/middleware/faraday.rb +1 -1
- data/lib/vcr/structs.rb +79 -72
- data/lib/vcr/version.rb +1 -1
- data/spec/quality_spec.rb +51 -0
- data/spec/vcr/cassette/migrator_spec.rb +33 -33
- data/spec/vcr/configuration_spec.rb +13 -1
- data/spec/vcr/library_hooks/faraday_spec.rb +0 -1
- data/vcr.gemspec +4 -4
- metadata +51 -42
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 2
|
12
|
-
version: 2.0.0.rc2
|
10
|
+
version: 2.0.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Myron Marston
|
@@ -17,7 +15,7 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2012-02
|
18
|
+
date: 2012-03-02 00:00:00 Z
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
23
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -153,12 +151,14 @@ dependencies:
|
|
153
151
|
requirements:
|
154
152
|
- - ~>
|
155
153
|
- !ruby/object:Gem::Version
|
156
|
-
hash:
|
154
|
+
hash: 15424145
|
157
155
|
segments:
|
158
156
|
- 0
|
159
|
-
-
|
157
|
+
- 8
|
158
|
+
- 0
|
159
|
+
- rc
|
160
160
|
- 2
|
161
|
-
version: 0.
|
161
|
+
version: 0.8.0.rc2
|
162
162
|
name: faraday
|
163
163
|
type: :development
|
164
164
|
prerelease: false
|
@@ -184,7 +184,7 @@ dependencies:
|
|
184
184
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
185
185
|
none: false
|
186
186
|
requirements:
|
187
|
-
- -
|
187
|
+
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
hash: 55
|
190
190
|
segments:
|
@@ -192,6 +192,13 @@ dependencies:
|
|
192
192
|
- 9
|
193
193
|
- 6
|
194
194
|
version: 0.9.6
|
195
|
+
- - <
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
hash: 15
|
198
|
+
segments:
|
199
|
+
- 1
|
200
|
+
- 0
|
201
|
+
version: "1.0"
|
195
202
|
name: excon
|
196
203
|
type: :development
|
197
204
|
prerelease: false
|
@@ -262,22 +269,6 @@ dependencies:
|
|
262
269
|
requirement: *id015
|
263
270
|
- !ruby/object:Gem::Dependency
|
264
271
|
version_requirements: &id016 !ruby/object:Gem::Requirement
|
265
|
-
none: false
|
266
|
-
requirements:
|
267
|
-
- - ~>
|
268
|
-
- !ruby/object:Gem::Version
|
269
|
-
hash: 19
|
270
|
-
segments:
|
271
|
-
- 1
|
272
|
-
- 1
|
273
|
-
- 0
|
274
|
-
version: 1.1.0
|
275
|
-
name: yajl-ruby
|
276
|
-
type: :development
|
277
|
-
prerelease: false
|
278
|
-
requirement: *id016
|
279
|
-
- !ruby/object:Gem::Dependency
|
280
|
-
version_requirements: &id017 !ruby/object:Gem::Requirement
|
281
272
|
none: false
|
282
273
|
requirements:
|
283
274
|
- - ~>
|
@@ -291,9 +282,9 @@ dependencies:
|
|
291
282
|
name: json
|
292
283
|
type: :development
|
293
284
|
prerelease: false
|
294
|
-
requirement: *
|
285
|
+
requirement: *id016
|
295
286
|
- !ruby/object:Gem::Dependency
|
296
|
-
version_requirements: &
|
287
|
+
version_requirements: &id017 !ruby/object:Gem::Requirement
|
297
288
|
none: false
|
298
289
|
requirements:
|
299
290
|
- - ~>
|
@@ -307,9 +298,9 @@ dependencies:
|
|
307
298
|
name: limited_red
|
308
299
|
type: :development
|
309
300
|
prerelease: false
|
310
|
-
requirement: *
|
301
|
+
requirement: *id017
|
311
302
|
- !ruby/object:Gem::Dependency
|
312
|
-
version_requirements: &
|
303
|
+
version_requirements: &id018 !ruby/object:Gem::Requirement
|
313
304
|
none: false
|
314
305
|
requirements:
|
315
306
|
- - ~>
|
@@ -323,9 +314,9 @@ dependencies:
|
|
323
314
|
name: simplecov
|
324
315
|
type: :development
|
325
316
|
prerelease: false
|
326
|
-
requirement: *
|
317
|
+
requirement: *id018
|
327
318
|
- !ruby/object:Gem::Dependency
|
328
|
-
version_requirements: &
|
319
|
+
version_requirements: &id019 !ruby/object:Gem::Requirement
|
329
320
|
none: false
|
330
321
|
requirements:
|
331
322
|
- - ~>
|
@@ -339,25 +330,25 @@ dependencies:
|
|
339
330
|
name: patron
|
340
331
|
type: :development
|
341
332
|
prerelease: false
|
342
|
-
requirement: *
|
333
|
+
requirement: *id019
|
343
334
|
- !ruby/object:Gem::Dependency
|
344
|
-
version_requirements: &
|
335
|
+
version_requirements: &id020 !ruby/object:Gem::Requirement
|
345
336
|
none: false
|
346
337
|
requirements:
|
347
338
|
- - ~>
|
348
339
|
- !ruby/object:Gem::Version
|
349
|
-
hash:
|
340
|
+
hash: 21
|
350
341
|
segments:
|
342
|
+
- 1
|
351
343
|
- 0
|
352
|
-
-
|
353
|
-
|
354
|
-
version: 0.3.0
|
344
|
+
- 1
|
345
|
+
version: 1.0.1
|
355
346
|
name: em-http-request
|
356
347
|
type: :development
|
357
348
|
prerelease: false
|
358
|
-
requirement: *
|
349
|
+
requirement: *id020
|
359
350
|
- !ruby/object:Gem::Dependency
|
360
|
-
version_requirements: &
|
351
|
+
version_requirements: &id021 !ruby/object:Gem::Requirement
|
361
352
|
none: false
|
362
353
|
requirements:
|
363
354
|
- - ~>
|
@@ -371,9 +362,9 @@ dependencies:
|
|
371
362
|
name: curb
|
372
363
|
type: :development
|
373
364
|
prerelease: false
|
374
|
-
requirement: *
|
365
|
+
requirement: *id021
|
375
366
|
- !ruby/object:Gem::Dependency
|
376
|
-
version_requirements: &
|
367
|
+
version_requirements: &id022 !ruby/object:Gem::Requirement
|
377
368
|
none: false
|
378
369
|
requirements:
|
379
370
|
- - ~>
|
@@ -387,6 +378,22 @@ dependencies:
|
|
387
378
|
name: typhoeus
|
388
379
|
type: :development
|
389
380
|
prerelease: false
|
381
|
+
requirement: *id022
|
382
|
+
- !ruby/object:Gem::Dependency
|
383
|
+
version_requirements: &id023 !ruby/object:Gem::Requirement
|
384
|
+
none: false
|
385
|
+
requirements:
|
386
|
+
- - ~>
|
387
|
+
- !ruby/object:Gem::Version
|
388
|
+
hash: 19
|
389
|
+
segments:
|
390
|
+
- 1
|
391
|
+
- 1
|
392
|
+
- 0
|
393
|
+
version: 1.1.0
|
394
|
+
name: yajl-ruby
|
395
|
+
type: :development
|
396
|
+
prerelease: false
|
390
397
|
requirement: *id023
|
391
398
|
description: VCR provides a simple API to record and replay your test suite's HTTP interactions. It works with a variety of HTTP client libraries, HTTP stubbing libraries and testing frameworks.
|
392
399
|
email: myron.marston@gmail.com
|
@@ -512,6 +519,7 @@ files:
|
|
512
519
|
- spec/fixtures/fake_example_responses.yml
|
513
520
|
- spec/fixtures/match_requests_on.yml
|
514
521
|
- spec/monkey_patches.rb
|
522
|
+
- spec/quality_spec.rb
|
515
523
|
- spec/spec_helper.rb
|
516
524
|
- spec/support/fixnum_extension.rb
|
517
525
|
- spec/support/http_library_adapters.rb
|
@@ -645,6 +653,7 @@ test_files:
|
|
645
653
|
- spec/fixtures/fake_example_responses.yml
|
646
654
|
- spec/fixtures/match_requests_on.yml
|
647
655
|
- spec/monkey_patches.rb
|
656
|
+
- spec/quality_spec.rb
|
648
657
|
- spec/spec_helper.rb
|
649
658
|
- spec/support/fixnum_extension.rb
|
650
659
|
- spec/support/http_library_adapters.rb
|