vcr-proxy 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8042c4c16ed3cc453ffe133386f1d96f9a8ce209c9870c6d48091f387a7fc71
4
- data.tar.gz: 31d1edf68ed4ea5e62bf19b4bb86715758e7fbbeae0d7a97b1210bfc1f78e9df
3
+ metadata.gz: 59e932d8fdf1781b07531d74fe61cf68f26dbe807c5b7decf84a4cac6476d2de
4
+ data.tar.gz: 77785bbad851da6dd658c84e957dde19f21606fc31095d59804a853dcd261952
5
5
  SHA512:
6
- metadata.gz: 641583bf5e16796b4d6e29fd520cb152dcea8297b68e66791f82b6854ff6a019398e808b8d83c2a99d00f5fc995c1b42167f48a5564827b7bdce8c84b7943386
7
- data.tar.gz: ec876767e57bf5faa29a64799b450ac0c6e5884d036b419912e8e58cc551a9b74bd2d1af2b07f05695f08353872bacf06335b39afca5e463c9da1799e9708b99
6
+ metadata.gz: 7d89abf5c55a33564e2179447cb2640984ea17a76f08f8f4aba45bcc315f3d8b8dd2b3df2e7b57f831e815b8cd7e7d740b55e60fd101565c1a4cc94ccc72acf7
7
+ data.tar.gz: 21229e356f042dc6d058722fb67e11472aee2902ed4b2656c11fdb1e6f2bdd61942e0f718a7e4f6771f0b5ef1076ab2c1880aeb72c2452d5607590c81dc6a106
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in vcr-proxy.gemspec
4
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,19 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vcr-proxy (0.1.4)
4
+ vcr-proxy (0.1.5)
5
5
  sinatra
6
6
  vcr
7
+ webmock
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
12
+ addressable (2.7.0)
13
+ public_suffix (>= 2.0.2, < 5.0)
14
+ crack (0.4.3)
15
+ safe_yaml (~> 1.0.0)
16
+ hashdiff (1.0.0)
11
17
  minitest (5.13.0)
12
18
  mustermann (1.0.3)
19
+ public_suffix (4.0.1)
13
20
  rack (2.0.7)
14
21
  rack-protection (2.0.7)
15
22
  rack
16
23
  rake (10.5.0)
24
+ safe_yaml (1.0.5)
17
25
  sinatra (2.0.7)
18
26
  mustermann (~> 1.0)
19
27
  rack (~> 2.0)
@@ -21,6 +29,10 @@ GEM
21
29
  tilt (~> 2.0)
22
30
  tilt (2.0.10)
23
31
  vcr (5.0.0)
32
+ webmock (3.7.6)
33
+ addressable (>= 2.3.6)
34
+ crack (>= 0.3.2)
35
+ hashdiff (>= 0.4.0, < 2.0.0)
24
36
 
25
37
  PLATFORMS
26
38
  ruby
data/bin/vcr-proxy CHANGED
@@ -2,9 +2,8 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'bundler/setup'
5
- require 'rubygems'
6
- require 'vcr'
7
5
  require 'optparse'
6
+ require 'vcr'
8
7
  require 'vcr/proxy'
9
8
 
10
9
  ARGV << '-h' if ARGV.empty?
@@ -36,6 +35,7 @@ end.parse!
36
35
 
37
36
  VCR.configure do |config|
38
37
  config.cassette_library_dir = VCR::Proxy.config.cassette_library_dir
38
+ config.hook_into :webmock
39
39
  end
40
40
 
41
41
  require 'vcr/proxy/app'
data/lib/vcr/proxy/app.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'sinatra/base'
4
4
  require 'net/http'
5
+ require 'vcr'
5
6
 
6
7
  # Sinatra App which proxy calls caching the response with VCR
7
8
  class App < Sinatra::Base
@@ -1,5 +1,5 @@
1
1
  module VCR
2
2
  module Proxy
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
data/vcr-proxy.gemspec CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_dependency 'sinatra'
38
38
  spec.add_dependency 'vcr'
39
+ spec.add_dependency 'webmock'
39
40
  spec.add_development_dependency 'bundler', '~> 2.0'
40
41
  spec.add_development_dependency 'minitest', '~> 5.0'
41
42
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcr-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Galisteo
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: webmock
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement