faraday-detailed_logger 2.1.2 → 2.4.0

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
- SHA1:
3
- metadata.gz: f65fb1d360770fe4d51b99bedae9016ea6789e3f
4
- data.tar.gz: 954feca443ded3f589ed95bd159bfe05b0929805
2
+ SHA256:
3
+ metadata.gz: 23cf5ae82b8fe0976ca46351355cb17b03fa810834cd7a23dd096bb6c9e45cf4
4
+ data.tar.gz: eb7c323e4141c6ea59d6aa9fb000131fbcbfda7f9f06fbd029c94451d19f6440
5
5
  SHA512:
6
- metadata.gz: 1d32d134b03fb3b79d105074c5364af2fef9d767bc1c93e77b1102a41b64906a363693a5352ba5d486ca295687645dc767b377448bba8110694bfbee2b8d5187
7
- data.tar.gz: 9ecee005b15f03ea1be473d782b7948ec6417ce382a6c8a6603825880e8d0b79f9dfa10c4719f7cec0c7f9a3814f44183522bad199946b23abaec3734bac0656
6
+ metadata.gz: aea993419de399c9dcbe437cff6374778e69cbff16c6283a1b16c3098950e56175c9226e1d409c9ac507004685ebc4f9551676932873100ebae91faa0d0ac561
7
+ data.tar.gz: 6a6e9e98e304ec02a153f4dd56ef9e68e79c64c5e8bec5bede0c23c9c316ee13d4e625a6c39468c0c0a265933beec0c89ed332cef84ac3307cc6576ace71f247
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,3 +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"
22
+
23
+ Layout/IndentationConsistency:
24
+ EnforcedStyle: "normal"
25
+
26
+ Style/StringLiterals:
27
+ EnforcedStyle: "single_quotes"
data/Appraisals CHANGED
@@ -1,29 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise "faraday-0.8" do
4
- gem "faraday", "~> 0.8.0"
3
+ appraise 'faraday-0.8' do
4
+ gem 'faraday', '~> 0.8.0'
5
5
  end
6
6
 
7
- appraise "faraday-0.9" do
8
- gem "faraday", "~> 0.9.0"
7
+ appraise 'faraday-0.x' do
8
+ gem 'faraday', '~> 0.15'
9
9
  end
10
10
 
11
- appraise "faraday-0.10" do
12
- gem "faraday", "~> 0.10.0"
11
+ appraise 'faraday-1.x' do
12
+ gem 'faraday', '~> 1.0'
13
13
  end
14
14
 
15
- appraise "faraday-0.11" do
16
- gem "faraday", "~> 0.11.0"
15
+ appraise 'faraday-latest' do
16
+ gem 'faraday'
17
17
  end
18
18
 
19
- appraise "faraday-0.12" do
20
- gem "faraday", "~> 0.12.0"
21
- end
22
-
23
- appraise "faraday-0.13" do
24
- gem "faraday", "~> 0.13.0"
25
- end
26
-
27
- appraise "faraday-canary" do
28
- gem "faraday", git: "https://github.com/lostisland/faraday.git"
19
+ appraise 'faraday-canary' do
20
+ gem 'faraday', git: 'https://github.com/lostisland/faraday.git'
29
21
  end
