memolog 0.4.0 → 0.4.4

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: d8cb342892f52d20fa06101e203aa4d4d1c5efea05696c48bb7a30804b66befb
4
- data.tar.gz: 4e7f8721ae37487cc8d88316432d2897f269c1817e75d66e562c5b846521cbd6
3
+ metadata.gz: 209b6cb9c56b92b3efd69c32c7b4009498a2f71d1e41f1ddbc6956f1a0ad09c8
4
+ data.tar.gz: b8ac41b371bcc278f136ea2456b637b3bd0ba70470f97304720d18ca241eb1d9
5
5
  SHA512:
6
- metadata.gz: 806d71859e439c83417ad71f5c97f53358405e55243f982e79ce5f28b6736f1ae0175c6bf25822bbd30c27dea0f04584b4eb820df8ec8a8632c5487d48667a31
7
- data.tar.gz: fbf2765dcf76597eba069a9d627e5728306043962bb92b3e23aab8e253cc948be10a4bbc4220b3d66bcb48d62ca3f9b9e362c88e03ea98a8f268dc51160b2926
6
+ metadata.gz: c70926e60266485e29ac65943de44d38a337b82f9448ce98dd643e5cc374e2407d302f057d579d7ec44d4dd969c1d55ee04bd62674dd65f53ac108810c81f2c5
7
+ data.tar.gz: 8d4753e1842f5928619cabb3286ac6ad99388f7b201a0772979a1ef80320c29037018afe8b778be409a46ff8afa1d2fca902a8f07c984c3417367d24514c23e4
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  strategy:
26
26
  matrix:
27
- ruby: [2.7, 3.0]
27
+ ruby: [2.7, 3.0, 3.1]
28
28
 
29
29
  steps:
30
30
  - uses: actions/checkout@v2
data/Gemfile CHANGED
@@ -4,10 +4,3 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in memolog.gemspec
6
6
  gemspec
7
-
8
- gem "pry"
9
- gem "rails"
10
- gem "rake"
11
- gem "rspec"
12
- gem "rubocop-config-umbrellio"
13
- gem "sidekiq"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- memolog (0.4.0)
4
+ memolog (0.4.4)
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.1)
13
- actionpack (= 7.0.1)
14
- activesupport (= 7.0.1)
12
+ actioncable (7.0.2.3)
13
+ actionpack (= 7.0.2.3)
14
+ activesupport (= 7.0.2.3)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailbox (7.0.1)
18
- actionpack (= 7.0.1)
19
- activejob (= 7.0.1)
20
- activerecord (= 7.0.1)
21
- activestorage (= 7.0.1)
22
- activesupport (= 7.0.1)
17
+ actionmailbox (7.0.2.3)
18
+ actionpack (= 7.0.2.3)
19
+ activejob (= 7.0.2.3)
20
+ activerecord (= 7.0.2.3)
21
+ activestorage (= 7.0.2.3)
22
+ activesupport (= 7.0.2.3)
23
23
  mail (>= 2.7.1)
24
24
  net-imap
25
25
  net-pop
26
26
  net-smtp
27
- actionmailer (7.0.1)
28
- actionpack (= 7.0.1)
29
- actionview (= 7.0.1)
30
- activejob (= 7.0.1)
31
- activesupport (= 7.0.1)
27
+ actionmailer (7.0.2.3)
28
+ actionpack (= 7.0.2.3)
29
+ actionview (= 7.0.2.3)
30
+ activejob (= 7.0.2.3)
31
+ activesupport (= 7.0.2.3)
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.1)
38
- actionview (= 7.0.1)
39
- activesupport (= 7.0.1)
37
+ actionpack (7.0.2.3)
38
+ actionview (= 7.0.2.3)
39
+ activesupport (= 7.0.2.3)
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.1)
45
- actionpack (= 7.0.1)
46
- activerecord (= 7.0.1)
47
- activestorage (= 7.0.1)
48
- activesupport (= 7.0.1)
44
+ actiontext (7.0.2.3)
45
+ actionpack (= 7.0.2.3)
46
+ activerecord (= 7.0.2.3)
47
+ activestorage (= 7.0.2.3)
48
+ activesupport (= 7.0.2.3)
49
49
  globalid (>= 0.6.0)
50
50
  nokogiri (>= 1.8.5)
51
- actionview (7.0.1)
52
- activesupport (= 7.0.1)
51
+ actionview (7.0.2.3)
52
+ activesupport (= 7.0.2.3)
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.1)
58
- activesupport (= 7.0.1)
57
+ activejob (7.0.2.3)
58
+ activesupport (= 7.0.2.3)
59
59
  globalid (>= 0.3.6)
