httplog 1.3.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/README.md +53 -22
- data/httplog.gemspec +7 -4
- data/lib/httplog/adapters/ethon.rb +2 -1
- data/lib/httplog/adapters/excon.rb +2 -1
- data/lib/httplog/adapters/http.rb +5 -3
- data/lib/httplog/adapters/httpclient.rb +6 -4
- data/lib/httplog/adapters/net_http.rb +13 -2
- data/lib/httplog/adapters/patron.rb +2 -1
- data/lib/httplog/configuration.rb +27 -21
- data/lib/httplog/http_log.rb +138 -49
- data/lib/httplog/version.rb +1 -1
- metadata +37 -51
- data/.gitignore +0 -7
- data/.rspec +0 -2
- data/.rubocop.yml +0 -55
- data/.rubocop_todo.yml +0 -36
- data/.ruby-version +0 -1
- data/.travis.yml +0 -17
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -130
- data/Guardfile +0 -25
- data/MIT-LICENSE +0 -20
- data/Rakefile +0 -46
- data/gemfiles/http3.gemfile +0 -7
- data/gemfiles/http4.gemfile +0 -7
- data/gemfiles/http5.gemfile +0 -7
- data/gemfiles/rack1.gemfile +0 -7
- data/gemfiles/rack2.gemfile +0 -7
- data/spec/adapters/ethon_adapter.rb +0 -26
- data/spec/adapters/excon_adapter.rb +0 -16
- data/spec/adapters/faraday_adapter.rb +0 -59
- data/spec/adapters/http_adapter.rb +0 -27
- data/spec/adapters/http_base_adapter.rb +0 -39
- data/spec/adapters/httparty_adapter.rb +0 -16
- data/spec/adapters/httpclient_adapter.rb +0 -31
- data/spec/adapters/net_http_adapter.rb +0 -21
- data/spec/adapters/open_uri_adapter.rb +0 -19
- data/spec/adapters/patron_adapter.rb +0 -36
- data/spec/adapters/typhoeus_adapter.rb +0 -28
- data/spec/configuration_spec.rb +0 -22
- data/spec/lib/http_client_spec.rb +0 -15
- data/spec/lib/http_log_spec.rb +0 -320
- data/spec/log/.gitkeep +0 -0
- data/spec/spec_helper.rb +0 -45
- data/spec/support/index.html +0 -8
- data/spec/support/index.html.gz +0 -0
- data/spec/support/log4r.yml +0 -17
- data/spec/support/not_gzipped.html.gz +0 -8
- data/spec/support/shared_examples.rb +0 -79
- data/spec/support/test.bin +0 -0
- data/spec/support/test.pdf +0 -198
- data/spec/support/test_server.rb +0 -34
- data/spec/support/utf8-invalid.html +0 -0
- data/spec/support/utf8.html +0 -8
data/lib/httplog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httplog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thilo Rusche
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ethon
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: guard-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '4.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '4.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: httparty
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '2.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rest-client
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: listen
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +156,14 @@ dependencies:
|
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
159
|
+
version: '13.0'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
166
|
+
version: '13.0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: rspec
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,6 +206,20 @@ dependencies:
|
|
192
206
|
- - "~>"
|
193
207
|
- !ruby/object:Gem::Version
|
194
208
|
version: '1.7'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: oj
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 3.9.2
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 3.9.2
|
195
223
|
- !ruby/object:Gem::Dependency
|
196
224
|
name: rack
|
197
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,24 +256,8 @@ executables: []
|
|
228
256
|
extensions: []
|
229
257
|
extra_rdoc_files: []
|
230
258
|
files:
|
231
|
-
- ".gitignore"
|
232
|
-
- ".rspec"
|
233
|
-
- ".rubocop.yml"
|
234
|
-
- ".rubocop_todo.yml"
|
235
|
-
- ".ruby-version"
|
236
|
-
- ".travis.yml"
|
237
259
|
- CHANGELOG.md
|
238
|
-
- Gemfile
|
239
|
-
- Gemfile.lock
|
240
|
-
- Guardfile
|
241
|
-
- MIT-LICENSE
|
242
260
|
- README.md
|
243
|
-
- Rakefile
|
244
|
-
- gemfiles/http3.gemfile
|
245
|
-
- gemfiles/http4.gemfile
|
246
|
-
- gemfiles/http5.gemfile
|
247
|
-
- gemfiles/rack1.gemfile
|
248
|
-
- gemfiles/rack2.gemfile
|
249
261
|
- httplog.gemspec
|
250
262
|
- lib/httplog.rb
|
251
263
|
- lib/httplog/adapters/ethon.rb
|
@@ -257,32 +269,6 @@ files:
|
|
257
269
|
- lib/httplog/configuration.rb
|
258
270
|
- lib/httplog/http_log.rb
|
259
271
|
- lib/httplog/version.rb
|
260
|
-
- spec/adapters/ethon_adapter.rb
|
261
|
-
- spec/adapters/excon_adapter.rb
|
262
|
-
- spec/adapters/faraday_adapter.rb
|
263
|
-
- spec/adapters/http_adapter.rb
|
264
|
-
- spec/adapters/http_base_adapter.rb
|
265
|
-
- spec/adapters/httparty_adapter.rb
|
266
|
-
- spec/adapters/httpclient_adapter.rb
|
267
|
-
- spec/adapters/net_http_adapter.rb
|
268
|
-
- spec/adapters/open_uri_adapter.rb
|
269
|
-
- spec/adapters/patron_adapter.rb
|
270
|
-
- spec/adapters/typhoeus_adapter.rb
|
271
|
-
- spec/configuration_spec.rb
|
272
|
-
- spec/lib/http_client_spec.rb
|
273
|
-
- spec/lib/http_log_spec.rb
|
274
|
-
- spec/log/.gitkeep
|
275
|
-
- spec/spec_helper.rb
|
276
|
-
- spec/support/index.html
|
277
|
-
- spec/support/index.html.gz
|
278
|
-
- spec/support/log4r.yml
|
279
|
-
- spec/support/not_gzipped.html.gz
|
280
|
-
- spec/support/shared_examples.rb
|
281
|
-
- spec/support/test.bin
|
282
|
-
- spec/support/test.pdf
|
283
|
-
- spec/support/test_server.rb
|
284
|
-
- spec/support/utf8-invalid.html
|
285
|
-
- spec/support/utf8.html
|
286
272
|
homepage: http://github.com/trusche/httplog
|
287
273
|
licenses:
|
288
274
|
- MIT
|
@@ -302,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
288
|
- !ruby/object:Gem::Version
|
303
289
|
version: '0'
|
304
290
|
requirements: []
|
305
|
-
rubygems_version: 3.
|
291
|
+
rubygems_version: 3.1.4
|
306
292
|
signing_key:
|
307
293
|
specification_version: 4
|
308
294
|
summary: Log outgoing HTTP requests.
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
inherit_from: ./.rubocop_todo.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
TargetRubyVersion: 2.2
|
5
|
-
Exclude:
|
6
|
-
- 'db/**/*'
|
7
|
-
- 'db/schema.rb'
|
8
|
-
- 'app/assets/**'
|
9
|
-
- 'config/**/*'
|
10
|
-
- 'bin/**/*'
|
11
|
-
- 'node_modules/**/*'
|
12
|
-
- 'public/**/*'
|
13
|
-
- 'tmp/**/*'
|
14
|
-
- 'vendor/**/*'
|
15
|
-
- 'doc/**/*'
|
16
|
-
- 'coverage/**/*'
|
17
|
-
- Gemfile
|
18
|
-
- Guardfile
|
19
|
-
|
20
|
-
Layout/EmptyLinesAroundBlockBody:
|
21
|
-
EnforcedStyle: no_empty_lines
|
22
|
-
Enabled: true
|
23
|
-
|
24
|
-
Layout/EmptyLinesAroundClassBody:
|
25
|
-
EnforcedStyle: no_empty_lines
|
26
|
-
Enabled: true
|
27
|
-
|
28
|
-
Layout/EmptyLinesAroundModuleBody:
|
29
|
-
EnforcedStyle: no_empty_lines
|
30
|
-
|
31
|
-
Layout/IndentArray:
|
32
|
-
EnforcedStyle: consistent
|
33
|
-
|
34
|
-
Style/Documentation:
|
35
|
-
Enabled: false
|
36
|
-
|
37
|
-
Style/Lambda:
|
38
|
-
EnforcedStyle: literal
|
39
|
-
|
40
|
-
Style/PercentLiteralDelimiters:
|
41
|
-
PreferredDelimiters:
|
42
|
-
default: '[]'
|
43
|
-
'%i': '[]'
|
44
|
-
|
45
|
-
Metrics/PerceivedComplexity:
|
46
|
-
Enabled: false
|
47
|
-
|
48
|
-
Metrics/CyclomaticComplexity:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
Metrics/ModuleLength:
|
52
|
-
Enabled: false
|
53
|
-
|
54
|
-
Metrics/BlockNesting:
|
55
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# Offense count: 13
|
2
|
-
Metrics/AbcSize:
|
3
|
-
Enabled: false
|
4
|
-
|
5
|
-
# Offense count: 43
|
6
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
7
|
-
Metrics/BlockLength:
|
8
|
-
Enabled: false
|
9
|
-
|
10
|
-
# Offense count: 137
|
11
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
12
|
-
# URISchemes: http, https
|
13
|
-
Metrics/LineLength:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
# Offense count: 7
|
17
|
-
# Configuration parameters: CountComments.
|
18
|
-
Metrics/MethodLength:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
Metrics/ClassLength:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
# Offense count: 195
|
25
|
-
# Cop supports --auto-correct.
|
26
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
27
|
-
# SupportedStyles: when_needed, always, never
|
28
|
-
Style/FrozenStringLiteralComment:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
# Offense count: 328
|
32
|
-
# Cop supports --auto-correct.
|
33
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
34
|
-
# SupportedStyles: single_quotes, double_quotes
|
35
|
-
Style/StringLiterals:
|
36
|
-
Enabled: false
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.2
|
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- "2.4.5"
|
4
|
-
- "2.5.3"
|
5
|
-
- "2.6.2"
|
6
|
-
gemfile:
|
7
|
-
- gemfiles/http3.gemfile
|
8
|
-
- gemfiles/http4.gemfile
|
9
|
-
- gemfiles/http5.gemfile
|
10
|
-
- gemfiles/rack1.gemfile
|
11
|
-
- gemfiles/rack2.gemfile
|
12
|
-
|
13
|
-
# uncomment this line if your project needs to run something other than `rake`:
|
14
|
-
script: bundle exec rspec spec
|
15
|
-
# workaround for https://github.com/travis-ci/travis-ci/issues/5239:
|
16
|
-
before_install:
|
17
|
-
- gem install bundler
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,130 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
httplog (1.3.1)
|
5
|
-
rack (>= 1.0)
|
6
|
-
rainbow (>= 2.0.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
addressable (2.5.2)
|
12
|
-
public_suffix (>= 2.0.2, < 4.0)
|
13
|
-
coderay (1.1.2)
|
14
|
-
daemons (1.2.6)
|
15
|
-
diff-lcs (1.3)
|
16
|
-
docile (1.3.1)
|
17
|
-
domain_name (0.5.20180417)
|
18
|
-
unf (>= 0.0.5, < 1.0.0)
|
19
|
-
ethon (0.11.0)
|
20
|
-
ffi (>= 1.3.0)
|
21
|
-
eventmachine (1.2.7)
|
22
|
-
excon (0.62.0)
|
23
|
-
faraday (0.15.4)
|
24
|
-
multipart-post (>= 1.2, < 3)
|
25
|
-
ffi (1.9.25)
|
26
|
-
formatador (0.2.5)
|
27
|
-
guard (2.15.0)
|
28
|
-
formatador (>= 0.2.4)
|
29
|
-
listen (>= 2.7, < 4.0)
|
30
|
-
lumberjack (>= 1.0.12, < 2.0)
|
31
|
-
nenv (~> 0.1)
|
32
|
-
notiffany (~> 0.0)
|
33
|
-
pry (>= 0.9.12)
|
34
|
-
shellany (~> 0.0)
|
35
|
-
thor (>= 0.18.1)
|
36
|
-
guard-compat (1.2.1)
|
37
|
-
guard-rspec (4.7.3)
|
38
|
-
guard (~> 2.1)
|
39
|
-
guard-compat (~> 1.1)
|
40
|
-
rspec (>= 2.99.0, < 4.0)
|
41
|
-
http (3.3.0)
|
42
|
-
addressable (~> 2.3)
|
43
|
-
http-cookie (~> 1.0)
|
44
|
-
http-form_data (~> 2.0)
|
45
|
-
http_parser.rb (~> 0.6.0)
|
46
|
-
http-cookie (1.0.3)
|
47
|
-
domain_name (~> 0.5)
|
48
|
-
http-form_data (2.1.1)
|
49
|
-
http_parser.rb (0.6.0)
|
50
|
-
httparty (0.16.3)
|
51
|
-
mime-types (~> 3.0)
|
52
|
-
multi_xml (>= 0.5.2)
|
53
|
-
httpclient (2.8.3)
|
54
|
-
json (2.1.0)
|
55
|
-
listen (3.1.5)
|
56
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
57
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
58
|
-
ruby_dep (~> 1.2)
|
59
|
-
lumberjack (1.0.13)
|
60
|
-
method_source (0.9.2)
|
61
|
-
mime-types (3.2.2)
|
62
|
-
mime-types-data (~> 3.2015)
|
63
|
-
mime-types-data (3.2018.0812)
|
64
|
-
multi_xml (0.6.0)
|
65
|
-
multipart-post (2.0.0)
|
66
|
-
nenv (0.3.0)
|
67
|
-
notiffany (0.1.1)
|
68
|
-
nenv (~> 0.1)
|
69
|
-
shellany (~> 0.0)
|
70
|
-
patron (0.13.1)
|
71
|
-
pry (0.12.2)
|
72
|
-
coderay (~> 1.1.0)
|
73
|
-
method_source (~> 0.9.0)
|
74
|
-
public_suffix (3.0.3)
|
75
|
-
rack (2.0.6)
|
76
|
-
rainbow (3.0.0)
|
77
|
-
rake (12.3.2)
|
78
|
-
rb-fsevent (0.10.3)
|
79
|
-
rb-inotify (0.9.10)
|
80
|
-
ffi (>= 0.5.0, < 2)
|
81
|
-
rspec (3.8.0)
|
82
|
-
rspec-core (~> 3.8.0)
|
83
|
-
rspec-expectations (~> 3.8.0)
|
84
|
-
rspec-mocks (~> 3.8.0)
|
85
|
-
rspec-core (3.8.0)
|
86
|
-
rspec-support (~> 3.8.0)
|
87
|
-
rspec-expectations (3.8.2)
|
88
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
89
|
-
rspec-support (~> 3.8.0)
|
90
|
-
rspec-mocks (3.8.0)
|
91
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
92
|
-
rspec-support (~> 3.8.0)
|
93
|
-
rspec-support (3.8.0)
|
94
|
-
ruby_dep (1.5.0)
|
95
|
-
shellany (0.0.1)
|
96
|
-
simplecov (0.16.1)
|
97
|
-
docile (~> 1.1)
|
98
|
-
json (>= 1.8, < 3)
|
99
|
-
simplecov-html (~> 0.10.0)
|
100
|
-
simplecov-html (0.10.2)
|
101
|
-
thin (1.7.2)
|
102
|
-
daemons (~> 1.0, >= 1.0.9)
|
103
|
-
eventmachine (~> 1.0, >= 1.0.4)
|
104
|
-
rack (>= 1, < 3)
|
105
|
-
thor (0.20.3)
|
106
|
-
unf (0.1.4)
|
107
|
-
unf_ext
|
108
|
-
unf_ext (0.0.7.5)
|
109
|
-
|
110
|
-
PLATFORMS
|
111
|
-
ruby
|
112
|
-
|
113
|
-
DEPENDENCIES
|
114
|
-
ethon (~> 0.11)
|
115
|
-
excon (~> 0.60)
|
116
|
-
faraday (~> 0.14)
|
117
|
-
guard-rspec (~> 4.7)
|
118
|
-
http (~> 3.0)
|
119
|
-
httparty (~> 0.16)
|
120
|
-
httpclient (~> 2.8)
|
121
|
-
httplog!
|
122
|
-
listen (~> 3.0)
|
123
|
-
patron (~> 0.12)
|
124
|
-
rake (~> 12.3)
|
125
|
-
rspec (~> 3.7)
|
126
|
-
simplecov (~> 0.15)
|
127
|
-
thin (~> 1.7)
|
128
|
-
|
129
|
-
BUNDLED WITH
|
130
|
-
1.17.2
|