memolog 0.4.6 → 0.4.8

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
2
  SHA256:
3
- metadata.gz: 073d075fa8300922d4e5ad21dcc6a867e5f53a61233d2c3cfd90eaf0c0231016
4
- data.tar.gz: ea263674c3b5691993a7e0a3d0f3d41bed8168e3448ea9368d8a965dc8430753
3
+ metadata.gz: 0c3118d24e53a96c67912c417327bd3a1eb882ad8bc5bdce1228c8687d480eeb
4
+ data.tar.gz: c0f2ab52e467eb5adea1e325acecef0aa0b5ac03e78f96e3800177b1cf28434b
5
5
  SHA512:
6
- metadata.gz: 7cf1df8ed76aa049b881a57aab72b0e02416ccfd5428e342d116e597eba746bf95157acc67d22c3f0e77d64eb88f7efdc5cbf887c36c0a5c4ae2ece9bda71cc8
7
- data.tar.gz: 72316f0a64ae32b769acdc127c207c4e8ec36c79b7d3aced041a6c867fff763e3faa30fd516161ccc576cf164b6d54a143216cc3a7fca40084e03c5e220b5b88
6
+ metadata.gz: f79fbfb5c60f2bafeb16b30c86e3a3a9322052095e84a2daf8ef7873126597713163ae5149830221d9e554da24293b4f03fb751855d1444bcb18cfbefac4861c
7
+ data.tar.gz: c06ea9d489d278aaff8e7b170e466fdfcb42be6ccf6b1637f064c48d23fd1a2c4f09a2a19df624888e1ad4cc9cead8091c4d0541eb578317e497807c741da73d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 0.4.8
2
+ - Update CHANGELOG
3
+ - Various gem updates
4
+ - Version bump due to vulnerabilities
5
+
6
+ ## 0.4.7
7
+ - Move Sentry to common init method
8
+ - bundle update
9
+ - Version bump
10
+
11
+ ## 0.4.6
12
+ - Various gem updates
13
+ - Version bump due to vulnerabilities
14
+
15
+ ## 0.4.0
16
+ - Remove Memolog.uuid.
17
+ - Deprecate formatter inheritance let user deside.
18
+ - Add parse_json option to parse JSON dump.
19
+ - Version bump
20
+
1
21
  ## 0.3.0
2
22
 
3
23
  - Apply a prepend patch with `Sentry::Scope#apply_to_event` method.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- memolog (0.4.6)
4
+ memolog (0.4.8)
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.3.1)
13
- actionpack (= 7.0.3.1)
14
- activesupport (= 7.0.3.1)
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.3.1)
18
- actionpack (= 7.0.3.1)
19
- activejob (= 7.0.3.1)
20
- activerecord (= 7.0.3.1)
21
- activestorage (= 7.0.3.1)
22
- activesupport (= 7.0.3.1)
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.3.1)
28
- actionpack (= 7.0.3.1)
29
- actionview (= 7.0.3.1)
30
- activejob (= 7.0.3.1)
31
- activesupport (= 7.0.3.1)
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.3.1)
38
- actionview (= 7.0.3.1)
39
- activesupport (= 7.0.3.1)
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.3.1)
45
- actionpack (= 7.0.3.1)
46
- activerecord (= 7.0.3.1)
47
- activestorage (= 7.0.3.1)
48
- activesupport (= 7.0.3.1)
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.3.1)
52
- activesupport (= 7.0.3.1)
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.3.1)
58
- activesupport (= 7.0.3.1)
57
+ activejob (7.0.4)
58
+ activesupport (= 7.0.4)
59
59
  globalid (>= 0.3.6)
60
- activemodel (7.0.3.1)
61
- activesupport (= 7.0.3.1)
62
- activerecord (7.0.3.1)
63
- activemodel (= 7.0.3.1)
64
- activesupport (= 7.0.3.1)
65
- activestorage (7.0.3.1)
66
- actionpack (= 7.0.3.1)
67
- activejob (= 7.0.3.1)
68
- activerecord (= 7.0.3.1)
69
- activesupport (= 7.0.3.1)
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.3.1)
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,148 +78,151 @@ GEM
78
78
  builder (3.2.4)
79
79
  coderay (1.1.3)
80
80
  concurrent-ruby (1.1.10)
81
- connection_pool (2.2.5)
81
+ connection_pool (2.3.0)
82
82
  crass (1.0.6)
83
+ date (3.3.1)
83
84
  diff-lcs (1.5.0)
84
- digest (3.1.0)
85
- erubi (1.10.0)
85
+ erubi (1.11.0)
86
86
  globalid (1.0.0)
87
87
  activesupport (>= 5.0)
88
88
  i18n (1.12.0)
89
89
  concurrent-ruby (~> 1.0)
90
- json (2.6.2)
90
+ json (2.6.3)
91
91
  logger (1.4.4)
92
- loofah (2.18.0)
92
+ loofah (2.19.1)
93
93
  crass (~> 1.0.2)
94
94
  nokogiri (>= 1.5.9)
95
- mail (2.7.1)
95
+ mail (2.8.0)
96
96
  mini_mime (>= 0.1.1)
97
+ net-imap
98
+ net-pop
99
+ net-smtp
97
100
  marcel (1.0.2)
98
101
  method_source (1.0.0)
99
102
  mini_mime (1.1.2)
100
- minitest (5.16.2)
101
- net-imap (0.2.3)
102
- digest
103
+ minitest (5.16.3)
104
+ net-imap (0.3.2)
105
+ date
103
106
  net-protocol
104
- strscan
105
- net-pop (0.1.1)
106
- digest
107
+ net-pop (0.1.2)
107
108
  net-protocol
109
+ net-protocol (0.2.1)
108
110
  timeout
109
- net-protocol (0.1.3)
110
- timeout
111
- net-smtp (0.3.1)
112
- digest
111
+ net-smtp (0.3.3)
113
112
  net-protocol
114
- timeout
115
113
  nio4r (2.5.8)
116
- nokogiri (1.13.7-x86_64-darwin)
114
+ nokogiri (1.13.10-arm64-darwin)
115
+ racc (~> 1.4)
116
+ nokogiri (1.13.10-x86_64-darwin)
117
117
  racc (~> 1.4)
118
- nokogiri (1.13.7-x86_64-linux)
118
+ nokogiri (1.13.10-x86_64-linux)
119
119
  racc (~> 1.4)
120
120
  parallel (1.22.1)
121
- parser (3.1.2.0)
121
+ parser (3.1.3.0)
122
122
  ast (~> 2.4.1)
123
123
  pry (0.14.1)
124
124
  coderay (~> 1.1)
125
125
  method_source (~> 1.0)
126
- racc (1.6.0)
126
+ racc (1.6.1)
127
127
  rack (2.2.4)
128
128
  rack-test (2.0.2)
129
129
  rack (>= 1.3)
130
- rails (7.0.3.1)
131
- actioncable (= 7.0.3.1)
132
- actionmailbox (= 7.0.3.1)
133
- actionmailer (= 7.0.3.1)
134
- actionpack (= 7.0.3.1)
135
- actiontext (= 7.0.3.1)
136
- actionview (= 7.0.3.1)
137
- activejob (= 7.0.3.1)
138
- activemodel (= 7.0.3.1)
139
- activerecord (= 7.0.3.1)
140
- activestorage (= 7.0.3.1)
141
- activesupport (= 7.0.3.1)
130
+ rails (7.0.4)
131
+ actioncable (= 7.0.4)
132
+ actionmailbox (= 7.0.4)
133
+ actionmailer (= 7.0.4)
134
+ actionpack (= 7.0.4)
135
+ actiontext (= 7.0.4)
136
+ actionview (= 7.0.4)
137
+ activejob (= 7.0.4)
138
+ activemodel (= 7.0.4)
139
+ activerecord (= 7.0.4)
140
+ activestorage (= 7.0.4)
141
+ activesupport (= 7.0.4)
142
142
  bundler (>= 1.15.0)
143
- railties (= 7.0.3.1)
143
+ railties (= 7.0.4)
144
144
  rails-dom-testing (2.0.3)
145
145
  activesupport (>= 4.2.0)
146
146
  nokogiri (>= 1.6)
147
- rails-html-sanitizer (1.4.3)
148
- loofah (~> 2.3)
149
- railties (7.0.3.1)
150
- actionpack (= 7.0.3.1)
151
- activesupport (= 7.0.3.1)
147
+ rails-html-sanitizer (1.4.4)
148
+ loofah (~> 2.19, >= 2.19.1)
149
+ railties (7.0.4)
150
+ actionpack (= 7.0.4)
151
+ activesupport (= 7.0.4)
152
152
  method_source
153
153
  rake (>= 12.2)
154
154
  thor (~> 1.0)
155
155
  zeitwerk (~> 2.5)
156
156
  rainbow (3.1.1)
157
157
  rake (13.0.6)
158
- redis (4.7.1)
159
- regexp_parser (2.5.0)
158
+ redis-client (0.11.2)
159
+ connection_pool
160
+ regexp_parser (2.6.1)
160
161
  rexml (3.2.5)
