memolog 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +85 -92
- data/README.md +0 -7
- data/lib/memolog/init.rb +7 -0
- data/lib/memolog/version.rb +1 -1
- data/lib/memolog.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dacfdda27d39db0f979bf0a0452e3ba65163a06054a183c166e735e2423581f9
|
|
4
|
+
data.tar.gz: 5cf9636571861fb35768632fdfb4b555d5cc4f08fa440c42e15f19f3b324ec02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0f35989480bac9d0255d3dc8d7002b62dd5e2ce6b4003b622b7d7a423072788eb0a641943a147b0bd5f1ddd5a64700bd76e1bc2e5da2340a723c63e24cefd74
|
|
7
|
+
data.tar.gz: 8c9e46987335a4423847e561eae8132b8df41791aa658e55952825998d80d9c768269d612129c853616ae7f377b967165a359bbb440ba0c99274c95773010a7a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
memolog (0.4.
|
|
4
|
+
memolog (0.4.7)
|
|
5
5
|
json (~> 2)
|
|
6
6
|
logger (~> 1.4.3)
|
|
7
7
|
securerandom (~> 0.1.0)
|
|
@@ -9,67 +9,67 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
actioncable (7.0.
|
|
13
|
-
actionpack (= 7.0.
|
|
14
|
-
activesupport (= 7.0.
|
|
12
|
+
actioncable (7.0.4)
|
|
13
|
+
actionpack (= 7.0.4)
|
|
14
|
+
activesupport (= 7.0.4)
|
|
15
15
|
nio4r (~> 2.0)
|
|
16
16
|
websocket-driver (>= 0.6.1)
|
|
17
|
-
actionmailbox (7.0.
|
|
18
|
-
actionpack (= 7.0.
|
|
19
|
-
activejob (= 7.0.
|
|
20
|
-
activerecord (= 7.0.
|
|
21
|
-
activestorage (= 7.0.
|
|
22
|
-
activesupport (= 7.0.
|
|
17
|
+
actionmailbox (7.0.4)
|
|
18
|
+
actionpack (= 7.0.4)
|
|
19
|
+
activejob (= 7.0.4)
|
|
20
|
+
activerecord (= 7.0.4)
|
|
21
|
+
activestorage (= 7.0.4)
|
|
22
|
+
activesupport (= 7.0.4)
|
|
23
23
|
mail (>= 2.7.1)
|
|
24
24
|
net-imap
|
|
25
25
|
net-pop
|
|
26
26
|
net-smtp
|
|
27
|
-
actionmailer (7.0.
|
|
28
|
-
actionpack (= 7.0.
|
|
29
|
-
actionview (= 7.0.
|
|
30
|
-
activejob (= 7.0.
|
|
31
|
-
activesupport (= 7.0.
|
|
27
|
+
actionmailer (7.0.4)
|
|
28
|
+
actionpack (= 7.0.4)
|
|
29
|
+
actionview (= 7.0.4)
|
|
30
|
+
activejob (= 7.0.4)
|
|
31
|
+
activesupport (= 7.0.4)
|
|
32
32
|
mail (~> 2.5, >= 2.5.4)
|
|
33
33
|
net-imap
|
|
34
34
|
net-pop
|
|
35
35
|
net-smtp
|
|
36
36
|
rails-dom-testing (~> 2.0)
|
|
37
|
-
actionpack (7.0.
|
|
38
|
-
actionview (= 7.0.
|
|
39
|
-
activesupport (= 7.0.
|
|
37
|
+
actionpack (7.0.4)
|
|
38
|
+
actionview (= 7.0.4)
|
|
39
|
+
activesupport (= 7.0.4)
|
|
40
40
|
rack (~> 2.0, >= 2.2.0)
|
|
41
41
|
rack-test (>= 0.6.3)
|
|
42
42
|
rails-dom-testing (~> 2.0)
|
|
43
43
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
44
|
-
actiontext (7.0.
|
|
45
|
-
actionpack (= 7.0.
|
|
46
|
-
activerecord (= 7.0.
|
|
47
|
-
activestorage (= 7.0.
|
|
48
|
-
activesupport (= 7.0.
|
|
44
|
+
actiontext (7.0.4)
|
|
45
|
+
actionpack (= 7.0.4)
|
|
46
|
+
activerecord (= 7.0.4)
|
|
47
|
+
activestorage (= 7.0.4)
|
|
48
|
+
activesupport (= 7.0.4)
|
|
49
49
|
globalid (>= 0.6.0)
|
|
50
50
|
nokogiri (>= 1.8.5)
|
|
51
|
-
actionview (7.0.
|
|
52
|
-
activesupport (= 7.0.
|
|
51
|
+
actionview (7.0.4)
|
|
52
|
+
activesupport (= 7.0.4)
|
|
53
53
|
builder (~> 3.1)
|
|
54
54
|
erubi (~> 1.4)
|
|
55
55
|
rails-dom-testing (~> 2.0)
|
|
56
56
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
57
|
-
activejob (7.0.
|
|
58
|
-
activesupport (= 7.0.
|
|
57
|
+
activejob (7.0.4)
|
|
58
|
+
activesupport (= 7.0.4)
|
|
59
59
|
globalid (>= 0.3.6)
|
|
60
|
-
activemodel (7.0.
|
|
61
|
-
activesupport (= 7.0.
|
|
62
|
-
activerecord (7.0.
|
|
63
|
-
activemodel (= 7.0.
|
|
64
|
-
activesupport (= 7.0.
|
|
65
|
-
activestorage (7.0.
|
|
66
|
-
actionpack (= 7.0.
|
|
67
|
-
activejob (= 7.0.
|
|
68
|
-
activerecord (= 7.0.
|
|
69
|
-
activesupport (= 7.0.
|
|
60
|
+
activemodel (7.0.4)
|
|
61
|
+
activesupport (= 7.0.4)
|
|
62
|
+
activerecord (7.0.4)
|
|
63
|
+
activemodel (= 7.0.4)
|
|
64
|
+
activesupport (= 7.0.4)
|
|
65
|
+
activestorage (7.0.4)
|
|
66
|
+
actionpack (= 7.0.4)
|
|
67
|
+
activejob (= 7.0.4)
|
|
68
|
+
activerecord (= 7.0.4)
|
|
69
|
+
activesupport (= 7.0.4)
|
|
70
70
|
marcel (~> 1.0)
|
|
71
71
|
mini_mime (>= 1.1.0)
|
|
72
|
-
activesupport (7.0.
|
|
72
|
+
activesupport (7.0.4)
|
|
73
73
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
74
74
|
i18n (>= 1.6, < 2)
|
|
75
75
|
minitest (>= 5.1)
|
|
@@ -78,18 +78,17 @@ GEM
|
|
|
78
78
|
builder (3.2.4)
|
|
79
79
|
coderay (1.1.3)
|
|
80
80
|
concurrent-ruby (1.1.10)
|
|
81
|
-
connection_pool (2.
|
|
81
|
+
connection_pool (2.3.0)
|
|
82
82
|
crass (1.0.6)
|
|
83
83
|
diff-lcs (1.5.0)
|
|
84
|
-
|
|
85
|
-
erubi (1.10.0)
|
|
84
|
+
erubi (1.11.0)
|
|
86
85
|
globalid (1.0.0)
|
|
87
86
|
activesupport (>= 5.0)
|
|
88
87
|
i18n (1.12.0)
|
|
89
88
|
concurrent-ruby (~> 1.0)
|
|
90
89
|
json (2.6.2)
|
|
91
90
|
logger (1.4.4)
|
|
92
|
-
loofah (2.
|
|
91
|
+
loofah (2.19.0)
|
|
93
92
|
crass (~> 1.0.2)
|
|
94
93
|
nokogiri (>= 1.5.9)
|
|
95
94
|
mail (2.7.1)
|
|
@@ -97,28 +96,22 @@ GEM
|
|
|
97
96
|
marcel (1.0.2)
|
|
98
97
|
method_source (1.0.0)
|
|
99
98
|
mini_mime (1.1.2)
|
|
100
|
-
minitest (5.16.
|
|
101
|
-
net-imap (0.
|
|
102
|
-
digest
|
|
99
|
+
minitest (5.16.3)
|
|
100
|
+
net-imap (0.3.1)
|
|
103
101
|
net-protocol
|
|
104
|
-
|
|
105
|
-
net-pop (0.1.1)
|
|
106
|
-
digest
|
|
102
|
+
net-pop (0.1.2)
|
|
107
103
|
net-protocol
|
|
108
|
-
timeout
|
|
109
104
|
net-protocol (0.1.3)
|
|
110
105
|
timeout
|
|
111
|
-
net-smtp (0.3.
|
|
112
|
-
digest
|
|
106
|
+
net-smtp (0.3.2)
|
|
113
107
|
net-protocol
|
|
114
|
-
timeout
|
|
115
108
|
nio4r (2.5.8)
|
|
116
|
-
nokogiri (1.13.
|
|
109
|
+
nokogiri (1.13.9-x86_64-darwin)
|
|
117
110
|
racc (~> 1.4)
|
|
118
|
-
nokogiri (1.13.
|
|
111
|
+
nokogiri (1.13.9-x86_64-linux)
|
|
119
112
|
racc (~> 1.4)
|
|
120
113
|
parallel (1.22.1)
|
|
121
|
-
parser (3.1.2.
|
|
114
|
+
parser (3.1.2.1)
|
|
122
115
|
ast (~> 2.4.1)
|
|
123
116
|
pry (0.14.1)
|
|
124
117
|
coderay (~> 1.1)
|
|
@@ -127,36 +120,36 @@ GEM
|
|
|
127
120
|
rack (2.2.4)
|
|
128
121
|
rack-test (2.0.2)
|
|
129
122
|
rack (>= 1.3)
|
|
130
|
-
rails (7.0.
|
|
131
|
-
actioncable (= 7.0.
|
|
132
|
-
actionmailbox (= 7.0.
|
|
133
|
-
actionmailer (= 7.0.
|
|
134
|
-
actionpack (= 7.0.
|
|
135
|
-
actiontext (= 7.0.
|
|
136
|
-
actionview (= 7.0.
|
|
137
|
-
activejob (= 7.0.
|
|
138
|
-
activemodel (= 7.0.
|
|
139
|
-
activerecord (= 7.0.
|
|
140
|
-
activestorage (= 7.0.
|
|
141
|
-
activesupport (= 7.0.
|
|
123
|
+
rails (7.0.4)
|
|
124
|
+
actioncable (= 7.0.4)
|
|
125
|
+
actionmailbox (= 7.0.4)
|
|
126
|
+
actionmailer (= 7.0.4)
|
|
127
|
+
actionpack (= 7.0.4)
|
|
128
|
+
actiontext (= 7.0.4)
|
|
129
|
+
actionview (= 7.0.4)
|
|
130
|
+
activejob (= 7.0.4)
|
|
131
|
+
activemodel (= 7.0.4)
|
|
132
|
+
activerecord (= 7.0.4)
|
|
133
|
+
activestorage (= 7.0.4)
|
|
134
|
+
activesupport (= 7.0.4)
|
|
142
135
|
bundler (>= 1.15.0)
|
|
143
|
-
railties (= 7.0.
|
|
136
|
+
railties (= 7.0.4)
|
|
144
137
|
rails-dom-testing (2.0.3)
|
|
145
138
|
activesupport (>= 4.2.0)
|
|
146
139
|
nokogiri (>= 1.6)
|
|
147
140
|
rails-html-sanitizer (1.4.3)
|
|
148
141
|
loofah (~> 2.3)
|
|
149
|
-
railties (7.0.
|
|
150
|
-
actionpack (= 7.0.
|
|
151
|
-
activesupport (= 7.0.
|
|
142
|
+
railties (7.0.4)
|
|
143
|
+
actionpack (= 7.0.4)
|
|
144
|
+
activesupport (= 7.0.4)
|
|
152
145
|
method_source
|
|
153
146
|
rake (>= 12.2)
|
|
154
147
|
thor (~> 1.0)
|
|
155
148
|
zeitwerk (~> 2.5)
|
|
156
149
|
rainbow (3.1.1)
|
|
157
150
|
rake (13.0.6)
|
|
158
|
-
redis (4.
|
|
159
|
-
regexp_parser (2.
|
|
151
|
+
redis (4.8.0)
|
|
152
|
+
regexp_parser (2.6.0)
|
|
160
153
|
rexml (3.2.5)
|
|
161
154
|
rspec (3.11.0)
|
|
162
155
|
rspec-core (~> 3.11.0)
|
|
@@ -164,60 +157,60 @@ GEM
|
|
|
164
157
|
rspec-mocks (~> 3.11.0)
|
|
165
158
|
rspec-core (3.11.0)
|
|
166
159
|
rspec-support (~> 3.11.0)
|
|
167
|
-
rspec-expectations (3.11.
|
|
160
|
+
rspec-expectations (3.11.1)
|
|
168
161
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
169
162
|
rspec-support (~> 3.11.0)
|
|
170
163
|
rspec-mocks (3.11.1)
|
|
171
164
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
172
165
|
rspec-support (~> 3.11.0)
|
|
173
|
-
rspec-support (3.11.
|
|
174
|
-
rubocop (1.
|
|
166
|
+
rspec-support (3.11.1)
|
|
167
|
+
rubocop (1.35.1)
|
|
168
|
+
json (~> 2.3)
|
|
175
169
|
parallel (~> 1.10)
|
|
176
|
-
parser (>= 3.1.
|
|
170
|
+
parser (>= 3.1.2.1)
|
|
177
171
|
rainbow (>= 2.2.2, < 4.0)
|
|
178
172
|
regexp_parser (>= 1.8, < 3.0)
|
|
179
173
|
rexml (>= 3.2.5, < 4.0)
|
|
180
|
-
rubocop-ast (>= 1.
|
|
174
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
|
181
175
|
ruby-progressbar (~> 1.7)
|
|
182
176
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
183
|
-
rubocop-ast (1.
|
|
177
|
+
rubocop-ast (1.22.0)
|
|
184
178
|
parser (>= 3.1.1.0)
|
|
185
|
-
rubocop-config-umbrellio (1.
|
|
186
|
-
rubocop (~> 1.
|
|
179
|
+
rubocop-config-umbrellio (1.35.0.69)
|
|
180
|
+
rubocop (~> 1.35.0)
|
|
187
181
|
rubocop-performance (~> 1.14.0)
|
|
188
|
-
rubocop-rails (~> 2.
|
|
182
|
+
rubocop-rails (~> 2.15.0)
|
|
189
183
|
rubocop-rake (~> 0.6.0)
|
|
190
|
-
rubocop-rspec (~> 2.
|
|
184
|
+
rubocop-rspec (~> 2.12.0)
|
|
191
185
|
rubocop-sequel (~> 0.3.3)
|
|
192
186
|
rubocop-performance (1.14.3)
|
|
193
187
|
rubocop (>= 1.7.0, < 2.0)
|
|
194
188
|
rubocop-ast (>= 0.4.0)
|
|
195
|
-
rubocop-rails (2.
|
|
189
|
+
rubocop-rails (2.15.2)
|
|
196
190
|
activesupport (>= 4.2.0)
|
|
197
191
|
rack (>= 1.1)
|
|
198
192
|
rubocop (>= 1.7.0, < 2.0)
|
|
199
193
|
rubocop-rake (0.6.0)
|
|
200
194
|
rubocop (~> 1.0)
|
|
201
|
-
rubocop-rspec (2.
|
|
202
|
-
rubocop (~> 1.
|
|
195
|
+
rubocop-rspec (2.12.1)
|
|
196
|
+
rubocop (~> 1.31)
|
|
203
197
|
rubocop-sequel (0.3.4)
|
|
204
198
|
rubocop (~> 1.0)
|
|
205
199
|
ruby-progressbar (1.11.0)
|
|
206
200
|
securerandom (0.1.1)
|
|
207
|
-
sidekiq (6.5.
|
|
208
|
-
connection_pool (>= 2.2.
|
|
201
|
+
sidekiq (6.5.7)
|
|
202
|
+
connection_pool (>= 2.2.5)
|
|
209
203
|
rack (~> 2.0)
|
|
210
|
-
redis (>= 4.
|
|
211
|
-
strscan (3.0.3)
|
|
204
|
+
redis (>= 4.5.0, < 5)
|
|
212
205
|
thor (1.2.1)
|
|
213
206
|
timeout (0.3.0)
|
|
214
207
|
tzinfo (2.0.5)
|
|
215
208
|
concurrent-ruby (~> 1.0)
|
|
216
|
-
unicode-display_width (2.
|
|
209
|
+
unicode-display_width (2.3.0)
|
|
217
210
|
websocket-driver (0.7.5)
|
|
218
211
|
websocket-extensions (>= 0.1.0)
|
|
219
212
|
websocket-extensions (0.1.5)
|
|
220
|
-
zeitwerk (2.6.
|
|
213
|
+
zeitwerk (2.6.1)
|
|
221
214
|
|
|
222
215
|
PLATFORMS
|
|
223
216
|
x86_64-darwin-20
|
data/README.md
CHANGED
|
@@ -42,13 +42,6 @@ Available options are:
|
|
|
42
42
|
- `log_json` - `#dump` will try to parse dump with `JSON.parse()`. Default is `false`
|
|
43
43
|
- `log_size_limit` - max log length in `#dump`.
|
|
44
44
|
|
|
45
|
-
If you want to apply Sentry monkey patch that call `Memolog.dump` before `Sentry.capture_exception`
|
|
46
|
-
and `Sentry.capture_message` you can implement it via this code:
|
|
47
|
-
|
|
48
|
-
```ruby
|
|
49
|
-
Sentry.prepend(Memolog::SentryExtension)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
45
|
## Usage
|
|
53
46
|
|
|
54
47
|
Please call `Memolog.extend_logger(Rails.logger)` or any other logger you want to collect.
|
data/lib/memolog/init.rb
CHANGED
|
@@ -6,6 +6,7 @@ module Memolog::Init
|
|
|
6
6
|
def init_middlewares!
|
|
7
7
|
init_rails_middleware!
|
|
8
8
|
init_sidekiq_middleware!
|
|
9
|
+
init_sentry!
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
def init_rails_middleware!
|
|
@@ -26,4 +27,10 @@ module Memolog::Init
|
|
|
26
27
|
end
|
|
27
28
|
end
|
|
28
29
|
end
|
|
30
|
+
|
|
31
|
+
def init_sentry!
|
|
32
|
+
return unless Object.const_defined?(:Sentry)
|
|
33
|
+
|
|
34
|
+
Sentry.prepend(Memolog::SentryExtension)
|
|
35
|
+
end
|
|
29
36
|
end
|
data/lib/memolog/version.rb
CHANGED
data/lib/memolog.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: memolog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stepan Kirushkin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|