vcr-proxy 0.1.9 → 0.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07994befde2e4f31f77aecbede9025d962660100931c9bb19b36f1f85599d8f0'
4
- data.tar.gz: f5d8aba52343655fa409d9a843604d73aa271792492dcc3c0b966720299ba845
3
+ metadata.gz: 0a96f3483dc6e1aa63c065b3acfe0ae9c54525d2e6a33a284f46b5c96ed38f86
4
+ data.tar.gz: 5819eb0843405c3ae17181a7d449f96652e0a3118eeb9142ddf517c8b970b910
5
5
  SHA512:
6
- metadata.gz: 15c64956240280ff176faa05e1c33583b525ad22de557f9d0c61fffd038da55fb97fabff455d95fe8851a54887b4614184e524c2cdab17372140b56a73b45211
7
- data.tar.gz: 96835c14f7d5180bdacd4b5b4adc7502044bf58fea944aeacb5c88d94a97a92a10b8d3a0994185d5396dd4acfb4b7c012f93a5451e9905c088fccb1a3870f196
6
+ metadata.gz: 4c7cfdb08fc56aae8a7cd4b516b2f73855a3af3a7084ee631f581a4e847c81b724194a4bddd01375276f15022feefa79e9921942db07266ce0e437f78de55282
7
+ data.tar.gz: cca5f1a77aaee536f3f7bba9686aee41b368cbf8ad5098f8abdffa1f0768f13e239c32eb0f32fca2653a0601cf65ded715f6e11f5e1bff30f935841d8d2deed7
@@ -3,5 +3,15 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.3
7
- before_install: gem install bundler -v 2.0.1
6
+ - 2.3
7
+ - 2.4
8
+ - 2.5
9
+ - 2.6
10
+ script:
11
+ - bundle exec rackup test/fake_app.rb &
12
+ - bundle exec rake test
13
+
14
+ before_install:
15
+ - gem install bundler -v 2.0.1
16
+ notifications:
17
+ email: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vcr-proxy (0.1.9)
4
+ vcr-proxy (0.1.10)
5
5
  faraday
6
6
  sinatra
7
7
  vcr
@@ -13,27 +13,29 @@ GEM
13
13
  public_suffix (>= 2.0.2, < 5.0)
14
14
  crack (0.4.3)
15
15
  safe_yaml (~> 1.0.0)
16
- faraday (0.17.0)
16
+ faraday (1.0.1)
17
17
  multipart-post (>= 1.2, < 3)
18
18
  hashdiff (1.0.0)
19
19
  minitest (5.13.0)
20
20
  multipart-post (2.1.1)
21
- mustermann (1.0.3)
21
+ mustermann (1.1.1)
22
+ ruby2_keywords (~> 0.0.1)
22
23
  public_suffix (4.0.1)
23
- rack (2.0.7)
24
- rack-protection (2.0.7)
24
+ rack (2.0.8)
25
+ rack-protection (2.0.8.1)
25
26
  rack
26
27
  rack-test (1.1.0)
27
28
  rack (>= 1.0, < 3)
28
- rake (10.5.0)
29
+ rake (13.0.1)
30
+ ruby2_keywords (0.0.2)
29
31
  safe_yaml (1.0.5)
30
- sinatra (2.0.7)
32
+ sinatra (2.0.8.1)
31
33
  mustermann (~> 1.0)
32
34
  rack (~> 2.0)
33
- rack-protection (= 2.0.7)
35
+ rack-protection (= 2.0.8.1)
34
36
  tilt (~> 2.0)
35
37
  tilt (2.0.10)
36
- vcr (5.0.0)
38
+ vcr (5.1.0)
37
39
  webmock (3.7.6)
38
40
  addressable (>= 2.3.6)
39
41
  crack (>= 0.3.2)
@@ -46,9 +48,9 @@ DEPENDENCIES
46
48
  bundler (~> 2.0)
47
49
  minitest (~> 5.0)
48
50
  rack-test
49
- rake (~> 10.0)
51
+ rake (~> 13.0)
50
52
  vcr-proxy!
51
53
  webmock
52
54
 
53
55
  BUNDLED WITH
54
- 2.0.1
56
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Jose Galisteo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -58,8 +58,13 @@ class App < Sinatra::Base
58
58
  end
59
59
 
60
60
  def request_headers
61
- @request_headers ||= env.select { |k, _v| k.start_with? 'HTTP_' }
62
- .transform_keys { |k| k.sub(/^HTTP_/, '').split('_').map(&:capitalize).join('-') }
61
+ selected_headers = env.select { |k, _v| k.start_with? 'HTTP_' }.each_with_object({}) do |item, object|
62
+ object[item[0].sub(/^HTTP_/, '').split('_').map(&:capitalize).join('-')] = item[1]
63
+ end
64
+
65
+ selected_headers.delete('Host')
66
+
67
+ selected_headers
63
68
  end
64
69
 
65
70
  def vcr_wrapper(verb)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VCR
4
4
  module Proxy
5
- VERSION = '0.1.9'
5
+ VERSION = '0.1.10'
6
6
  end
7
7
  end
@@ -41,6 +41,6 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency 'bundler', '~> 2.0'
42
42
  spec.add_development_dependency 'minitest', '~> 5.0'
43
43
  spec.add_development_dependency 'rack-test'
44
- spec.add_development_dependency 'rake', '~> 10.0'
44
+ spec.add_development_dependency 'rake', '~> 13.0'
45
45
  spec.add_development_dependency 'webmock'
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcr-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Galisteo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '10.0'
103
+ version: '13.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '10.0'
110
+ version: '13.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +125,7 @@ dependencies:
125
125
  description: 'Web proxy based on Sinatra and VCR to record and replay all the http
126
126
  requests, useful for end to end tests.
127
127
 
128
- '
128
+ '
129
129
  email:
130
130
  - ceritium@gmail.com
131
131
  executables:
@@ -138,6 +138,7 @@ files:
138
138
  - CODE_OF_CONDUCT.md
139
139
  - Gemfile
140
140
  - Gemfile.lock
141
+ - LICENSE
141
142
  - README.md
142
143
  - Rakefile
143
144
  - bin/console
@@ -167,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
168
  - !ruby/object:Gem::Version
168
169
  version: '0'
169
170
  requirements: []
170
- rubyforge_project:
171
- rubygems_version: 2.7.6
171
+ rubygems_version: 3.0.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: VCR web proxy