data/CHANGELOG.md CHANGED
@@ -1,23 +1,35 @@
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
- [![Code Climate](https://img.shields.io/codeclimate/github/envylabs/faraday-detailed_logger.svg)](https://codeclimate.com/github/envylabs/faraday-detailed_logger)
6
- [![Coverage Status](https://img.shields.io/coveralls/envylabs/faraday-detailed_logger.svg)](https://coveralls.io/r/envylabs/faraday-detailed_logger)
7
- [![Dependency Status](https://gemnasium.com/envylabs/faraday-detailed_logger.svg)](https://gemnasium.com/envylabs/faraday-detailed_logger)
8
- [![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)
9
5
 
10
6
  ## [HEAD][] / unreleased
11
7
 
12
8
  * No significant changes.
13
9
 
14
- ## [2.1.2][] / 2016-08-21
10
+ ## [2.4.0][] / 2021-11-06
11
+
12
+ * Use [zeitwerk](https://rubygems.org/gems/zeitwerk) autoloading.
13
+
14
+ ## [2.3.0][] / 2020-02-11
15
+
16
+ * Sort the request and response headers when logging.
17
+
18
+ ## [2.2.0][] / 2020-01-02
19
+
20
+ * Add support for faraday 1.0.
21
+
22
+ ## [2.1.3][] / 2019-04-04
23
+
24
+ * Maintenance release, no functional changes.
25
+
26
+ ## [2.1.2][] / 2017-08-21
15
27
 
16
28
  * Update the middleware to allow the `logger` and `tags` to be publicly
17
29
  accessible. This is not necessarily intended to be developer-used, but rather
18
30
  fix warnings in older versions of Ruby.
19
31
 
20
- ## [2.1.1][] / 2016-01-07
32
+ ## [2.1.1][] / 2017-01-07
21
33
 
22
34
  * Require faraday `~> 0.8`. This change only makes explicit the minimum version
23
35
  of faraday which is supported.
@@ -52,4 +64,8 @@
52
64
  [2.1.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.0.0...v2.1.0
53
65
  [2.1.1]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.0...v2.1.1
54
66
  [2.1.2]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.1...v2.1.2
55
- [HEAD]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.2...master
67
+ [2.1.3]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.2...v2.1.3
68
+ [2.2.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.1.3...v2.2.0
69
+ [2.3.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.2.0...v2.3.0
70
+ [2.4.0]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.3.0...v2.4.0
71
+ [HEAD]: https://github.com/envylabs/faraday-detailed_logger/compare/v2.4.0...main
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
data/Gemfile.lock ADDED
@@ -0,0 +1,169 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ faraday-detailed_logger (2.4.0)
5
+ faraday (>= 0.8, < 2)
6
+ zeitwerk (~> 2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
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)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
+ actionview (6.1.4.1)
19
+ activesupport (= 6.1.4.1)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
+ activesupport (6.1.4.1)
25
+ concurrent-ruby (~> 1.0, >= 1.0.2)
26
+ i18n (>= 1.6, < 2)
27
+ minitest (>= 5.1)
28
+ tzinfo (~> 2.0)
29
+ zeitwerk (~> 2.3)
30
+ appraisal (2.4.1)
31
+ bundler
32
+ rake
33
+ thor (>= 0.14.0)
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)
49
+ multipart-post (>= 1.2, < 3)
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)
60
+ concurrent-ruby (~> 1.0)
61
+ license_finder (6.14.2)
62
+ bundler
63
+ rubyzip (>= 1, < 3)
64
+ thor (~> 1.0.1)
65
+ tomlrb (>= 1.3, < 2.1)
66
+ with_env (= 1.1.0)
67
+ xml-simple (~> 1.1.5)
68
+ loofah (2.12.0)
69
+ crass (~> 1.0.2)
70
+ nokogiri (>= 1.5.9)
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)
83
+ rack-test (1.1.0)
84
+ rack (>= 1.0, < 3)
85
+ rails-dom-testing (2.0.3)
86
+ activesupport (>= 4.2.0)
87
+ nokogiri (>= 1.6)
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)
93
+ method_source
94
+ rake (>= 0.13)
95
+ thor (~> 1.0)
96
+ rainbow (3.0.0)
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)
107
+ diff-lcs (>= 1.2.0, < 2.0)
108
+ rspec-support (~> 3.10.0)
109
+ rspec-mocks (3.10.2)
110
+ diff-lcs (>= 1.2.0, < 2.0)
111
+ rspec-support (~> 3.10.0)
112
+ rspec-support (3.10.3)
113
+ rubocop (1.22.3)
114
+ parallel (~> 1.10)
115
+ parser (>= 3.0.0.0)
116
+ rainbow (>= 2.2.2, < 4.0)
117
+ regexp_parser (>= 1.8, < 3.0)
118
+ rexml
119
+ rubocop-ast (>= 1.12.0, < 2.0)
120
+ ruby-progressbar (~> 1.7)
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)
151
+ with_env (1.1.0)
152
+ xml-simple (1.1.9)
153
+ rexml
154
+ zeitwerk (2.5.1)
155
+
156
+ PLATFORMS
157
+ ruby
158
+
159
+ DEPENDENCIES
160
+ appraisal (~> 2.0)
161
+ bundler (~> 2.0)
162
+ faraday-detailed_logger!
163
+ license_finder (~> 6.0)
164
+ rake (~> 13.0)
165
+ rspec (~> 3.0)
166
+ rubocop-rails_config (~> 1.3)
167
+
168
+ BUNDLED WITH
169
+ 2.2.30
data/README.md CHANGED
@@ -1,11 +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
- [![Code Climate](https://img.shields.io/codeclimate/github/envylabs/faraday-detailed_logger.svg)](https://codeclimate.com/github/envylabs/faraday-detailed_logger)
6
- [![Coverage Status](https://img.shields.io/coveralls/envylabs/faraday-detailed_logger.svg)](https://coveralls.io/r/envylabs/faraday-detailed_logger)
7
- [![Dependency Status](https://gemnasium.com/envylabs/faraday-detailed_logger.svg)](https://gemnasium.com/envylabs/faraday-detailed_logger)
8
- [![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)
9
5
 
10
6
  A Faraday middleware used for providing debug- and info-level logging
11
7
  information. The request and response logs follow very closely with cURL output
@@ -159,4 +155,19 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/envyla
159
155
 
160
156
  ## License
161
157
 
162
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
158
+ The gem is available as open source under the terms of the [MIT License][].
159
+
160
+ ### Dependency Licensing
161
+
162
+ The dependencies and sub-dependencies of this gem are checked to be available
163
+ for Private Use, Commercial Use, Modification, and Distribution:
164
+
165
+ * [2-Clause BSD License][]
166
+ * [Apache 2.0 License][]
167
+ * [MIT License][]
168
+ * [Ruby License][]
169
+
170
+ [2-Clause BSD License]: https://opensource.org/licenses/BSD-2-Clause
171
+ [Apache 2.0 License]: https://opensource.org/licenses/Apache-2.0
172
+ [MIT License]: https://opensource.org/licenses/MIT
173
+ [Ruby License]: https://en.wikipedia.org/wiki/Ruby_License
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/bin/console CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "bundler/setup"
5
- require "faraday/detailed_logger"
4
+ require 'bundler/setup'
5
+ require 'faraday/detailed_logger'
6
6
 
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
@@ -11,5 +11,5 @@ require "faraday/detailed_logger"
11
11
  # require "pry"
12
12
  # Pry.start
13
13
 
14
- require "irb"
14
+ require 'irb'
15
15
  IRB.start(__FILE__)
@@ -0,0 +1,25 @@
1
+ ---
2
+ - - :permit
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
+ - - :permit
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
+ - - :permit
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
+ - - :permit
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
@@ -1,38 +1,43 @@
1
- # coding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
- lib = File.expand_path("../lib", __FILE__)
5
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
- require "faraday/detailed_logger/version"
3
+ require_relative 'lib/faraday/detailed_logger/version'
7
4
 
8
5
  Gem::Specification.new do |spec|
9
- spec.name = "faraday-detailed_logger"
6
+ spec.name = 'faraday-detailed_logger'
10
7
  spec.version = Faraday::DetailedLogger::VERSION
11
- spec.authors = ["Envy Labs"]
12
- spec.email = [""]
8
+ spec.authors = ['Envy Labs']
9
+ spec.email = ['']
13
10
 
14
- spec.summary = "A detailed request and response logger for Faraday."
11
+ spec.summary = 'A detailed request and response logger for Faraday.'
15
12
  spec.description = %(
16
13
  A Faraday middleware for logging request and response activity including
17
14
  method, URI, headers, and body at varying log levels.
18
15
  )
19
- spec.homepage = "https://github.com/envylabs/faraday-detailed_logger"
20
- spec.license = "MIT"
16
+ spec.homepage = 'https://github.com/envylabs/faraday-detailed_logger'
17
+ spec.license = 'MIT'
18
+ spec.required_ruby_version = '>= 2.4.0'
21
19
 
22
- spec.files = `git ls-files -z`.split("\x0").reject { |f|
23
- f.match(%r{^(test|spec|features)/})
24
- }
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'
25
23
 
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
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
30
+ end
29
31
 
30
- spec.add_runtime_dependency "faraday", "~> 0.8"
32
+ spec.require_paths = ['lib']
31
33
 
32
- spec.add_development_dependency "appraisal", "~> 2.0"
33
- spec.add_development_dependency "bundler", "~> 1.15"
34
- spec.add_development_dependency "coveralls"
35
- spec.add_development_dependency "rake", "~> 12.0"
36
- spec.add_development_dependency "rspec", "~> 3.0"
37
- spec.add_development_dependency "rubocop-rails", "~> 1.0"
34
+ spec.add_runtime_dependency 'faraday', '>= 0.8', '< 2'
35
+ spec.add_runtime_dependency 'zeitwerk', '~> 2.0'
36
+
37
+ spec.add_development_dependency 'appraisal', '~> 2.0'
38
+ spec.add_development_dependency 'bundler', '~> 2.0'
39
+ spec.add_development_dependency 'license_finder', '~> 6.0'
40
+ spec.add_development_dependency 'rake', '~> 13.0'
41
+ spec.add_development_dependency 'rspec', '~> 3.0'
42
+ spec.add_development_dependency 'rubocop-rails_config', '~> 1.3'
38
43
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.9.0"
5
+ gem "faraday", "~> 0.15"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "faraday", "~> 0.11.0"
5
+ gem "faraday", "~> 1.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.12.0"
5
+ gem "faraday"
6
6
 
7
7
  gemspec path: "../"
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "faraday"
4
- require "faraday/detailed_logger/tagged_logging"
3
+ require 'faraday'
5
4
 
6
5
  module Faraday
7
6
  module DetailedLogger
@@ -25,7 +24,7 @@ module Faraday
25
24
  # Returns a Logger instance.
26
25
  #
27
26
  def self.default_logger
28
- require "logger"
27
+ require 'logger'
29
28
  ::Logger.new($stdout)
30
29
  end
31
30
 
@@ -82,27 +81,27 @@ module Faraday
82
81
 
83
82
  private
84
83
 
85
- def curl_request_output(env)
86
- curl_output(env[:request_headers], env[:body]).inspect
87
- end
84
+ def curl_request_output(env)
85
+ curl_output(env[:request_headers], env[:body]).inspect
86
+ end
88
87
 
89
- def curl_response_output(env)
90
- curl_output(env[:response_headers], env[:body]).inspect
91
- end
88
+ def curl_response_output(env)
89
+ curl_output(env[:response_headers], env[:body]).inspect
90
+ end
92
91
 
93
- def curl_output(headers, body)
94
- string = headers.map { |k, v| "#{k}: #{v}" }.join("\n")
95
- string + "\n\n#{body}"
96
- end
92
+ def curl_output(headers, body)
93
+ string = headers.to_a.sort_by(&:first).map { |k, v| "#{k}: #{v}" }.join("\n")
94
+ string + "\n\n#{body}"
95
+ end
97
96
 
98
- def log_response_status(status, &block)
99
- case status
100
- when 200..399
101
- logger.info(&block)
102
- else
103
- logger.warn(&block)
104
- end
97
+ def log_response_status(status, &block)
98
+ case status
99
+ when 200..399
100
+ logger.info(&block)
101
+ else
102
+ logger.warn(&block)
105
103
  end
104
+ end
106
105
  end
107
106
  end
108
107
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "logger"
3
+ require 'logger'
4
4
 
5
5
  module Faraday
6
6
  module DetailedLogger
@@ -48,12 +48,12 @@ module Faraday
48
48
 
49
49
  private
50
50
 
51
- def tags_text
52
- tags = current_tags
53
- if tags.any?
54
- tags.map { |tag| "[#{tag}] " }.join
55
- end
51
+ def tags_text
52
+ tags = current_tags
53
+ if tags.any?
54
+ tags.map { |tag| "[#{tag}] " }.join
56
55
  end
56
+ end
57
57
  end
58
58
 
59
59
  def self.new(logger)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module DetailedLogger
5
- VERSION = "2.1.2"
5
+ VERSION = '2.4.0'
6
6
  end
7
7
  end
@@ -1,7 +1,12 @@
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
5
10
 
6
11
  module Faraday
7
12
  module DetailedLogger
metadata CHANGED
@@ -1,29 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-detailed_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.4.0
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: 2017-08-21 00:00:00.000000000 Z
11
+ date: 2021-11-06 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
18
  - !ruby/object:Gem::Version
19
19
  version: '0.8'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.8'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: zeitwerk
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: appraisal
29
49
  requirement: !ruby/object:Gem::Requirement
@@ -44,42 +64,42 @@ dependencies:
44
64
  requirements:
45
65
  - - "~>"
46
66
  - !ruby/object:Gem::Version
47
- version: '1.15'
67
+ version: '2.0'
48
68
  type: :development
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
52
72
  - - "~>"
53
73
  - !ruby/object:Gem::Version
54
- version: '1.15'
74
+ version: '2.0'
55
75
  - !ruby/object:Gem::Dependency
56
- name: coveralls
76
+ name: license_finder
57
77
  requirement: !ruby/object:Gem::Requirement
58
78
  requirements:
59
- - - ">="
79
+ - - "~>"
60
80
  - !ruby/object:Gem::Version
61
- version: '0'
81
+ version: '6.0'
62
82
  type: :development
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
- - - ">="
86
+ - - "~>"
67
87
  - !ruby/object:Gem::Version
68
- version: '0'
88
+ version: '6.0'
69
89
  - !ruby/object:Gem::Dependency
70
90
  name: rake
71
91
  requirement: !ruby/object:Gem::Requirement
72
92
  requirements:
73
93
  - - "~>"
74
94
  - !ruby/object:Gem::Version
75
- version: '12.0'
95
+ version: '13.0'
76
96
  type: :development
77
97
  prerelease: false
78
98
  version_requirements: !ruby/object:Gem::Requirement
79
99
  requirements:
80
100
  - - "~>"
81
101
  - !ruby/object:Gem::Version
82
- version: '12.0'
102
+ version: '13.0'
83
103
  - !ruby/object:Gem::Dependency
84
104
  name: rspec
85
105
  requirement: !ruby/object:Gem::Requirement
@@ -95,19 +115,19 @@ dependencies:
95
115
  - !ruby/object:Gem::Version
96
116
  version: '3.0'
97
117
  - !ruby/object:Gem::Dependency
98
- name: rubocop-rails
118
+ name: rubocop-rails_config
99
119
  requirement: !ruby/object:Gem::Requirement
100
120
  requirements:
101
121
  - - "~>"
102
122
  - !ruby/object:Gem::Version
103
- version: '1.0'
123
+ version: '1.3'
104
124
  type: :development
105
125
  prerelease: false
106
126
  version_requirements: !ruby/object:Gem::Requirement
107
127
  requirements:
108
128
  - - "~>"
109
129
  - !ruby/object:Gem::Version
110
- version: '1.0'
130
+ version: '1.3'
111
131
  description: "\n A Faraday middleware for logging request and response activity
112
132
  including\n method, URI, headers, and body at varying log levels.\n "
113
133
  email:
@@ -116,27 +136,24 @@ executables: []
116
136
  extensions: []
117
137
  extra_rdoc_files: []
118
138
  files:
119
- - ".gitignore"
120
- - ".hound.yml"
121
139
  - ".rspec"
122
140
  - ".rubocop.yml"
123
- - ".travis.yml"
124
141
  - Appraisals
125
142
  - CHANGELOG.md
126
143
  - Gemfile
144
+ - Gemfile.lock
127
145
  - LICENSE.txt
128
146
  - README.md
129
147
  - Rakefile
130
148
  - bin/console
131
149
  - bin/setup
150
+ - doc/dependency_decisions.yml
132
151
  - faraday-detailed_logger.gemspec
133
- - gemfiles/faraday_0.10.gemfile
134
- - gemfiles/faraday_0.11.gemfile
135
- - gemfiles/faraday_0.12.gemfile
136
- - gemfiles/faraday_0.13.gemfile
137
152
  - gemfiles/faraday_0.8.gemfile
138
- - gemfiles/faraday_0.9.gemfile
153
+ - gemfiles/faraday_0.x.gemfile
154
+ - gemfiles/faraday_1.x.gemfile
139
155
  - gemfiles/faraday_canary.gemfile
156
+ - gemfiles/faraday_latest.gemfile
140
157
  - lib/faraday/detailed_logger.rb
141
158
  - lib/faraday/detailed_logger/middleware.rb
142
159
  - lib/faraday/detailed_logger/tagged_logging.rb
@@ -144,8 +161,11 @@ files:
144
161
  homepage: https://github.com/envylabs/faraday-detailed_logger
145
162
  licenses:
146
163
  - MIT
147
- metadata: {}
148
- post_install_message:
164
+ metadata:
165
+ bug_tracker_uri: https://github.com/envylabs/faraday-detailed_logger/issues
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:
149
169
  rdoc_options: []
150
170
  require_paths:
151
171
  - lib
@@ -153,16 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
173
  requirements:
154
174
  - - ">="
155
175
  - !ruby/object:Gem::Version
156
- version: '0'
176
+ version: 2.4.0
157
177
  required_rubygems_version: !ruby/object:Gem::Requirement
158
178
  requirements:
159
179
  - - ">="
160
180
  - !ruby/object:Gem::Version
161
181
  version: '0'
162
182
  requirements: []
163
- rubyforge_project:
164
- rubygems_version: 2.6.11
165
- signing_key:
183
+ rubygems_version: 3.1.6
184
+ signing_key:
166
185
  specification_version: 4
167
186
  summary: A detailed request and response logger for Faraday.
168
187
  test_files: []
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
13
-
14
- /.ruby-gemset
15
- /.ruby-version
16
- /gemfiles/*.gemfile.lock
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop.yml
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- before_install: gem install bundler -v 1.15.4
2
- cache: bundler
3
- gemfile:
4
- - gemfiles/faraday_0.8.gemfile
5
- - gemfiles/faraday_0.9.gemfile
6
- - gemfiles/faraday_0.10.gemfile
7
- - gemfiles/faraday_0.11.gemfile
8
- - gemfiles/faraday_0.12.gemfile
9
- - gemfiles/faraday_0.13.gemfile
10
- - gemfiles/faraday_canary.gemfile
11
- language: ruby
12
- matrix:
13
- allow_failures:
14
- - gemfile: gemfiles/faraday_canary.gemfile
15
- fast_finish: true
16
- notifications:
17
- email: false
18
- rvm:
19
- - 2.2.7
20
- - 2.3.4
21
- - 2.4.1
22
- sudo: false
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "faraday", "~> 0.10.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.13.0"
6
-
7
- gemspec path: "../"