faraday-detailed_logger 2.1.3 → 2.4.1

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: 91d24aff65036d79a388ed02f6e7c229bf97050a428324607d2195e104f8a5d4
4
- data.tar.gz: 9edc0d283c9673ed8296cf029143b008e32c7aff4037bc6c3b3cebf9475055c2
3
+ metadata.gz: cdc735c97b4d58f08ca11313f8dae771a456ac8a05a4c203b23c1b9ab0f2d2a9
4
+ data.tar.gz: acf085ebbb16199c2ebd2580cc8831a1b38de0d7544e4093613bca6397c1900d
5
5
  SHA512:
6
- metadata.gz: a098569911310740177858324eb5b6ae95f21d666ac40ba0ccfb1da38fb15d186af972cae1b0ba016afc2b13a2637903ef2e4128672d94b9a5b81b919f3fd503
7
- data.tar.gz: 78a9805f17cd6fabd388f1a549cce9fe912a3b39708ac18ef9d877e02316eb781f0d7d1eddf5cfb389e828b5c3f1811b6b550da7763006345b289443f2f7ead6
6
+ metadata.gz: cd337f82e560637a95ae0729473fe90ee7f27dc37a029b05e48242889fd1748512983b4c95ed9e7b03c6aadf62974a6a2dc5274caa378aae89b09f600f6865ca
7
+ data.tar.gz: 5dc7bca3b200493a8230b048487832f6dc2a791687cd717b63893cf3601d8e31c0ceeee1419e6c52a77ac40871668f704d0d3265515a451f604f47b1a98cd291
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
1
  --color
2
- --warnings
2
+ --no-profile
3
3
  --require spec_helper
4
+ --warnings
data/.rubocop.yml CHANGED
@@ -1,17 +1,27 @@
1
+ ---
2
+
1
3
  inherit_gem:
2
- rubocop-rails:
3
- - config/rails.yml
4
+ rubocop-rails_config:
5
+ - "config/rails.yml"
6
+
7
+ AllCops:
8
+ Exclude:
9
+ - 'gemfiles/*'
10
+ - 'gemfiles/**/*'
11
+ - 'vendor/**/*'
12
+ TargetRubyVersion: "2.5"
13
+
14
+ Layout/CaseIndentation:
15
+ EnforcedStyle: "end"
16
+
17
+ Layout/EmptyLinesAroundAccessModifier:
18
+ EnforcedStyle: "around"
19
+
20
+ Layout/EndOfLine:
21
+ EnforcedStyle: "lf"
4
22
 
5
23
  Layout/IndentationConsistency:
6
- Enabled: true
7
- EnforcedStyle: normal
24
+ EnforcedStyle: "normal"
8
25
 
9
26
  Style/StringLiterals:
10
- Enabled: true
11
- EnforcedStyle: single_quotes
12
-
13
- AllCops:
14
- Exclude:
15
- - 'gemfiles/*.gemfile'
16
- TargetRailsVersion: 5.2
17
- TargetRubyVersion: 2.5
27
+ EnforcedStyle: "single_quotes"
data/Appraisals CHANGED
@@ -1,23 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'faraday-0.8' do
4
- gem 'faraday', '~> 0.8.0'
3
+ appraise 'faraday-0.16.x' do
4
+ gem 'faraday', '~> 0.16.0'
5
5
  end
6
6
 
7
- appraise 'faraday-0.12' do
8
- gem 'faraday', '~> 0.12.0'
7
+ appraise 'faraday-0.x' do
8
+ gem 'faraday', '~> 0.16'
9
9
  end
10
10
 
11
- appraise 'faraday-0.13' do
12
- gem 'faraday', '~> 0.13.0'
13
- end
14
-
15
- appraise 'faraday-0.14' do
16
- gem 'faraday', '~> 0.14.0'
17
- end
18
-
19
- appraise 'faraday-0.15' do
20
- gem 'faraday', '~> 0.15.0'
11
+ appraise 'faraday-1.x' do
12
+ gem 'faraday', '~> 1.0'
21
13
  end
