faraday-detailed_logger 2.2.0 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -1
- data/.rubocop.yml +0 -3
- data/Appraisals +3 -3
- data/CHANGELOG.md +30 -6
- data/Gemfile.lock +112 -97
- data/README.md +2 -5
- data/faraday-detailed_logger.gemspec +15 -15
- data/lib/faraday/detailed_logger/middleware.rb +1 -3
- data/lib/faraday/detailed_logger/version.rb +1 -1
- data/lib/faraday/detailed_logger.rb +4 -0
- metadata +16 -40
- data/.gitignore +0 -15
- data/.travis.yml +0 -39
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/doc/dependency_decisions.yml +0 -25
- data/gemfiles/faraday_0.8.gemfile +0 -7
- data/gemfiles/faraday_0.x.gemfile +0 -7
- data/gemfiles/faraday_1.x.gemfile +0 -7
- data/gemfiles/faraday_canary.gemfile +0 -7
- data/gemfiles/faraday_latest.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a686fbdcac03dc9553636285c80a55e6ecdf61215071e97c414a3f895f384bbc
|
4
|
+
data.tar.gz: 7a6651d0800697f224c3f9332a21e35f2c0736611a9508b99593b0284e9f88cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0babd0756cefda4d3225a942841b2f98d3cdb45cc5ef01374807379462e8b0920d7bfa517023e0fe5f759d628304d015d9996f161a53ef6288aec5edfc080d19
|
7
|
+
data.tar.gz: 81c824acc1708a8fb4229da7830bd17c13b1badd586e2f6ffe1382aa34456983515a21fc63fb6eef94cc6d7c66acc98f1389be28a5da60ce130888f05d72dec5
|
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise 'faraday-0.
|
4
|
-
gem 'faraday', '~> 0.
|
3
|
+
appraise 'faraday-0.16.x' do
|
4
|
+
gem 'faraday', '~> 0.16.0'
|
5
5
|
end
|
6
6
|
|
7
7
|
appraise 'faraday-0.x' do
|
8
|
-
gem 'faraday', '~> 0.
|
8
|
+
gem 'faraday', '~> 0.16'
|
9
9
|
end
|
10
10
|
|
11
11
|
appraise 'faraday-1.x' do
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
# Faraday::DetailedLogger changelog
|
2
2
|
|
3
|
-
[![Gem Version](https://
|
4
|
-
[![
|
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.2][] / 2021-11-09
|
11
|
+
|
12
|
+
* Revert zeitwerk autoloading changes.
|
13
|
+
|
14
|
+
The existing implementation caused application errors citing a `uninitialized
|
15
|
+
constant Faraday::DetailedLogger::Middleware`.
|
16
|
+
|
17
|
+
## [2.4.1][] / 2021-11-09
|
18
|
+
|
19
|
+
* Fix `Faraday::Error: :detailed_logger is not registered on Faraday::Response`
|
20
|
+
by relocating middleware registration.
|
21
|
+
* Increase the low-end of the faraday dependency to `~> 0.16` for Ruby 3
|
22
|
+
compatibility. Versions of faraday earlier than 0.16 are incompatible with
|
23
|
+
Ruby 3's Proc interface.
|
24
|
+
|
25
|
+
## [2.4.0][] / 2021-11-06
|
26
|
+
|
27
|
+
* Use [zeitwerk](https://rubygems.org/gems/zeitwerk) autoloading.
|
28
|
+
|
29
|
+
## [2.3.0][] / 2020-02-11
|
30
|
+
|
31
|
+
* Sort the request and response headers when logging.
|
32
|
+
|
13
33
|
## [2.2.0][] / 2020-01-02
|
14
34
|
|
15
35
|
* Add support for faraday 1.0.
|
@@ -61,4 +81,8 @@
|
|
61
81
|
[2.1.2]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.1...v2.1.2
|
62
82
|
[2.1.3]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.2...v2.1.3
|
63
83
|
[2.2.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.3...v2.2.0
|
64
|
-
[
|
84
|
+
[2.3.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.2.0...v2.3.0
|
85
|
+
[2.4.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.3.0...v2.4.0
|
86
|
+
[2.4.1]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.4.0...v2.4.1
|
87
|
+
[2.4.2]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.4.1...v2.4.2
|
88
|
+
[HEAD]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.4.2...main
|
data/Gemfile.lock
CHANGED
@@ -1,140 +1,156 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
faraday-detailed_logger (2.2
|
5
|
-
faraday (>= 0.
|
4
|
+
faraday-detailed_logger (2.4.2)
|
5
|
+
faraday (>= 0.16, < 2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.
|
11
|
-
actionview (= 6.
|
12
|
-
activesupport (= 6.
|
13
|
-
rack (~> 2.0, >= 2.0.
|
10
|
+
actionpack (6.1.4.1)
|
11
|
+
actionview (= 6.1.4.1)
|
12
|
+
activesupport (= 6.1.4.1)
|
13
|
+
rack (~> 2.0, >= 2.0.9)
|
14
14
|
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
-
actionview (6.
|
18
|
-
activesupport (= 6.
|
17
|
+
actionview (6.1.4.1)
|
18
|
+
activesupport (= 6.1.4.1)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
-
activesupport (6.
|
23
|
+
activesupport (6.1.4.1)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
|
-
i18n (>=
|
26
|
-
minitest (
|
27
|
-
tzinfo (~>
|
28
|
-
zeitwerk (~> 2.
|
29
|
-
appraisal (2.
|
25
|
+
i18n (>= 1.6, < 2)
|
26
|
+
minitest (>= 5.1)
|
27
|
+
tzinfo (~> 2.0)
|
28
|
+
zeitwerk (~> 2.3)
|
29
|
+
appraisal (2.4.1)
|
30
30
|
bundler
|
31
31
|
rake
|
32
32
|
thor (>= 0.14.0)
|
33
|
-
ast (2.4.
|
33
|
+
ast (2.4.2)
|
34
34
|
builder (3.2.4)
|
35
|
-
concurrent-ruby (1.1.
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
35
|
+
concurrent-ruby (1.1.9)
|
36
|
+
crass (1.0.6)
|
37
|
+
diff-lcs (1.4.4)
|
38
|
+
erubi (1.10.0)
|
39
|
+
faraday (1.8.0)
|
40
|
+
faraday-em_http (~> 1.0)
|
41
|
+
faraday-em_synchrony (~> 1.0)
|
42
|
+
faraday-excon (~> 1.1)
|
43
|
+
faraday-httpclient (~> 1.0.1)
|
44
|
+
faraday-net_http (~> 1.0)
|
45
|
+
faraday-net_http_persistent (~> 1.1)
|
46
|
+
faraday-patron (~> 1.0)
|
47
|
+
faraday-rack (~> 1.0)
|
47
48
|
multipart-post (>= 1.2, < 3)
|
48
|
-
|
49
|
+
ruby2_keywords (>= 0.0.4)
|
50
|
+
faraday-em_http (1.0.0)
|
51
|
+
faraday-em_synchrony (1.0.0)
|
52
|
+
faraday-excon (1.1.0)
|
53
|
+
faraday-httpclient (1.0.1)
|
54
|
+
faraday-net_http (1.0.1)
|
55
|
+
faraday-net_http_persistent (1.2.0)
|
56
|
+
faraday-patron (1.0.0)
|
57
|
+
faraday-rack (1.0.0)
|
58
|
+
i18n (1.8.11)
|
49
59
|
concurrent-ruby (~> 1.0)
|
50
|
-
|
51
|
-
json (2.3.0)
|
52
|
-
license_finder (5.11.1)
|
60
|
+
license_finder (6.14.2)
|
53
61
|
bundler
|
54
62
|
rubyzip (>= 1, < 3)
|
55
|
-
thor
|
56
|
-
|
63
|
+
thor (~> 1.0.1)
|
64
|
+
tomlrb (>= 1.3, < 2.1)
|
57
65
|
with_env (= 1.1.0)
|
58
|
-
xml-simple
|
59
|
-
loofah (2.
|
66
|
+
xml-simple (~> 1.1.5)
|
67
|
+
loofah (2.12.0)
|
60
68
|
crass (~> 1.0.2)
|
61
69
|
nokogiri (>= 1.5.9)
|
62
|
-
method_source (0.
|
63
|
-
mini_portile2 (2.
|
64
|
-
minitest (5.
|
70
|
+
method_source (1.0.0)
|
71
|
+
mini_portile2 (2.6.1)
|
72
|
+
minitest (5.14.4)
|
65
73
|
multipart-post (2.1.1)
|
66
|
-
nokogiri (1.
|
67
|
-
mini_portile2 (~> 2.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
74
|
+
nokogiri (1.12.5)
|
75
|
+
mini_portile2 (~> 2.6.1)
|
76
|
+
racc (~> 1.4)
|
77
|
+
parallel (1.21.0)
|
78
|
+
parser (3.0.2.0)
|
79
|
+
ast (~> 2.4.1)
|
80
|
+
racc (1.6.0)
|
81
|
+
rack (2.2.3)
|
73
82
|
rack-test (1.1.0)
|
74
83
|
rack (>= 1.0, < 3)
|
75
84
|
rails-dom-testing (2.0.3)
|
76
85
|
activesupport (>= 4.2.0)
|
77
86
|
nokogiri (>= 1.6)
|
78
|
-
rails-html-sanitizer (1.
|
87
|
+
rails-html-sanitizer (1.4.2)
|
79
88
|
loofah (~> 2.3)
|
80
|
-
railties (6.
|
81
|
-
actionpack (= 6.
|
82
|
-
activesupport (= 6.
|
89
|
+
railties (6.1.4.1)
|
90
|
+
actionpack (= 6.1.4.1)
|
91
|
+
activesupport (= 6.1.4.1)
|
83
92
|
method_source
|
84
|
-
rake (>= 0.
|
85
|
-
thor (
|
93
|
+
rake (>= 0.13)
|
94
|
+
thor (~> 1.0)
|
86
95
|
rainbow (3.0.0)
|
87
|
-
rake (13.0.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
rspec-
|
92
|
-
|
93
|
-
rspec-
|
94
|
-
rspec-
|
96
|
+
rake (13.0.6)
|
97
|
+
regexp_parser (2.1.1)
|
98
|
+
rexml (3.2.5)
|
99
|
+
rspec (3.10.0)
|
100
|
+
rspec-core (~> 3.10.0)
|
101
|
+
rspec-expectations (~> 3.10.0)
|
102
|
+
rspec-mocks (~> 3.10.0)
|
103
|
+
rspec-core (3.10.1)
|
104
|
+
rspec-support (~> 3.10.0)
|
105
|
+
rspec-expectations (3.10.1)
|
95
106
|
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
-
rspec-support (~> 3.
|
97
|
-
rspec-mocks (3.
|
107
|
+
rspec-support (~> 3.10.0)
|
108
|
+
rspec-mocks (3.10.2)
|
98
109
|
diff-lcs (>= 1.2.0, < 2.0)
|
99
|
-
rspec-support (~> 3.
|
100
|
-
rspec-support (3.
|
101
|
-
rubocop (
|
102
|
-
jaro_winkler (~> 1.5.1)
|
110
|
+
rspec-support (~> 3.10.0)
|
111
|
+
rspec-support (3.10.3)
|
112
|
+
rubocop (1.22.3)
|
103
113
|
parallel (~> 1.10)
|
104
|
-
parser (>=
|
114
|
+
parser (>= 3.0.0.0)
|
105
115
|
rainbow (>= 2.2.2, < 4.0)
|
116
|
+
regexp_parser (>= 1.8, < 3.0)
|
117
|
+
rexml
|
118
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
106
119
|
ruby-progressbar (~> 1.7)
|
107
|
-
unicode-display_width (>= 1.4.0, <
|
108
|
-
rubocop-
|
109
|
-
|
110
|
-
rubocop-
|
120
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
121
|
+
rubocop-ast (1.12.0)
|
122
|
+
parser (>= 3.0.1.1)
|
123
|
+
rubocop-minitest (0.15.2)
|
124
|
+
rubocop (>= 0.90, < 2.0)
|
125
|
+
rubocop-packaging (0.5.1)
|
126
|
+
rubocop (>= 0.89, < 2.0)
|
127
|
+
rubocop-performance (1.12.0)
|
128
|
+
rubocop (>= 1.7.0, < 2.0)
|
129
|
+
rubocop-ast (>= 0.4.0)
|
130
|
+
rubocop-rails (2.12.4)
|
131
|
+
activesupport (>= 4.2.0)
|
111
132
|
rack (>= 1.1)
|
112
|
-
rubocop (>=
|
113
|
-
rubocop-rails_config (
|
114
|
-
railties (>=
|
115
|
-
rubocop (
|
116
|
-
rubocop-
|
133
|
+
rubocop (>= 1.7.0, < 2.0)
|
134
|
+
rubocop-rails_config (1.7.4)
|
135
|
+
railties (>= 5.0)
|
136
|
+
rubocop (>= 1.19)
|
137
|
+
rubocop-ast (>= 1.0.1)
|
138
|
+
rubocop-minitest (~> 0.15)
|
139
|
+
rubocop-packaging (~> 0.5)
|
140
|
+
rubocop-performance (~> 1.11)
|
117
141
|
rubocop-rails (~> 2.0)
|
118
|
-
ruby-progressbar (1.
|
119
|
-
|
120
|
-
|
121
|
-
docile (~> 1.1)
|
122
|
-
json (>= 1.8, < 3)
|
123
|
-
simplecov-html (~> 0.10.0)
|
124
|
-
simplecov-html (0.10.2)
|
125
|
-
term-ansicolor (1.7.1)
|
126
|
-
tins (~> 1.0)
|
142
|
+
ruby-progressbar (1.11.0)
|
143
|
+
ruby2_keywords (0.0.5)
|
144
|
+
rubyzip (2.3.2)
|
127
145
|
thor (1.0.1)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
tzinfo (1.2.6)
|
133
|
-
thread_safe (~> 0.1)
|
134
|
-
unicode-display_width (1.6.0)
|
146
|
+
tomlrb (2.0.1)
|
147
|
+
tzinfo (2.0.4)
|
148
|
+
concurrent-ruby (~> 1.0)
|
149
|
+
unicode-display_width (2.1.0)
|
135
150
|
with_env (1.1.0)
|
136
|
-
xml-simple (1.1.
|
137
|
-
|
151
|
+
xml-simple (1.1.9)
|
152
|
+
rexml
|
153
|
+
zeitwerk (2.5.1)
|
138
154
|
|
139
155
|
PLATFORMS
|
140
156
|
ruby
|
@@ -142,12 +158,11 @@ PLATFORMS
|
|
142
158
|
DEPENDENCIES
|
143
159
|
appraisal (~> 2.0)
|
144
160
|
bundler (~> 2.0)
|
145
|
-
coveralls (~> 0.8.0)
|
146
161
|
faraday-detailed_logger!
|
147
|
-
license_finder (~>
|
162
|
+
license_finder (~> 6.0)
|
148
163
|
rake (~> 13.0)
|
149
164
|
rspec (~> 3.0)
|
150
|
-
rubocop-rails_config (~>
|
165
|
+
rubocop-rails_config (~> 1.3)
|
151
166
|
|
152
167
|
BUNDLED WITH
|
153
|
-
2.
|
168
|
+
2.2.30
|
data/README.md
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
# Faraday::DetailedLogger
|
2
2
|
|
3
|
-
[![Gem Version](https://
|
4
|
-
[![
|
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,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
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,28 @@ 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.
|
22
|
-
|
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(?:(?:bin|doc|gemfiles|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.
|
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', '< 2'
|
34
|
+
spec.add_runtime_dependency 'faraday', '>= 0.16', '< 2'
|
34
35
|
|
35
36
|
spec.add_development_dependency 'appraisal', '~> 2.0'
|
36
37
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
37
|
-
spec.add_development_dependency '
|
38
|
-
spec.add_development_dependency 'license_finder', '~> 5.0'
|
38
|
+
spec.add_development_dependency 'license_finder', '~> 6.0'
|
39
39
|
spec.add_development_dependency 'rake', '~> 13.0'
|
40
40
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
41
|
-
spec.add_development_dependency 'rubocop-rails_config', '~>
|
41
|
+
spec.add_development_dependency 'rubocop-rails_config', '~> 1.3'
|
42
42
|
end
|
@@ -91,7 +91,7 @@ module Faraday
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def curl_output(headers, body)
|
94
|
-
string = headers.map { |k, v| "#{k}: #{v}" }.join("\n")
|
94
|
+
string = headers.to_a.sort_by(&:first).map { |k, v| "#{k}: #{v}" }.join("\n")
|
95
95
|
string + "\n\n#{body}"
|
96
96
|
end
|
97
97
|
|
@@ -106,5 +106,3 @@ module Faraday
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
end
|
109
|
-
|
110
|
-
Faraday::Response.register_middleware(detailed_logger: Faraday::DetailedLogger::Middleware)
|
@@ -3,7 +3,11 @@
|
|
3
3
|
require 'faraday/detailed_logger/version'
|
4
4
|
require 'faraday/detailed_logger/middleware'
|
5
5
|
|
6
|
+
require 'faraday'
|
7
|
+
|
6
8
|
module Faraday
|
7
9
|
module DetailedLogger
|
8
10
|
end
|
9
11
|
end
|
12
|
+
|
13
|
+
Faraday::Response.register_middleware(detailed_logger: Faraday::DetailedLogger::Middleware)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday-detailed_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Envy Labs
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.16'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.16'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|
@@ -58,34 +58,20 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '2.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: coveralls
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 0.8.0
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.8.0
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
name: license_finder
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
65
|
- - "~>"
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
67
|
+
version: '6.0'
|
82
68
|
type: :development
|
83
69
|
prerelease: false
|
84
70
|
version_requirements: !ruby/object:Gem::Requirement
|
85
71
|
requirements:
|
86
72
|
- - "~>"
|
87
73
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
74
|
+
version: '6.0'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
76
|
name: rake
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,14 +106,14 @@ dependencies:
|
|
120
106
|
requirements:
|
121
107
|
- - "~>"
|
122
108
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
109
|
+
version: '1.3'
|
124
110
|
type: :development
|
125
111
|
prerelease: false
|
126
112
|
version_requirements: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
114
|
- - "~>"
|
129
115
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
116
|
+
version: '1.3'
|
131
117
|
description: "\n A Faraday middleware for logging request and response activity
|
132
118
|
including\n method, URI, headers, and body at varying log levels.\n "
|
133
119
|
email:
|
@@ -136,10 +122,8 @@ executables: []
|
|
136
122
|
extensions: []
|
137
123
|
extra_rdoc_files: []
|
138
124
|
files:
|
139
|
-
- ".gitignore"
|
140
125
|
- ".rspec"
|
141
126
|
- ".rubocop.yml"
|
142
|
-
- ".travis.yml"
|
143
127
|
- Appraisals
|
144
128
|
- CHANGELOG.md
|
145
129
|
- Gemfile
|
@@ -147,15 +131,7 @@ files:
|
|
147
131
|
- LICENSE.txt
|
148
132
|
- README.md
|
149
133
|
- Rakefile
|
150
|
-
- bin/console
|
151
|
-
- bin/setup
|
152
|
-
- doc/dependency_decisions.yml
|
153
134
|
- faraday-detailed_logger.gemspec
|
154
|
-
- gemfiles/faraday_0.8.gemfile
|
155
|
-
- gemfiles/faraday_0.x.gemfile
|
156
|
-
- gemfiles/faraday_1.x.gemfile
|
157
|
-
- gemfiles/faraday_canary.gemfile
|
158
|
-
- gemfiles/faraday_latest.gemfile
|
159
135
|
- lib/faraday/detailed_logger.rb
|
160
136
|
- lib/faraday/detailed_logger/middleware.rb
|
161
137
|
- lib/faraday/detailed_logger/tagged_logging.rb
|
@@ -164,10 +140,10 @@ homepage: https://github.com/envylabs/faraday-detailed_logger
|
|
164
140
|
licenses:
|
165
141
|
- MIT
|
166
142
|
metadata:
|
167
|
-
changelog_uri: https://github.com/envylabs/faraday-detailed_logger/blob/master/CHANGELOG.md
|
168
|
-
source_code_uri: https://github.com/envylabs/faraday-detailed_logger
|
169
143
|
bug_tracker_uri: https://github.com/envylabs/faraday-detailed_logger/issues
|
170
|
-
|
144
|
+
changelog_uri: https://github.com/envylabs/faraday-detailed_logger/blob/main/CHANGELOG.md
|
145
|
+
source_code_uri: https://github.com/envylabs/faraday-detailed_logger
|
146
|
+
post_install_message:
|
171
147
|
rdoc_options: []
|
172
148
|
require_paths:
|
173
149
|
- lib
|
@@ -175,15 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
151
|
requirements:
|
176
152
|
- - ">="
|
177
153
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
154
|
+
version: 2.4.0
|
179
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
156
|
requirements:
|
181
157
|
- - ">="
|
182
158
|
- !ruby/object:Gem::Version
|
183
159
|
version: '0'
|
184
160
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
186
|
-
signing_key:
|
161
|
+
rubygems_version: 3.2.22
|
162
|
+
signing_key:
|
187
163
|
specification_version: 4
|
188
164
|
summary: A detailed request and response logger for Faraday.
|
189
165
|
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
before_install:
|
4
|
-
- "gem install bundler -v 2.1.3"
|
5
|
-
before_script:
|
6
|
-
- "bundle exec license_finder licenses add bundler MIT"
|
7
|
-
branches:
|
8
|
-
only:
|
9
|
-
- "master"
|
10
|
-
- '/^v\d+\.\d+\.\d+/'
|
11
|
-
cache:
|
12
|
-
bundler: true
|
13
|
-
dist: "bionic"
|
14
|
-
jobs:
|
15
|
-
allow_failures:
|
16
|
-
- gemfile: "gemfiles/faraday_canary.gemfile"
|
17
|
-
|
18
|
-
fail_fast: true
|
19
|
-
|
20
|
-
include:
|
21
|
-
- stage: "Test"
|
22
|
-
|
23
|
-
- stage: "Latest Faraday Release"
|
24
|
-
gemfile: "gemfiles/faraday_latest.gemfile"
|
25
|
-
|
26
|
-
- gemfile: "gemfiles/faraday_0.8.gemfile"
|
27
|
-
stage: "Additional Faraday Tests"
|
28
|
-
- gemfile: "gemfiles/faraday_0.x.gemfile"
|
29
|
-
- gemfile: "gemfiles/faraday_1.x.gemfile"
|
30
|
-
- gemfile: "gemfiles/faraday_canary.gemfile"
|
31
|
-
language: "ruby"
|
32
|
-
notifications:
|
33
|
-
email: false
|
34
|
-
rvm:
|
35
|
-
- "2.7.0"
|
36
|
-
script:
|
37
|
-
- "bundle exec rubocop -fq"
|
38
|
-
- "bundle exec license_finder --quiet"
|
39
|
-
- "bundle exec rake"
|
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'faraday/detailed_logger'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- - :whitelist
|
3
|
-
- MIT
|
4
|
-
- :who: Nathaniel Bibler
|
5
|
-
:why: This license is FSF and OSI approved.
|
6
|
-
:versions: []
|
7
|
-
:when: 2018-02-20 17:46:01.372600000 Z
|
8
|
-
- - :whitelist
|
9
|
-
- Simplified BSD
|
10
|
-
- :who: Nathaniel Bibler
|
11
|
-
:why: This license is FSF and OSI approved.
|
12
|
-
:versions: []
|
13
|
-
:when: 2018-02-20 17:46:13.990005000 Z
|
14
|
-
- - :whitelist
|
15
|
-
- Ruby
|
16
|
-
- :who: Nathaniel Bibler
|
17
|
-
:why: This license is FSF approved.
|
18
|
-
:versions: []
|
19
|
-
:when: 2018-02-20 17:46:30.088049000 Z
|
20
|
-
- - :whitelist
|
21
|
-
- Apache-2.0
|
22
|
-
- :who: Nathaniel Bibler
|
23
|
-
:why: This license is FSF and OSI approved.
|
24
|
-
:versions: []
|
25
|
-
:when: 2018-02-20 17:46:53.048804000 Z
|