161
- rspec (3.11.0)
162
- rspec-core (~> 3.11.0)
163
- rspec-expectations (~> 3.11.0)
164
- rspec-mocks (~> 3.11.0)
165
- rspec-core (3.11.0)
166
- rspec-support (~> 3.11.0)
167
- rspec-expectations (3.11.0)
162
+ rspec (3.12.0)
163
+ rspec-core (~> 3.12.0)
164
+ rspec-expectations (~> 3.12.0)
165
+ rspec-mocks (~> 3.12.0)
166
+ rspec-core (3.12.0)
167
+ rspec-support (~> 3.12.0)
168
+ rspec-expectations (3.12.0)
168
169
  diff-lcs (>= 1.2.0, < 2.0)
169
- rspec-support (~> 3.11.0)
170
- rspec-mocks (3.11.1)
170
+ rspec-support (~> 3.12.0)
171
+ rspec-mocks (3.12.1)
171
172
  diff-lcs (>= 1.2.0, < 2.0)
172
- rspec-support (~> 3.11.0)
173
- rspec-support (3.11.0)
174
- rubocop (1.30.1)
173
+ rspec-support (~> 3.12.0)
174
+ rspec-support (3.12.0)
175
+ rubocop (1.35.1)
176
+ json (~> 2.3)
175
177
  parallel (~> 1.10)
176
- parser (>= 3.1.0.0)
178
+ parser (>= 3.1.2.1)
177
179
  rainbow (>= 2.2.2, < 4.0)
178
180
  regexp_parser (>= 1.8, < 3.0)
179
181
  rexml (>= 3.2.5, < 4.0)
180
- rubocop-ast (>= 1.18.0, < 2.0)
182
+ rubocop-ast (>= 1.20.1, < 2.0)
181
183
  ruby-progressbar (~> 1.7)
182
184
  unicode-display_width (>= 1.4.0, < 3.0)
183
- rubocop-ast (1.19.1)
185
+ rubocop-ast (1.24.0)
184
186
  parser (>= 3.1.1.0)
185
- rubocop-config-umbrellio (1.30.0.65)
186
- rubocop (~> 1.30.0)
187
+ rubocop-config-umbrellio (1.35.0.69)
188
+ rubocop (~> 1.35.0)
187
189
  rubocop-performance (~> 1.14.0)
188
- rubocop-rails (~> 2.14.2)
190
+ rubocop-rails (~> 2.15.0)
189
191
  rubocop-rake (~> 0.6.0)
190
- rubocop-rspec (~> 2.11.1)
192
+ rubocop-rspec (~> 2.12.0)
191
193
  rubocop-sequel (~> 0.3.3)
192
194
  rubocop-performance (1.14.3)
193
195
  rubocop (>= 1.7.0, < 2.0)
194
196
  rubocop-ast (>= 0.4.0)
195
- rubocop-rails (2.14.2)
197
+ rubocop-rails (2.15.2)
196
198
  activesupport (>= 4.2.0)
197
199
  rack (>= 1.1)
198
200
  rubocop (>= 1.7.0, < 2.0)
199
201
  rubocop-rake (0.6.0)
200
202
  rubocop (~> 1.0)
201
- rubocop-rspec (2.11.1)
202
- rubocop (~> 1.19)
203
+ rubocop-rspec (2.12.1)
204
+ rubocop (~> 1.31)
203
205
  rubocop-sequel (0.3.4)
204
206
  rubocop (~> 1.0)
205
207
  ruby-progressbar (1.11.0)
206
208
  securerandom (0.1.1)
207
- sidekiq (6.5.1)
208
- connection_pool (>= 2.2.2)
209
- rack (~> 2.0)
210
- redis (>= 4.2.0)
211
- strscan (3.0.3)
209
+ sidekiq (7.0.2)
210
+ concurrent-ruby (< 2)
211
+ connection_pool (>= 2.3.0)
212
+ rack (>= 2.2.4)
213
+ redis-client (>= 0.11.0)
212
214
  thor (1.2.1)
213
- timeout (0.3.0)
215
+ timeout (0.3.1)
214
216
  tzinfo (2.0.5)
215
217
  concurrent-ruby (~> 1.0)
216
- unicode-display_width (2.2.0)
218
+ unicode-display_width (2.3.0)
217
219
  websocket-driver (0.7.5)
218
220
  websocket-extensions (>= 0.1.0)
219
221
  websocket-extensions (0.1.5)
220
- zeitwerk (2.6.0)
222
+ zeitwerk (2.6.6)
221
223
 
222
224
  PLATFORMS
225
+ arm64-darwin-22
223
226
  x86_64-darwin-20
224
227
  x86_64-darwin-21
225
228
  x86_64-linux
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Memolog
4
- VERSION = "0.4.6"
4
+ VERSION = "0.4.8"
5
5
  end
data/lib/memolog.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "logger"
4
- require "securerandom"
5
4
  require "stringio"
6
5
  require "json"
7
6
 
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.6
4
+ version: 0.4.8
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-07-22 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.3.12
190
+ rubygems_version: 3.3.7
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: In-memory logger for exceptions.