22
14
 
23
15
  appraise 'faraday-latest' do
data/CHANGELOG.md CHANGED
@@ -1,15 +1,32 @@
1
1
  # Faraday::DetailedLogger changelog
2
2
 
3
- [![Gem Version](https://img.shields.io/gem/v/faraday-detailed_logger.svg)](https://rubygems.org/gems/faraday-detailed_logger)
4
- [![Build Status](https://img.shields.io/travis/envylabs/faraday-detailed_logger/master.svg)](https://travis-ci.org/envylabs/faraday-detailed_logger)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/4d352482c536f5cee0c8/maintainability)](https://codeclimate.com/github/envylabs/faraday-detailed_logger/maintainability)
6
- [![Coverage Status](https://img.shields.io/coveralls/envylabs/faraday-detailed_logger.svg)](https://coveralls.io/r/envylabs/faraday-detailed_logger)
7
- [![Inline docs](https://inch-ci.org/github/envylabs/faraday-detailed_logger.svg?branch=master)](https://inch-ci.org/github/envylabs/faraday-detailed_logger)
3
+ [![Gem Version](https://badge.fury.io/rb/faraday-detailed_logger.svg)](https://badge.fury.io/rb/faraday-detailed_logger)
4
+ [![Tests](https://github.com/envylabs/faraday-detailed_logger/workflows/Tests/badge.svg)](https://github.com/envylabs/faraday-detailed_logger/actions?query=workflow%3ATests)
8
5
 
9
6
  ## [HEAD][] / unreleased
10
7
 
11
8
  * No significant changes.
12
9
 
10
+ ## [2.4.1][] / 2021-11-09
11
+
12
+ * Fix `Faraday::Error: :detailed_logger is not registered on Faraday::Response`
13
+ by relocating middleware registration.
14
+ * Increase the low-end of the faraday dependency to `~> 0.16` for Ruby 3
15
+ compatibility. Versions of faraday earlier than 0.16 are incompatible with
16
+ Ruby 3's Proc interface.
17
+
18
+ ## [2.4.0][] / 2021-11-06
19
+
20
+ * Use [zeitwerk](https://rubygems.org/gems/zeitwerk) autoloading.
21
+
22
+ ## [2.3.0][] / 2020-02-11
23
+
24
+ * Sort the request and response headers when logging.
25
+
26
+ ## [2.2.0][] / 2020-01-02
27
+
28
+ * Add support for faraday 1.0.
29
+
13
30
  ## [2.1.3][] / 2019-04-04
14
31
 
15
32
  * Maintenance release, no functional changes.
@@ -56,4 +73,8 @@
56
73
  [2.1.1]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.0...v2.1.1
57
74
  [2.1.2]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.1...v2.1.2
58
75
  [2.1.3]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.2...v2.1.3
59
- [HEAD]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.3...master
76
+ [2.2.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.3...v2.2.0
77
+ [2.3.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.2.0...v2.3.0
78
+ [2.4.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.3.0...v2.4.0
79
+ [2.4.1]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.4.0...v2.4.1
80
+ [HEAD]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.4.1...main
data/Gemfile.lock CHANGED
@@ -1,133 +1,157 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faraday-detailed_logger (2.1.3)
5
- faraday (~> 0.8)
4
+ faraday-detailed_logger (2.4.1)
5
+ faraday (>= 0.16, < 2)
6
+ zeitwerk (~> 2.0)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- actionpack (5.2.3)
11
- actionview (= 5.2.3)
12
- activesupport (= 5.2.3)
13
- rack (~> 2.0)
11
+ actionpack (6.1.4.1)
12
+ actionview (= 6.1.4.1)
13
+ activesupport (= 6.1.4.1)
14
+ rack (~> 2.0, >= 2.0.9)
14
15
  rack-test (>= 0.6.3)
15
16
  rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (5.2.3)
18
- activesupport (= 5.2.3)
17
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
+ actionview (6.1.4.1)
19
+ activesupport (= 6.1.4.1)
19
20
  builder (~> 3.1)
20
21
  erubi (~> 1.4)
21
22
  rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
- activesupport (5.2.3)
23
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
+ activesupport (6.1.4.1)
24
25
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 0.7, < 2)
26
- minitest (~> 5.1)
27
- tzinfo (~> 1.1)
28
- appraisal (2.2.0)
26
+ i18n (>= 1.6, < 2)
27
+ minitest (>= 5.1)
28
+ tzinfo (~> 2.0)
29
+ zeitwerk (~> 2.3)
30
+ appraisal (2.4.1)
29
31
  bundler
30
32
  rake
31
33
  thor (>= 0.14.0)
32
- ast (2.4.0)
33
- builder (3.2.3)
34
- concurrent-ruby (1.1.5)
35
- coveralls (0.8.22)
36
- json (>= 1.8, < 3)
37
- simplecov (~> 0.16.1)
38
- term-ansicolor (~> 1.3)
39
- thor (~> 0.19.4)
40
- tins (~> 1.6)
41
- crass (1.0.4)
42
- diff-lcs (1.3)
43
- docile (1.3.1)
44
- erubi (1.8.0)
45
- faraday (0.15.4)
34
+ ast (2.4.2)
35
+ builder (3.2.4)
36
+ concurrent-ruby (1.1.9)
37
+ crass (1.0.6)
38
+ diff-lcs (1.4.4)
39
+ erubi (1.10.0)
40
+ faraday (1.8.0)
41
+ faraday-em_http (~> 1.0)
42
+ faraday-em_synchrony (~> 1.0)
43
+ faraday-excon (~> 1.1)
44
+ faraday-httpclient (~> 1.0.1)
45
+ faraday-net_http (~> 1.0)
46
+ faraday-net_http_persistent (~> 1.1)
47
+ faraday-patron (~> 1.0)
48
+ faraday-rack (~> 1.0)
46
49
  multipart-post (>= 1.2, < 3)
47
- i18n (1.6.0)
50
+ ruby2_keywords (>= 0.0.4)
51
+ faraday-em_http (1.0.0)
52
+ faraday-em_synchrony (1.0.0)
53
+ faraday-excon (1.1.0)
54
+ faraday-httpclient (1.0.1)
55
+ faraday-net_http (1.0.1)
56
+ faraday-net_http_persistent (1.2.0)
57
+ faraday-patron (1.0.0)
58
+ faraday-rack (1.0.0)
59
+ i18n (1.8.11)
48
60
  concurrent-ruby (~> 1.0)
49
- jaro_winkler (1.5.2)
50
- json (2.2.0)
51
- license_finder (5.7.1)
61
+ license_finder (6.14.2)
52
62
  bundler
53
- rubyzip
54
- thor
55
- toml (= 0.2.0)
63
+ rubyzip (>= 1, < 3)
64
+ thor (~> 1.0.1)
65
+ tomlrb (>= 1.3, < 2.1)
56
66
  with_env (= 1.1.0)
57
- xml-simple
58
- loofah (2.2.3)
67
+ xml-simple (~> 1.1.5)
68
+ loofah (2.12.0)
59
69
  crass (~> 1.0.2)
60
70
  nokogiri (>= 1.5.9)
61
- method_source (0.9.2)
62
- mini_portile2 (2.4.0)
63
- minitest (5.11.3)
64
- multipart-post (2.0.0)
65
- nokogiri (1.10.2)
66
- mini_portile2 (~> 2.4.0)
67
- parallel (1.17.0)
68
- parser (2.6.2.0)
69
- ast (~> 2.4.0)
70
- parslet (1.8.2)
71
- psych (3.1.0)
72
- rack (2.0.7)
71
+ method_source (1.0.0)
72
+ mini_portile2 (2.6.1)
73
+ minitest (5.14.4)
74
+ multipart-post (2.1.1)
75
+ nokogiri (1.12.5)
76
+ mini_portile2 (~> 2.6.1)
77
+ racc (~> 1.4)
78
+ parallel (1.21.0)
79
+ parser (3.0.2.0)
80
+ ast (~> 2.4.1)
81
+ racc (1.6.0)
82
+ rack (2.2.3)
73
83
  rack-test (1.1.0)
74
84
  rack (>= 1.0, < 3)
75
85
  rails-dom-testing (2.0.3)
76
86
  activesupport (>= 4.2.0)
77
87
  nokogiri (>= 1.6)
78
- rails-html-sanitizer (1.0.4)
79
- loofah (~> 2.2, >= 2.2.2)
80
- railties (5.2.3)
81
- actionpack (= 5.2.3)
82
- activesupport (= 5.2.3)
88
+ rails-html-sanitizer (1.4.2)
89
+ loofah (~> 2.3)
90
+ railties (6.1.4.1)
91
+ actionpack (= 6.1.4.1)
92
+ activesupport (= 6.1.4.1)
83
93
  method_source
84
- rake (>= 0.8.7)
85
- thor (>= 0.19.0, < 2.0)
94
+ rake (>= 0.13)
95
+ thor (~> 1.0)
86
96
  rainbow (3.0.0)
87
- rake (12.3.2)
88
- rspec (3.8.0)
89
- rspec-core (~> 3.8.0)
90
- rspec-expectations (~> 3.8.0)
91
- rspec-mocks (~> 3.8.0)
92
- rspec-core (3.8.0)
93
- rspec-support (~> 3.8.0)
94
- rspec-expectations (3.8.2)
97
+ rake (13.0.6)
98
+ regexp_parser (2.1.1)
99
+ rexml (3.2.5)
100
+ rspec (3.10.0)
101
+ rspec-core (~> 3.10.0)
102
+ rspec-expectations (~> 3.10.0)
103
+ rspec-mocks (~> 3.10.0)
104
+ rspec-core (3.10.1)
105
+ rspec-support (~> 3.10.0)
106
+ rspec-expectations (3.10.1)
95
107
  diff-lcs (>= 1.2.0, < 2.0)
96
- rspec-support (~> 3.8.0)
97
- rspec-mocks (3.8.0)
108
+ rspec-support (~> 3.10.0)
109
+ rspec-mocks (3.10.2)
98
110
  diff-lcs (>= 1.2.0, < 2.0)
99
- rspec-support (~> 3.8.0)
100
- rspec-support (3.8.0)
101
- rubocop (0.67.0)
102
- jaro_winkler (~> 1.5.1)
111
+ rspec-support (~> 3.10.0)
112
+ rspec-support (3.10.3)
113
+ rubocop (1.22.3)
103
114
  parallel (~> 1.10)
104
- parser (>= 2.5, != 2.5.1.1)
105
- psych (>= 3.1.0)
115
+ parser (>= 3.0.0.0)
106
116
  rainbow (>= 2.2.2, < 4.0)
117
+ regexp_parser (>= 1.8, < 3.0)
118
+ rexml
119
+ rubocop-ast (>= 1.12.0, < 2.0)
107
120
  ruby-progressbar (~> 1.7)
108
- unicode-display_width (>= 1.4.0, < 1.6)
109
- rubocop-rails_config (0.5.0)
110
- railties (>= 3.0)
111
- rubocop (~> 0.60)
112
- ruby-progressbar (1.10.0)
113
- rubyzip (1.2.2)
114
- simplecov (0.16.1)
115
- docile (~> 1.1)
116
- json (>= 1.8, < 3)
117
- simplecov-html (~> 0.10.0)
118
- simplecov-html (0.10.2)
119
- term-ansicolor (1.7.1)
120
- tins (~> 1.0)
121
- thor (0.19.4)
122
- thread_safe (0.3.6)
123
- tins (1.20.2)
124
- toml (0.2.0)
125
- parslet (~> 1.8.0)
126
- tzinfo (1.2.5)
127
- thread_safe (~> 0.1)
128
- unicode-display_width (1.5.0)
121
+ unicode-display_width (>= 1.4.0, < 3.0)
122
+ rubocop-ast (1.12.0)
123
+ parser (>= 3.0.1.1)
124
+ rubocop-minitest (0.15.2)
125
+ rubocop (>= 0.90, < 2.0)
126
+ rubocop-packaging (0.5.1)
127
+ rubocop (>= 0.89, < 2.0)
128
+ rubocop-performance (1.12.0)
129
+ rubocop (>= 1.7.0, < 2.0)
130
+ rubocop-ast (>= 0.4.0)
131
+ rubocop-rails (2.12.4)
132
+ activesupport (>= 4.2.0)
133
+ rack (>= 1.1)
134
+ rubocop (>= 1.7.0, < 2.0)
135
+ rubocop-rails_config (1.7.4)
136
+ railties (>= 5.0)
137
+ rubocop (>= 1.19)
138
+ rubocop-ast (>= 1.0.1)
139
+ rubocop-minitest (~> 0.15)
140
+ rubocop-packaging (~> 0.5)
141
+ rubocop-performance (~> 1.11)
142
+ rubocop-rails (~> 2.0)
143
+ ruby-progressbar (1.11.0)
144
+ ruby2_keywords (0.0.5)
145
+ rubyzip (2.3.2)
146
+ thor (1.0.1)
147
+ tomlrb (2.0.1)
148
+ tzinfo (2.0.4)
149
+ concurrent-ruby (~> 1.0)
150
+ unicode-display_width (2.1.0)
129
151
  with_env (1.1.0)
130
- xml-simple (1.1.5)
152
+ xml-simple (1.1.9)
153
+ rexml
154
+ zeitwerk (2.5.1)
131
155
 
132
156
  PLATFORMS
133
157
  ruby
@@ -135,12 +159,11 @@ PLATFORMS
135
159
  DEPENDENCIES
136
160
  appraisal (~> 2.0)
137
161
  bundler (~> 2.0)
138
- coveralls
139
162
  faraday-detailed_logger!
140
- license_finder (~> 5.0)
141
- rake (~> 12.0)
163
+ license_finder (~> 6.0)
164
+ rake (~> 13.0)
142
165
  rspec (~> 3.0)
143
- rubocop-rails_config (~> 0.5.0)
166
+ rubocop-rails_config (~> 1.3)
144
167
 
145
168
  BUNDLED WITH
146
- 2.0.1
169
+ 2.2.30
data/README.md CHANGED
@@ -1,10 +1,7 @@
1
1
  # Faraday::DetailedLogger
2
2
 
3
- [![Gem Version](https://img.shields.io/gem/v/faraday-detailed_logger.svg)](https://rubygems.org/gems/faraday-detailed_logger)
4
- [![Build Status](https://img.shields.io/travis/envylabs/faraday-detailed_logger/master.svg)](https://travis-ci.org/envylabs/faraday-detailed_logger)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/4d352482c536f5cee0c8/maintainability)](https://codeclimate.com/github/envylabs/faraday-detailed_logger/maintainability)
6
- [![Coverage Status](https://img.shields.io/coveralls/envylabs/faraday-detailed_logger.svg)](https://coveralls.io/r/envylabs/faraday-detailed_logger)
7
- [![Inline docs](https://inch-ci.org/github/envylabs/faraday-detailed_logger.svg?branch=master)](https://inch-ci.org/github/envylabs/faraday-detailed_logger)
3
+ [![Gem Version](https://badge.fury.io/rb/faraday-detailed_logger.svg)](https://badge.fury.io/rb/faraday-detailed_logger)
4
+ [![Tests](https://github.com/envylabs/faraday-detailed_logger/workflows/Tests/badge.svg)](https://github.com/envylabs/faraday-detailed_logger/actions?query=workflow%3ATests)
8
5
 
9
6
  A Faraday middleware used for providing debug- and info-level logging
10
7
  information. The request and response logs follow very closely with cURL output
@@ -1,23 +1,23 @@
1
1
  ---
2
- - - :whitelist
2
+ - - :permit
3
3
  - MIT
4
4
  - :who: Nathaniel Bibler
5
5
  :why: This license is FSF and OSI approved.
6
6
  :versions: []
7
7
  :when: 2018-02-20 17:46:01.372600000 Z
8
- - - :whitelist
8
+ - - :permit
9
9
  - Simplified BSD
10
10
  - :who: Nathaniel Bibler
11
11
  :why: This license is FSF and OSI approved.
12
12
  :versions: []
13
13
  :when: 2018-02-20 17:46:13.990005000 Z
14
- - - :whitelist
14
+ - - :permit
15
15
  - Ruby
16
16
  - :who: Nathaniel Bibler
17
17
  :why: This license is FSF approved.
18
18
  :versions: []
19
19
  :when: 2018-02-20 17:46:30.088049000 Z
20
- - - :whitelist
20
+ - - :permit
21
21
  - Apache-2.0
22
22
  - :who: Nathaniel Bibler
23
23
  :why: This license is FSF and OSI approved.
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'faraday/detailed_logger/version'
3
+ require_relative 'lib/faraday/detailed_logger/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'faraday-detailed_logger'
@@ -17,26 +15,29 @@ Gem::Specification.new do |spec|
17
15
  )
18
16
  spec.homepage = 'https://github.com/envylabs/faraday-detailed_logger'
19
17
  spec.license = 'MIT'
18
+ spec.required_ruby_version = '>= 2.4.0'
20
19
 
21
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.metadata['bug_tracker_uri'] = 'https://github.com/envylabs/faraday-detailed_logger/issues'
21
+ spec.metadata['changelog_uri'] = 'https://github.com/envylabs/faraday-detailed_logger/blob/main/CHANGELOG.md'
22
+ spec.metadata['source_code_uri'] = 'https://github.com/envylabs/faraday-detailed_logger'
23
+
24
+ # Specify which files should be added to the gem when it is released.
25
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
+ `git ls-files -z`.split("\x0").reject do |f|
28
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
29
+ end
23
30
  end
24
31
 
25
- spec.bindir = 'exe'
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
32
  spec.require_paths = ['lib']
28
33
 
29
- spec.metadata['changelog_uri'] = 'https://github.com/envylabs/faraday-detailed_logger/blob/master/CHANGELOG.md'
30
- spec.metadata['source_code_uri'] = 'https://github.com/envylabs/faraday-detailed_logger'
31
- spec.metadata['bug_tracker_uri'] = 'https://github.com/envylabs/faraday-detailed_logger/issues'
32
-
33
- spec.add_runtime_dependency 'faraday', '~> 0.8'
34
+ spec.add_runtime_dependency 'faraday', '>= 0.16', '< 2'
35
+ spec.add_runtime_dependency 'zeitwerk', '~> 2.0'
34
36
 
35
37
  spec.add_development_dependency 'appraisal', '~> 2.0'
36
38
  spec.add_development_dependency 'bundler', '~> 2.0'
37
- spec.add_development_dependency 'coveralls'
38
- spec.add_development_dependency 'license_finder', '~> 5.0'
39
- spec.add_development_dependency 'rake', '~> 12.0'
39
+ spec.add_development_dependency 'license_finder', '~> 6.0'
40
+ spec.add_development_dependency 'rake', '~> 13.0'
40
41
  spec.add_development_dependency 'rspec', '~> 3.0'
41
- spec.add_development_dependency 'rubocop-rails_config', '~> 0.5.0'
42
+ spec.add_development_dependency 'rubocop-rails_config', '~> 1.3'
42
43
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.15.0"
5
+ gem "faraday", "~> 0.16.0"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.8.0"
5
+ gem "faraday", "~> 0.16"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.13.0"
5
+ gem "faraday", "~> 1.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday/detailed_logger/tagged_logging'
5
4
 
6
5
  module Faraday
7
6
  module DetailedLogger
@@ -91,7 +90,7 @@ module Faraday
91
90
  end
92
91
 
93
92
  def curl_output(headers, body)
94
- string = headers.map { |k, v| "#{k}: #{v}" }.join("\n")
93
+ string = headers.to_a.sort_by(&:first).map { |k, v| "#{k}: #{v}" }.join("\n")
95
94
  string + "\n\n#{body}"
96
95
  end
97
96
 
@@ -106,5 +105,3 @@ module Faraday
106
105
  end
107
106
  end
108
107
  end
109
-
110
- Faraday::Response.register_middleware(detailed_logger: Faraday::DetailedLogger::Middleware)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module DetailedLogger
5
- VERSION = '2.1.3'
5
+ VERSION = '2.4.1'
6
6
  end
7
7
  end
@@ -1,9 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'faraday/detailed_logger/version'
4
- require 'faraday/detailed_logger/middleware'
3
+ require 'zeitwerk'
4
+ loader = Zeitwerk::Loader.new
5
+ loader.tag = 'faraday-detailed_logger'
6
+ loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
7
+ loader.push_dir(File.join(__dir__, '..'))
8
+ loader.ignore(__FILE__)
9
+ loader.setup
10
+
11
+ require 'faraday'
5
12
 
6
13
  module Faraday
7
14
  module DetailedLogger
8
15
  end
9
16
  end
17
+
18
+ Faraday::Response.register_middleware(detailed_logger: Faraday::DetailedLogger::Middleware)
metadata CHANGED
@@ -1,37 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-detailed_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envy Labs
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.16'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.8'
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.16'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.8'
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
- name: appraisal
34
+ name: zeitwerk
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
39
  version: '2.0'
34
- type: :development
40
+ type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
@@ -39,7 +45,7 @@ dependencies:
39
45
  - !ruby/object:Gem::Version
40
46
  version: '2.0'
41
47
  - !ruby/object:Gem::Dependency
42
- name: bundler
48
+ name: appraisal
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
@@ -53,47 +59,47 @@ dependencies:
53
59
  - !ruby/object:Gem::Version
54
60
  version: '2.0'
55
61
  - !ruby/object:Gem::Dependency
56
- name: coveralls
62
+ name: bundler
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - ">="
65
+ - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '0'
67
+ version: '2.0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - ">="
72
+ - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '0'
74
+ version: '2.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: license_finder
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - "~>"
74
80
  - !ruby/object:Gem::Version
75
- version: '5.0'
81
+ version: '6.0'
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
86
  - - "~>"
81
87
  - !ruby/object:Gem::Version
82
- version: '5.0'
88
+ version: '6.0'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: rake
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '12.0'
95
+ version: '13.0'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '12.0'
102
+ version: '13.0'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: rspec
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +120,14 @@ dependencies:
114
120
  requirements:
115
121
  - - "~>"
116
122
  - !ruby/object:Gem::Version
117
- version: 0.5.0
123
+ version: '1.3'
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
128
  - - "~>"
123
129
  - !ruby/object:Gem::Version
124
- version: 0.5.0
130
+ version: '1.3'
125
131
  description: "\n A Faraday middleware for logging request and response activity
126
132
  including\n method, URI, headers, and body at varying log levels.\n "
127
133
  email:
@@ -130,11 +136,8 @@ executables: []
130
136
  extensions: []
131
137
  extra_rdoc_files: []
132
138
  files:
133
- - ".gitignore"
134
- - ".hound.yml"
135
139
  - ".rspec"
136
140
  - ".rubocop.yml"
137
- - ".travis.yml"
138
141
  - Appraisals
139
142
  - CHANGELOG.md
140
143
  - Gemfile
@@ -146,11 +149,9 @@ files:
146
149
  - bin/setup
147
150
  - doc/dependency_decisions.yml
148
151
  - faraday-detailed_logger.gemspec
149
- - gemfiles/faraday_0.12.gemfile
150
- - gemfiles/faraday_0.13.gemfile
151
- - gemfiles/faraday_0.14.gemfile
152
- - gemfiles/faraday_0.15.gemfile
153
- - gemfiles/faraday_0.8.gemfile
152
+ - gemfiles/faraday_0.16.x.gemfile
153
+ - gemfiles/faraday_0.x.gemfile
154
+ - gemfiles/faraday_1.x.gemfile
154
155
  - gemfiles/faraday_canary.gemfile
155
156
  - gemfiles/faraday_latest.gemfile
156
157
  - lib/faraday/detailed_logger.rb
@@ -161,10 +162,10 @@ homepage: https://github.com/envylabs/faraday-detailed_logger
161
162
  licenses:
162
163
  - MIT
163
164
  metadata:
164
- changelog_uri: https://github.com/envylabs/faraday-detailed_logger/blob/master/CHANGELOG.md
165
- source_code_uri: https://github.com/envylabs/faraday-detailed_logger
166
165
  bug_tracker_uri: https://github.com/envylabs/faraday-detailed_logger/issues
167
- post_install_message:
166
+ changelog_uri: https://github.com/envylabs/faraday-detailed_logger/blob/main/CHANGELOG.md
167
+ source_code_uri: https://github.com/envylabs/faraday-detailed_logger
168
+ post_install_message:
168
169
  rdoc_options: []
169
170
  require_paths:
170
171
  - lib
@@ -172,15 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
173
  requirements:
173
174
  - - ">="
174
175
  - !ruby/object:Gem::Version
175
- version: '0'
176
+ version: 2.4.0
176
177
  required_rubygems_version: !ruby/object:Gem::Requirement
177
178
  requirements:
178
179
  - - ">="
179
180
  - !ruby/object:Gem::Version
180
181
  version: '0'
181
182
  requirements: []
182
- rubygems_version: 3.0.3
183
- signing_key:
183
+ rubygems_version: 3.2.22
184
+ signing_key:
184
185
  specification_version: 4
185
186
  summary: A detailed request and response logger for Faraday.
186
187
  test_files: []
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- /.ruby-version
14
- /gemfiles/.bundle/
15
- /gemfiles/*.gemfile.lock
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop.yml
data/.travis.yml DELETED
@@ -1,61 +0,0 @@
1
- ---
2
- before_install:
3
- - gem install bundler -v 2.0.1
4
- before_script:
5
- - bundle exec license_finder licenses add bundler MIT
6
- branches:
7
- only:
8
- - master
9
- - /^v\d+\.\d+\.\d+/
10
- cache:
11
- bundler: true
12
- dist: xenial
13
- jobs:
14
- allow_failures:
15
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_canary.gemfile
16
- rvm: 2.6.2
17
-
18
- fail_fast: true
19
-
20
- include:
21
- - stage: Test
22
- script: bundle exec rake
23
- rvm: 2.6.2
24
-
25
- - stage: Latest Faraday Release
26
- env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_latest.gemfile
27
- rvm: 2.6.2
28
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_latest.gemfile
29
- rvm: 2.5.5
30
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_latest.gemfile
31
- rvm: 2.4.5
32
-
33
- - stage: Additional Faraday Tests
34
- env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.15.gemfile
35
- rvm: 2.6.2
36
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.15.gemfile
37
- rvm: 2.4.5
38
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.14.gemfile
39
- rvm: 2.6.2
40
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.14.gemfile
41
- rvm: 2.4.5
42
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.13.gemfile
43
- rvm: 2.6.2
44
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.13.gemfile
45
- rvm: 2.4.5
46
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.12.gemfile
47
- rvm: 2.6.2
48
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.12.gemfile
49
- rvm: 2.4.5
50
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.8.gemfile
51
- rvm: 2.6.2
52
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_0.8.gemfile
53
- rvm: 2.4.5
54
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/faraday_canary.gemfile
55
- rvm: 2.6.2
56
- language: ruby
57
- notifications:
58
- email: false
59
- script:
60
- - bundle exec license_finder --quiet
61
- - bundle exec rake
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.12.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.14.0"
6
-
7
- gemspec path: "../"