heavylog 0.0.25 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +3 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +31 -27
- data/heavylog.gemspec +2 -1
- data/lib/heavylog/middleware.rb +1 -1
- data/lib/heavylog/version.rb +1 -1
- data/lib/heavylog.rb +2 -2
- metadata +19 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58b2541fe38a594b5bd231b7c38ee9f5228a06e1659f4261d18871d073d641e7
|
4
|
+
data.tar.gz: 14fb4af4400e246433af3a3c65f67c251f40f90a3ef80fffc36f308ce3031efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 879da51b9aa219f6836357544dfde89f84224719fe34aa7e9e0eda3359c6b50d7e6e12eef0e440583e23d97a4418d840b28e0a102c611deb7d9c88f03cbd8470
|
7
|
+
data.tar.gz: 50d5b572eede80737c577f575b8cec5b2fbde76c17b54acd73e0772bb4ae2b1f8f707a52d16e2187c01580637118ce814247043089957f291cc4ae8f88a9f273
|
data/.github/workflows/test.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
heavylog (0.0.
|
4
|
+
heavylog (0.0.27)
|
5
5
|
actionpack (>= 5)
|
6
6
|
activesupport (>= 5)
|
7
7
|
railties (>= 5)
|
@@ -10,20 +10,20 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionpack (7.0.
|
14
|
-
actionview (= 7.0.
|
15
|
-
activesupport (= 7.0.
|
13
|
+
actionpack (7.0.4)
|
14
|
+
actionview (= 7.0.4)
|
15
|
+
activesupport (= 7.0.4)
|
16
16
|
rack (~> 2.0, >= 2.2.0)
|
17
17
|
rack-test (>= 0.6.3)
|
18
18
|
rails-dom-testing (~> 2.0)
|
19
19
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
20
|
-
actionview (7.0.
|
21
|
-
activesupport (= 7.0.
|
20
|
+
actionview (7.0.4)
|
21
|
+
activesupport (= 7.0.4)
|
22
22
|
builder (~> 3.1)
|
23
23
|
erubi (~> 1.4)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
25
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
26
|
-
activesupport (7.0.
|
26
|
+
activesupport (7.0.4)
|
27
27
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
28
28
|
i18n (>= 1.6, < 2)
|
29
29
|
minitest (>= 5.1)
|
@@ -38,39 +38,38 @@ GEM
|
|
38
38
|
diff-lcs (1.5.0)
|
39
39
|
docile (1.4.0)
|
40
40
|
e2mmap (0.1.0)
|
41
|
-
erubi (1.
|
42
|
-
i18n (1.
|
41
|
+
erubi (1.12.0)
|
42
|
+
i18n (1.12.0)
|
43
43
|
concurrent-ruby (~> 1.0)
|
44
44
|
jaro_winkler (1.5.4)
|
45
|
-
json (2.6.2)
|
46
45
|
kramdown (2.4.0)
|
47
46
|
rexml
|
48
47
|
kramdown-parser-gfm (1.1.0)
|
49
48
|
kramdown (~> 2.0)
|
50
|
-
loofah (2.
|
49
|
+
loofah (2.19.1)
|
51
50
|
crass (~> 1.0.2)
|
52
51
|
nokogiri (>= 1.5.9)
|
53
52
|
method_source (1.0.0)
|
54
53
|
mini_portile2 (2.8.0)
|
55
|
-
minitest (5.
|
56
|
-
nokogiri (1.13.
|
54
|
+
minitest (5.17.0)
|
55
|
+
nokogiri (1.13.10)
|
57
56
|
mini_portile2 (~> 2.8.0)
|
58
57
|
racc (~> 1.4)
|
59
58
|
parallel (1.22.1)
|
60
59
|
parser (3.1.2.0)
|
61
60
|
ast (~> 2.4.1)
|
62
|
-
racc (1.6.
|
61
|
+
racc (1.6.1)
|
63
62
|
rack (2.2.4)
|
64
63
|
rack-test (2.0.2)
|
65
64
|
rack (>= 1.3)
|
66
65
|
rails-dom-testing (2.0.3)
|
67
66
|
activesupport (>= 4.2.0)
|
68
67
|
nokogiri (>= 1.6)
|
69
|
-
rails-html-sanitizer (1.4.
|
70
|
-
loofah (~> 2.
|
71
|
-
railties (7.0.
|
72
|
-
actionpack (= 7.0.
|
73
|
-
activesupport (= 7.0.
|
68
|
+
rails-html-sanitizer (1.4.4)
|
69
|
+
loofah (~> 2.19, >= 2.19.1)
|
70
|
+
railties (7.0.4)
|
71
|
+
actionpack (= 7.0.4)
|
72
|
+
activesupport (= 7.0.4)
|
74
73
|
method_source
|
75
74
|
rake (>= 12.2)
|
76
75
|
thor (~> 1.0)
|
@@ -115,11 +114,15 @@ GEM
|
|
115
114
|
connection_pool (>= 2.2.2)
|
116
115
|
rack (~> 2.0)
|
117
116
|
redis (>= 4.2.0)
|
118
|
-
simplecov (0.
|
117
|
+
simplecov (0.21.2)
|
119
118
|
docile (~> 1.1)
|
120
|
-
|
121
|
-
|
122
|
-
simplecov-
|
119
|
+
simplecov-html (~> 0.11)
|
120
|
+
simplecov_json_formatter (~> 0.1)
|
121
|
+
simplecov-cobertura (2.1.0)
|
122
|
+
rexml
|
123
|
+
simplecov (~> 0.19)
|
124
|
+
simplecov-html (0.12.3)
|
125
|
+
simplecov_json_formatter (0.1.4)
|
123
126
|
solargraph (0.45.0)
|
124
127
|
backport (~> 1.2)
|
125
128
|
benchmark
|
@@ -137,13 +140,13 @@ GEM
|
|
137
140
|
yard (~> 0.9, >= 0.9.24)
|
138
141
|
thor (1.2.1)
|
139
142
|
tilt (2.0.10)
|
140
|
-
tzinfo (2.0.
|
143
|
+
tzinfo (2.0.5)
|
141
144
|
concurrent-ruby (~> 1.0)
|
142
145
|
unicode-display_width (1.8.0)
|
143
146
|
webrick (1.7.0)
|
144
147
|
yard (0.9.28)
|
145
148
|
webrick (~> 1.7.0)
|
146
|
-
zeitwerk (2.6.
|
149
|
+
zeitwerk (2.6.6)
|
147
150
|
|
148
151
|
PLATFORMS
|
149
152
|
ruby
|
@@ -155,8 +158,9 @@ DEPENDENCIES
|
|
155
158
|
rspec (~> 3.0)
|
156
159
|
rubocop (~> 0.71)
|
157
160
|
rubocop-performance (~> 1.5.2)
|
158
|
-
sidekiq (>=
|
159
|
-
simplecov (~> 0.
|
161
|
+
sidekiq (>= 6.0)
|
162
|
+
simplecov (~> 0.21.2)
|
163
|
+
simplecov-cobertura (~> 2.1.0)
|
160
164
|
solargraph
|
161
165
|
|
162
166
|
BUNDLED WITH
|
data/heavylog.gemspec
CHANGED
@@ -27,7 +27,8 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
28
|
spec.add_development_dependency "rubocop", "~> 0.71"
|
29
29
|
spec.add_development_dependency "rubocop-performance", "~> 1.5.2"
|
30
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
30
|
+
spec.add_development_dependency "simplecov", "~> 0.21.2"
|
31
|
+
spec.add_development_dependency "simplecov-cobertura", "~> 2.1.0"
|
31
32
|
spec.add_development_dependency "sidekiq", ">= 6.0"
|
32
33
|
spec.add_development_dependency "solargraph"
|
33
34
|
|
data/lib/heavylog/middleware.rb
CHANGED
@@ -18,7 +18,7 @@ module Heavylog
|
|
18
18
|
request = ActionDispatch::Request.new(env)
|
19
19
|
RequestStore.store[:heavylog_request_id] = request.uuid
|
20
20
|
RequestStore.store[:heavylog_request_start] = Time.now.iso8601
|
21
|
-
RequestStore.store[:heavylog_request_ip] = request.
|
21
|
+
RequestStore.store[:heavylog_request_ip] = request.remote_ip
|
22
22
|
end
|
23
23
|
|
24
24
|
@app.call(env)
|
data/lib/heavylog/version.rb
CHANGED
data/lib/heavylog.rb
CHANGED
@@ -55,9 +55,9 @@ module Heavylog
|
|
55
55
|
|
56
56
|
Sidekiq.configure_server do |config|
|
57
57
|
config[:job_logger] = SidekiqLogger
|
58
|
-
end
|
59
58
|
|
60
|
-
|
59
|
+
config.error_handlers << SidekiqExceptionHandler.new
|
60
|
+
end
|
61
61
|
end
|
62
62
|
|
63
63
|
def setup_custom_payload
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heavylog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristjan Rang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,14 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.21.2
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.21.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov-cobertura
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.1.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.1.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: sidekiq
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,6 +204,7 @@ files:
|
|
190
204
|
- ".gitignore"
|
191
205
|
- ".rspec"
|
192
206
|
- ".rubocop.yml"
|
207
|
+
- ".ruby-version"
|
193
208
|
- Gemfile
|
194
209
|
- Gemfile.lock
|
195
210
|
- LICENSE.txt
|