60
- activemodel (7.0.1)
61
- activesupport (= 7.0.1)
62
- activerecord (7.0.1)
63
- activemodel (= 7.0.1)
64
- activesupport (= 7.0.1)
65
- activestorage (7.0.1)
66
- actionpack (= 7.0.1)
67
- activejob (= 7.0.1)
68
- activerecord (= 7.0.1)
69
- activesupport (= 7.0.1)
60
+ activemodel (7.0.2.3)
61
+ activesupport (= 7.0.2.3)
62
+ activerecord (7.0.2.3)
63
+ activemodel (= 7.0.2.3)
64
+ activesupport (= 7.0.2.3)
65
+ activestorage (7.0.2.3)
66
+ actionpack (= 7.0.2.3)
67
+ activejob (= 7.0.2.3)
68
+ activerecord (= 7.0.2.3)
69
+ activesupport (= 7.0.2.3)
70
70
  marcel (~> 1.0)
71
71
  mini_mime (>= 1.1.0)
72
- activesupport (7.0.1)
72
+ activesupport (7.0.2.3)
73
73
  concurrent-ruby (~> 1.0, >= 1.0.2)
74
74
  i18n (>= 1.6, < 2)
75
75
  minitest (>= 5.1)
@@ -77,7 +77,7 @@ GEM
77
77
  ast (2.4.2)
78
78
  builder (3.2.4)
79
79
  coderay (1.1.3)
80
- concurrent-ruby (1.1.9)
80
+ concurrent-ruby (1.1.10)
81
81
  connection_pool (2.2.5)
82
82
  crass (1.0.6)
83
83
  diff-lcs (1.5.0)
@@ -85,12 +85,11 @@ GEM
85
85
  erubi (1.10.0)
86
86
  globalid (1.0.0)
87
87
  activesupport (>= 5.0)
88
- i18n (1.9.1)
88
+ i18n (1.10.0)
89
89
  concurrent-ruby (~> 1.0)
90
- io-wait (0.2.1)
91
90
  json (2.6.1)
92
91
  logger (1.4.4)
93
- loofah (2.13.0)
92
+ loofah (2.16.0)
94
93
  crass (~> 1.0.2)
95
94
  nokogiri (>= 1.5.9)
96
95
  mail (2.7.1)
@@ -107,20 +106,19 @@ GEM
107
106
  digest
108
107
  net-protocol
109
108
  timeout
110
- net-protocol (0.1.2)
111
- io-wait
109
+ net-protocol (0.1.3)
112
110
  timeout
113
111
  net-smtp (0.3.1)
114
112
  digest
115
113
  net-protocol
116
114
  timeout
117
115
  nio4r (2.5.8)
118
- nokogiri (1.13.1-x86_64-darwin)
116
+ nokogiri (1.13.4-x86_64-darwin)
119
117
  racc (~> 1.4)
120
- nokogiri (1.13.1-x86_64-linux)
118
+ nokogiri (1.13.4-x86_64-linux)
121
119
  racc (~> 1.4)
122
- parallel (1.21.0)
123
- parser (3.1.0.0)
120
+ parallel (1.22.1)
121
+ parser (3.1.2.0)
124
122
  ast (~> 2.4.1)
125
123
  pry (0.14.1)
126
124
  coderay (~> 1.1)
@@ -129,28 +127,28 @@ GEM
129
127
  rack (2.2.3)
130
128
  rack-test (1.1.0)
131
129
  rack (>= 1.0, < 3)
132
- rails (7.0.1)
133
- actioncable (= 7.0.1)
134
- actionmailbox (= 7.0.1)
135
- actionmailer (= 7.0.1)
136
- actionpack (= 7.0.1)
137
- actiontext (= 7.0.1)
138
- actionview (= 7.0.1)
139
- activejob (= 7.0.1)
140
- activemodel (= 7.0.1)
141
- activerecord (= 7.0.1)
142
- activestorage (= 7.0.1)
143
- activesupport (= 7.0.1)
130
+ rails (7.0.2.3)
131
+ actioncable (= 7.0.2.3)
132
+ actionmailbox (= 7.0.2.3)
133
+ actionmailer (= 7.0.2.3)
134
+ actionpack (= 7.0.2.3)
135
+ actiontext (= 7.0.2.3)
136
+ actionview (= 7.0.2.3)
137
+ activejob (= 7.0.2.3)
138
+ activemodel (= 7.0.2.3)
139
+ activerecord (= 7.0.2.3)
140
+ activestorage (= 7.0.2.3)
141
+ activesupport (= 7.0.2.3)
144
142
  bundler (>= 1.15.0)
145
- railties (= 7.0.1)
143
+ railties (= 7.0.2.3)
146
144
  rails-dom-testing (2.0.3)
147
145
  activesupport (>= 4.2.0)
148
146
  nokogiri (>= 1.6)
149
147
  rails-html-sanitizer (1.4.2)
150
148
  loofah (~> 2.3)
151
- railties (7.0.1)
152
- actionpack (= 7.0.1)
153
- activesupport (= 7.0.1)
149
+ railties (7.0.2.3)
150
+ actionpack (= 7.0.2.3)
151
+ activesupport (= 7.0.2.3)
154
152
  method_source
155
153
  rake (>= 12.2)
156
154
  thor (~> 1.0)
@@ -158,21 +156,21 @@ GEM
158
156
  rainbow (3.1.1)
159
157
  rake (13.0.6)
160
158
  redis (4.6.0)
161
- regexp_parser (2.2.0)
159
+ regexp_parser (2.3.0)
162
160
  rexml (3.2.5)
163
- rspec (3.10.0)
164
- rspec-core (~> 3.10.0)
165
- rspec-expectations (~> 3.10.0)
166
- rspec-mocks (~> 3.10.0)
167
- rspec-core (3.10.2)
168
- rspec-support (~> 3.10.0)
169
- rspec-expectations (3.10.2)
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)
170
168
  diff-lcs (>= 1.2.0, < 2.0)
171
- rspec-support (~> 3.10.0)
172
- rspec-mocks (3.10.3)
169
+ rspec-support (~> 3.11.0)
170
+ rspec-mocks (3.11.1)
173
171
  diff-lcs (>= 1.2.0, < 2.0)
174
- rspec-support (~> 3.10.0)
175
- rspec-support (3.10.3)
172
+ rspec-support (~> 3.11.0)
173
+ rspec-support (3.11.0)
176
174
  rubocop (1.25.1)
177
175
  parallel (~> 1.10)
178
176
  parser (>= 3.1.0.0)
@@ -182,8 +180,8 @@ GEM
182
180
  rubocop-ast (>= 1.15.1, < 2.0)
183
181
  ruby-progressbar (~> 1.7)
184
182
  unicode-display_width (>= 1.4.0, < 3.0)
185
- rubocop-ast (1.15.1)
186
- parser (>= 3.0.1.1)
183
+ rubocop-ast (1.17.0)
184
+ parser (>= 3.1.1.0)
187
185
  rubocop-config-umbrellio (1.25.0.61)
188
186
  rubocop (~> 1.25.0)
189
187
  rubocop-performance (~> 1.13.0)
@@ -191,7 +189,7 @@ GEM
191
189
  rubocop-rake (~> 0.6.0)
192
190
  rubocop-rspec (~> 2.7.0)
193
191
  rubocop-sequel (~> 0.3.3)
194
- rubocop-performance (1.13.2)
192
+ rubocop-performance (1.13.3)
195
193
  rubocop (>= 1.7.0, < 2.0)
196
194
  rubocop-ast (>= 0.4.0)
197
195
  rubocop-rails (2.13.2)
@@ -223,6 +221,7 @@ GEM
223
221
 
224
222
  PLATFORMS
225
223
  x86_64-darwin-20
224
+ x86_64-darwin-21
226
225
  x86_64-linux
227
226
 
228
227
  DEPENDENCIES
@@ -235,4 +234,4 @@ DEPENDENCIES
235
234
  sidekiq
236
235
 
237
236
  BUNDLED WITH
238
- 2.2.28
237
+ 2.3.7
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Memolog
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.4"
5
5
  end
data/lib/memolog.rb CHANGED
@@ -57,7 +57,7 @@ module Memolog
57
57
 
58
58
  dump = logdevs.last.string.slice(beginning, config.log_size_limit).presence
59
59
 
60
- config.parse_json ? JSON.parse(dump) : dump
60
+ dump && config.parse_json ? JSON.parse(dump) : dump
61
61
  rescue JSON::ParserError
62
62
  dump
63
63
  end
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.0
4
+ version: 0.4.4
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-02-08 00:00:00.000000000 Z
11
+ date: 2022-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -52,6 +52,90 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-config-umbrellio
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sidekiq
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
55
139
  description: |2
56
140
  Memolog is an in-memory logger, which extend any other logger.
57
141
  Designed to work with Sentry.
@@ -103,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
187
  - !ruby/object:Gem::Version
104
188
  version: '0'
105
189
  requirements: []
106
- rubygems_version: 3.2.15
190
+ rubygems_version: 3.3.3
107
191
  signing_key:
108
192
  specification_version: 4
109
193
  summary: In-memory logger for exceptions.