mail_room 0.10.1 → 0.11.0
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/.github/dependabot.yml +10 -0
- data/.github/workflows/ci.yml +54 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +86 -90
- data/.ruby-version +1 -1
- data/.tool-versions +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +40 -18
- data/lib/mail_room/arbitration/redis.rb +8 -1
- data/lib/mail_room/connection.rb +8 -1
- data/lib/mail_room/delivery/postback.rb +58 -10
- data/lib/mail_room/delivery/que.rb +15 -1
- data/lib/mail_room/delivery/sidekiq.rb +7 -0
- data/lib/mail_room/jwt.rb +39 -0
- data/lib/mail_room/microsoft_graph/connection.rb +33 -7
- data/lib/mail_room/version.rb +1 -1
- data/mail_room.gemspec +3 -2
- data/spec/fixtures/jwt_secret +1 -0
- data/spec/lib/arbitration/redis_spec.rb +6 -5
- data/spec/lib/delivery/letter_opener_spec.rb +2 -1
- data/spec/lib/delivery/logger_spec.rb +2 -1
- data/spec/lib/delivery/postback_spec.rb +51 -3
- data/spec/lib/delivery/sidekiq_spec.rb +7 -7
- data/spec/lib/jwt_spec.rb +80 -0
- data/spec/lib/microsoft_graph/connection_spec.rb +86 -24
- metadata +35 -8
- data/.travis.yml +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8937600a24f4f4321d47b0f1deb08d80a333785295b4e150fbe0e999e323ef3d
|
|
4
|
+
data.tar.gz: a83dfa14d4b068d6147298cdb6eb94f06f247616abc2631392316beb3eb79002
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd3e703bca57dae0549cbc8cb51ab5fb63f5ad49ceb721b4567758c10779949c540c8bce100cbc656b0a420e761513a0d15716107e4443cfb1f1e35053fd60fe
|
|
7
|
+
data.tar.gz: 5e873c3fdf2ee82aec7d7ec4485223c386c3ed0e274113670ca5c949467d6abb7551d8777d601d9e3f3a14bfceff44c24fbdb46cb4bdf084a0124ce63215fd67
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
services:
|
|
10
|
+
# Label used to access the service container
|
|
11
|
+
redis:
|
|
12
|
+
# Docker Hub image
|
|
13
|
+
image: redis
|
|
14
|
+
# Set health checks to wait until redis has started
|
|
15
|
+
options: >-
|
|
16
|
+
--health-cmd "redis-cli ping"
|
|
17
|
+
--health-interval 10s
|
|
18
|
+
--health-timeout 5s
|
|
19
|
+
--health-retries 5
|
|
20
|
+
ports:
|
|
21
|
+
# Maps port 6379 on service container to the host
|
|
22
|
+
- 6379:6379
|
|
23
|
+
|
|
24
|
+
strategy:
|
|
25
|
+
fail-fast: false
|
|
26
|
+
matrix:
|
|
27
|
+
ruby-version:
|
|
28
|
+
- head
|
|
29
|
+
- '3.2'
|
|
30
|
+
- '3.1'
|
|
31
|
+
- '3.0'
|
|
32
|
+
- '2.7'
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v3
|
|
35
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
36
|
+
uses: ruby/setup-ruby@v1
|
|
37
|
+
with:
|
|
38
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
39
|
+
bundler-cache: true # 'bundle install' and cache
|
|
40
|
+
- name: Run tests
|
|
41
|
+
run: bundle exec rspec
|
|
42
|
+
|
|
43
|
+
rubocop:
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v3
|
|
47
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
48
|
+
uses: ruby/setup-ruby@v1
|
|
49
|
+
with:
|
|
50
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
51
|
+
bundler-cache: true # 'bundle install' and cache
|
|
52
|
+
- name: Run Rubocop
|
|
53
|
+
run: bundle exec rubocop
|
|
54
|
+
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2023-03-15 01:41:21 UTC using RuboCop version 1.48.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
9
|
# Offense count: 5
|
|
10
|
-
#
|
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
11
|
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
12
12
|
# Include: **/*.gemspec
|
|
13
13
|
Gemspec/OrderedDependencies:
|
|
@@ -15,21 +15,21 @@ Gemspec/OrderedDependencies:
|
|
|
15
15
|
- 'mail_room.gemspec'
|
|
16
16
|
|
|
17
17
|
# Offense count: 1
|
|
18
|
-
# Configuration parameters: Include.
|
|
18
|
+
# Configuration parameters: Severity, Include.
|
|
19
19
|
# Include: **/*.gemspec
|
|
20
20
|
Gemspec/RequiredRubyVersion:
|
|
21
21
|
Exclude:
|
|
22
22
|
- 'mail_room.gemspec'
|
|
23
23
|
|
|
24
|
-
# Offense count:
|
|
25
|
-
#
|
|
24
|
+
# Offense count: 5
|
|
25
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
26
26
|
Layout/BlockEndNewline:
|
|
27
27
|
Exclude:
|
|
28
28
|
- 'spec/lib/delivery/postback_spec.rb'
|
|
29
29
|
- 'spec/lib/delivery/que_spec.rb'
|
|
30
30
|
|
|
31
31
|
# Offense count: 5
|
|
32
|
-
#
|
|
32
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
33
33
|
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
34
34
|
# SupportedStyles: case, end
|
|
35
35
|
Layout/CaseIndentation:
|
|
@@ -37,13 +37,13 @@ Layout/CaseIndentation:
|
|
|
37
37
|
- 'lib/mail_room/mailbox.rb'
|
|
38
38
|
|
|
39
39
|
# Offense count: 1
|
|
40
|
-
#
|
|
40
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
41
41
|
Layout/EmptyLineAfterMagicComment:
|
|
42
42
|
Exclude:
|
|
43
43
|
- 'mail_room.gemspec'
|
|
44
44
|
|
|
45
45
|
# Offense count: 2
|
|
46
|
-
#
|
|
46
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
47
47
|
# Configuration parameters: EnforcedStyle.
|
|
48
48
|
# SupportedStyles: around, only_before
|
|
49
49
|
Layout/EmptyLinesAroundAccessModifier:
|
|
@@ -52,7 +52,7 @@ Layout/EmptyLinesAroundAccessModifier:
|
|
|
52
52
|
- 'lib/mail_room/delivery/que.rb'
|
|
53
53
|
|
|
54
54
|
# Offense count: 4
|
|
55
|
-
#
|
|
55
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
56
56
|
# Configuration parameters: EnforcedStyle.
|
|
57
57
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
58
58
|
Layout/EmptyLinesAroundBlockBody:
|
|
@@ -62,15 +62,15 @@ Layout/EmptyLinesAroundBlockBody:
|
|
|
62
62
|
- 'spec/lib/logger/structured_spec.rb'
|
|
63
63
|
|
|
64
64
|
# Offense count: 1
|
|
65
|
-
#
|
|
65
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
66
66
|
# Configuration parameters: EnforcedStyle.
|
|
67
67
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
68
68
|
Layout/EmptyLinesAroundClassBody:
|
|
69
69
|
Exclude:
|
|
70
70
|
- 'lib/mail_room/logger/structured.rb'
|
|
71
71
|
|
|
72
|
-
# Offense count:
|
|
73
|
-
#
|
|
72
|
+
# Offense count: 15
|
|
73
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
74
74
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
75
75
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
76
76
|
Layout/FirstHashElementIndentation:
|
|
@@ -80,7 +80,7 @@ Layout/FirstHashElementIndentation:
|
|
|
80
80
|
- 'spec/lib/logger/structured_spec.rb'
|
|
81
81
|
|
|
82
82
|
# Offense count: 5
|
|
83
|
-
#
|
|
83
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
84
84
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
85
85
|
# SupportedHashRocketStyles: key, separator, table
|
|
86
86
|
# SupportedColonStyles: key, separator, table
|
|
@@ -90,22 +90,22 @@ Layout/HashAlignment:
|
|
|
90
90
|
- 'lib/mail_room/delivery/sidekiq.rb'
|
|
91
91
|
|
|
92
92
|
# Offense count: 2
|
|
93
|
-
#
|
|
93
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
94
94
|
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
|
95
95
|
Layout/LeadingCommentSpace:
|
|
96
96
|
Exclude:
|
|
97
97
|
- 'lib/mail_room/mailbox.rb'
|
|
98
98
|
- 'spec/lib/arbitration/redis_spec.rb'
|
|
99
99
|
|
|
100
|
-
# Offense count:
|
|
101
|
-
#
|
|
100
|
+
# Offense count: 5
|
|
101
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
102
102
|
Layout/MultilineBlockLayout:
|
|
103
103
|
Exclude:
|
|
104
104
|
- 'spec/lib/delivery/postback_spec.rb'
|
|
105
105
|
- 'spec/lib/delivery/que_spec.rb'
|
|
106
106
|
|
|
107
107
|
# Offense count: 3
|
|
108
|
-
#
|
|
108
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
109
109
|
# Configuration parameters: EnforcedStyle.
|
|
110
110
|
# SupportedStyles: space, no_space
|
|
111
111
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
@@ -115,14 +115,14 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
115
115
|
- 'lib/mail_room/mailbox.rb'
|
|
116
116
|
|
|
117
117
|
# Offense count: 2
|
|
118
|
-
#
|
|
118
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
119
119
|
Layout/SpaceAroundKeyword:
|
|
120
120
|
Exclude:
|
|
121
121
|
- 'lib/mail_room/coordinator.rb'
|
|
122
122
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
123
123
|
|
|
124
124
|
# Offense count: 2
|
|
125
|
-
#
|
|
125
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
126
126
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
|
127
127
|
# SupportedStylesForExponentOperator: space, no_space
|
|
128
128
|
Layout/SpaceAroundOperators:
|
|
@@ -131,7 +131,7 @@ Layout/SpaceAroundOperators:
|
|
|
131
131
|
- 'spec/lib/arbitration/redis_spec.rb'
|
|
132
132
|
|
|
133
133
|
# Offense count: 7
|
|
134
|
-
#
|
|
134
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
135
135
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
136
136
|
# SupportedStyles: space, no_space
|
|
137
137
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
@@ -141,8 +141,8 @@ Layout/SpaceBeforeBlockBraces:
|
|
|
141
141
|
- 'spec/lib/crash_handler_spec.rb'
|
|
142
142
|
- 'spec/lib/mailbox_spec.rb'
|
|
143
143
|
|
|
144
|
-
# Offense count:
|
|
145
|
-
#
|
|
144
|
+
# Offense count: 51
|
|
145
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
146
146
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
147
147
|
# SupportedStyles: space, no_space
|
|
148
148
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
@@ -158,43 +158,41 @@ Layout/SpaceInsideBlockBraces:
|
|
|
158
158
|
- 'spec/lib/imap/connection_spec.rb'
|
|
159
159
|
- 'spec/lib/mailbox_watcher_spec.rb'
|
|
160
160
|
|
|
161
|
-
# Offense count:
|
|
162
|
-
#
|
|
161
|
+
# Offense count: 32
|
|
162
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
163
163
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
164
164
|
# SupportedStyles: space, no_space, compact
|
|
165
165
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
166
166
|
Layout/SpaceInsideHashLiteralBraces:
|
|
167
167
|
Exclude:
|
|
168
|
-
- 'lib/mail_room/arbitration/redis.rb'
|
|
169
168
|
- 'lib/mail_room/mailbox.rb'
|
|
170
169
|
- 'spec/lib/cli_spec.rb'
|
|
171
170
|
- 'spec/lib/mailbox_spec.rb'
|
|
172
171
|
|
|
173
172
|
# Offense count: 1
|
|
174
|
-
#
|
|
173
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
175
174
|
# Configuration parameters: EnforcedStyle.
|
|
176
|
-
# SupportedStyles: space, no_space
|
|
175
|
+
# SupportedStyles: space, compact, no_space
|
|
177
176
|
Layout/SpaceInsideParens:
|
|
178
177
|
Exclude:
|
|
179
178
|
- 'spec/lib/logger/structured_spec.rb'
|
|
180
179
|
|
|
181
180
|
# Offense count: 1
|
|
182
|
-
#
|
|
181
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
183
182
|
# Configuration parameters: EnforcedStyle.
|
|
184
183
|
# SupportedStyles: final_newline, final_blank_line
|
|
185
184
|
Layout/TrailingEmptyLines:
|
|
186
185
|
Exclude:
|
|
187
186
|
- 'spec/lib/delivery/letter_opener_spec.rb'
|
|
188
187
|
|
|
189
|
-
# Offense count:
|
|
190
|
-
#
|
|
188
|
+
# Offense count: 4
|
|
189
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
191
190
|
# Configuration parameters: AllowInHeredoc.
|
|
192
191
|
Layout/TrailingWhitespace:
|
|
193
192
|
Exclude:
|
|
194
193
|
- 'lib/mail_room/coordinator.rb'
|
|
195
194
|
- 'lib/mail_room/imap.rb'
|
|
196
195
|
- 'spec/lib/coordinator_spec.rb'
|
|
197
|
-
- 'spec/lib/delivery/postback_spec.rb'
|
|
198
196
|
|
|
199
197
|
# Offense count: 5
|
|
200
198
|
# Configuration parameters: AllowedMethods.
|
|
@@ -209,35 +207,35 @@ Lint/RescueException:
|
|
|
209
207
|
- 'lib/mail_room/cli.rb'
|
|
210
208
|
|
|
211
209
|
# Offense count: 1
|
|
212
|
-
#
|
|
210
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
213
211
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
214
212
|
Lint/UnusedMethodArgument:
|
|
215
213
|
Exclude:
|
|
216
214
|
- 'lib/mail_room/logger/structured.rb'
|
|
217
215
|
|
|
218
|
-
# Offense count:
|
|
219
|
-
# Configuration parameters:
|
|
216
|
+
# Offense count: 5
|
|
217
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
220
218
|
Metrics/AbcSize:
|
|
221
219
|
Max: 27
|
|
222
220
|
|
|
223
|
-
# Offense count:
|
|
224
|
-
# Configuration parameters: CountComments, CountAsOne,
|
|
225
|
-
#
|
|
221
|
+
# Offense count: 32
|
|
222
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
223
|
+
# AllowedMethods: refine
|
|
226
224
|
Metrics/BlockLength:
|
|
227
|
-
Max:
|
|
225
|
+
Max: 198
|
|
228
226
|
|
|
229
227
|
# Offense count: 3
|
|
230
228
|
# Configuration parameters: CountComments, CountAsOne.
|
|
231
229
|
Metrics/ClassLength:
|
|
232
|
-
Max:
|
|
230
|
+
Max: 169
|
|
233
231
|
|
|
234
232
|
# Offense count: 1
|
|
235
|
-
# Configuration parameters:
|
|
233
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
236
234
|
Metrics/CyclomaticComplexity:
|
|
237
235
|
Max: 8
|
|
238
236
|
|
|
239
237
|
# Offense count: 13
|
|
240
|
-
# Configuration parameters: CountComments, CountAsOne,
|
|
238
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
241
239
|
Metrics/MethodLength:
|
|
242
240
|
Max: 22
|
|
243
241
|
|
|
@@ -252,34 +250,26 @@ Naming/AccessorMethodName:
|
|
|
252
250
|
- 'lib/mail_room/configuration.rb'
|
|
253
251
|
|
|
254
252
|
# Offense count: 1
|
|
255
|
-
#
|
|
253
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
256
254
|
Security/YAMLLoad:
|
|
257
255
|
Exclude:
|
|
258
256
|
- 'lib/mail_room/configuration.rb'
|
|
259
257
|
|
|
260
|
-
# Offense count: 2
|
|
261
|
-
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
|
|
262
|
-
# SupportedStyles: inline, group
|
|
263
|
-
Style/AccessModifierDeclarations:
|
|
264
|
-
Exclude:
|
|
265
|
-
- 'lib/mail_room/arbitration.rb'
|
|
266
|
-
- 'lib/mail_room/delivery.rb'
|
|
267
|
-
|
|
268
258
|
# Offense count: 1
|
|
269
|
-
#
|
|
259
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
270
260
|
# Configuration parameters: EnforcedStyle.
|
|
271
261
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
272
262
|
Style/Alias:
|
|
273
263
|
Exclude:
|
|
274
264
|
- 'lib/mail_room/coordinator.rb'
|
|
275
265
|
|
|
276
|
-
# Offense count:
|
|
277
|
-
#
|
|
278
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods,
|
|
266
|
+
# Offense count: 16
|
|
267
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
268
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
279
269
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
280
270
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
281
271
|
# FunctionalMethods: let, let!, subject, watch
|
|
282
|
-
#
|
|
272
|
+
# AllowedMethods: lambda, proc, it
|
|
283
273
|
Style/BlockDelimiters:
|
|
284
274
|
Exclude:
|
|
285
275
|
- 'spec/lib/arbitration/redis_spec.rb'
|
|
@@ -287,7 +277,8 @@ Style/BlockDelimiters:
|
|
|
287
277
|
- 'spec/lib/delivery/que_spec.rb'
|
|
288
278
|
- 'spec/lib/delivery/sidekiq_spec.rb'
|
|
289
279
|
|
|
290
|
-
# Offense count:
|
|
280
|
+
# Offense count: 14
|
|
281
|
+
# Configuration parameters: AllowedConstants.
|
|
291
282
|
Style/Documentation:
|
|
292
283
|
Exclude:
|
|
293
284
|
- 'spec/**/*'
|
|
@@ -299,14 +290,16 @@ Style/Documentation:
|
|
|
299
290
|
- 'lib/mail_room/connection.rb'
|
|
300
291
|
- 'lib/mail_room/crash_handler.rb'
|
|
301
292
|
- 'lib/mail_room/delivery.rb'
|
|
293
|
+
- 'lib/mail_room/imap.rb'
|
|
302
294
|
- 'lib/mail_room/imap/connection.rb'
|
|
303
295
|
- 'lib/mail_room/imap/message.rb'
|
|
304
296
|
- 'lib/mail_room/logger/structured.rb'
|
|
305
297
|
- 'lib/mail_room/message.rb'
|
|
298
|
+
- 'lib/mail_room/microsoft_graph.rb'
|
|
306
299
|
- 'lib/mail_room/microsoft_graph/connection.rb'
|
|
307
300
|
|
|
308
301
|
# Offense count: 2
|
|
309
|
-
#
|
|
302
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
310
303
|
# Configuration parameters: EnforcedStyle.
|
|
311
304
|
# SupportedStyles: compact, expanded
|
|
312
305
|
Style/EmptyMethod:
|
|
@@ -315,27 +308,27 @@ Style/EmptyMethod:
|
|
|
315
308
|
- 'lib/mail_room/delivery/noop.rb'
|
|
316
309
|
|
|
317
310
|
# Offense count: 1
|
|
318
|
-
#
|
|
311
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
319
312
|
Style/Encoding:
|
|
320
313
|
Exclude:
|
|
321
314
|
- 'mail_room.gemspec'
|
|
322
315
|
|
|
323
316
|
# Offense count: 2
|
|
324
|
-
#
|
|
317
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
325
318
|
Style/ExpandPathArguments:
|
|
326
319
|
Exclude:
|
|
327
320
|
- 'mail_room.gemspec'
|
|
328
321
|
- 'spec/spec_helper.rb'
|
|
329
322
|
|
|
330
|
-
# Offense count:
|
|
331
|
-
#
|
|
323
|
+
# Offense count: 39
|
|
324
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
332
325
|
# Configuration parameters: EnforcedStyle.
|
|
333
326
|
# SupportedStyles: always, always_true, never
|
|
334
327
|
Style/FrozenStringLiteralComment:
|
|
335
328
|
Enabled: false
|
|
336
329
|
|
|
337
330
|
# Offense count: 5
|
|
338
|
-
#
|
|
331
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
339
332
|
Style/GlobalStdStream:
|
|
340
333
|
Exclude:
|
|
341
334
|
- 'lib/mail_room/crash_handler.rb'
|
|
@@ -344,7 +337,8 @@ Style/GlobalStdStream:
|
|
|
344
337
|
- 'spec/lib/delivery/logger_spec.rb'
|
|
345
338
|
|
|
346
339
|
# Offense count: 3
|
|
347
|
-
#
|
|
340
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
341
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
348
342
|
Style/GuardClause:
|
|
349
343
|
Exclude:
|
|
350
344
|
- 'lib/mail_room/configuration.rb'
|
|
@@ -352,21 +346,22 @@ Style/GuardClause:
|
|
|
352
346
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
353
347
|
|
|
354
348
|
# Offense count: 1
|
|
355
|
-
#
|
|
356
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
349
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
350
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
357
351
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
352
|
+
# SupportedShorthandSyntax: always, never, either, consistent
|
|
358
353
|
Style/HashSyntax:
|
|
359
354
|
Exclude:
|
|
360
355
|
- 'spec/lib/microsoft_graph/connection_spec.rb'
|
|
361
356
|
|
|
362
357
|
# Offense count: 1
|
|
363
|
-
#
|
|
358
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
364
359
|
Style/IfUnlessModifier:
|
|
365
360
|
Exclude:
|
|
366
361
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
367
362
|
|
|
368
363
|
# Offense count: 5
|
|
369
|
-
#
|
|
364
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
370
365
|
# Configuration parameters: EnforcedStyle.
|
|
371
366
|
# SupportedStyles: literals, strict
|
|
372
367
|
Style/MutableConstant:
|
|
@@ -377,8 +372,8 @@ Style/MutableConstant:
|
|
|
377
372
|
- 'spec/spec_helper.rb'
|
|
378
373
|
|
|
379
374
|
# Offense count: 1
|
|
380
|
-
#
|
|
381
|
-
# Configuration parameters: EnforcedStyle,
|
|
375
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
376
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
382
377
|
# SupportedStyles: predicate, comparison
|
|
383
378
|
Style/NumericPredicate:
|
|
384
379
|
Exclude:
|
|
@@ -386,7 +381,7 @@ Style/NumericPredicate:
|
|
|
386
381
|
- 'lib/mail_room/imap/connection.rb'
|
|
387
382
|
|
|
388
383
|
# Offense count: 2
|
|
389
|
-
#
|
|
384
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
390
385
|
# Configuration parameters: EnforcedStyle.
|
|
391
386
|
# SupportedStyles: short, verbose
|
|
392
387
|
Style/PreferredHashMethods:
|
|
@@ -395,7 +390,7 @@ Style/PreferredHashMethods:
|
|
|
395
390
|
- 'lib/mail_room/mailbox.rb'
|
|
396
391
|
|
|
397
392
|
# Offense count: 1
|
|
398
|
-
#
|
|
393
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
399
394
|
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
|
|
400
395
|
# SupportedStyles: compact, exploded
|
|
401
396
|
Style/RaiseArgs:
|
|
@@ -403,13 +398,13 @@ Style/RaiseArgs:
|
|
|
403
398
|
- 'lib/mail_room/logger/structured.rb'
|
|
404
399
|
|
|
405
400
|
# Offense count: 2
|
|
406
|
-
#
|
|
401
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
407
402
|
Style/RedundantPercentQ:
|
|
408
403
|
Exclude:
|
|
409
404
|
- 'mail_room.gemspec'
|
|
410
405
|
|
|
411
406
|
# Offense count: 7
|
|
412
|
-
#
|
|
407
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
413
408
|
Style/RedundantSelf:
|
|
414
409
|
Exclude:
|
|
415
410
|
- 'lib/mail_room/configuration.rb'
|
|
@@ -418,7 +413,7 @@ Style/RedundantSelf:
|
|
|
418
413
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
419
414
|
|
|
420
415
|
# Offense count: 1
|
|
421
|
-
#
|
|
416
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
422
417
|
# Configuration parameters: EnforcedStyle.
|
|
423
418
|
# SupportedStyles: implicit, explicit
|
|
424
419
|
Style/RescueStandardError:
|
|
@@ -426,36 +421,37 @@ Style/RescueStandardError:
|
|
|
426
421
|
- 'lib/mail_room/configuration.rb'
|
|
427
422
|
|
|
428
423
|
# Offense count: 1
|
|
429
|
-
#
|
|
430
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
|
424
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
425
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
431
426
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
432
427
|
Style/SafeNavigation:
|
|
433
428
|
Exclude:
|
|
434
429
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
435
430
|
|
|
436
431
|
# Offense count: 1
|
|
437
|
-
#
|
|
438
|
-
# Configuration parameters: EnforcedStyle.
|
|
439
|
-
# SupportedStyles: use_perl_names, use_english_names
|
|
432
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
433
|
+
# Configuration parameters: RequireEnglish, EnforcedStyle.
|
|
434
|
+
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
|
440
435
|
Style/SpecialGlobalVars:
|
|
441
436
|
Exclude:
|
|
442
437
|
- 'mail_room.gemspec'
|
|
443
438
|
|
|
444
439
|
# Offense count: 1
|
|
445
|
-
#
|
|
440
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
441
|
+
# Configuration parameters: Mode.
|
|
446
442
|
Style/StringConcatenation:
|
|
447
443
|
Exclude:
|
|
448
444
|
- 'lib/mail_room/logger/structured.rb'
|
|
449
445
|
|
|
450
|
-
# Offense count:
|
|
451
|
-
#
|
|
446
|
+
# Offense count: 142
|
|
447
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
452
448
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
453
449
|
# SupportedStyles: single_quotes, double_quotes
|
|
454
450
|
Style/StringLiterals:
|
|
455
451
|
Enabled: false
|
|
456
452
|
|
|
457
453
|
# Offense count: 4
|
|
458
|
-
#
|
|
454
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
459
455
|
# Configuration parameters: EnforcedStyle, MinSize.
|
|
460
456
|
# SupportedStyles: percent, brackets
|
|
461
457
|
Style/SymbolArray:
|
|
@@ -464,7 +460,7 @@ Style/SymbolArray:
|
|
|
464
460
|
- 'spec/lib/logger/structured_spec.rb'
|
|
465
461
|
|
|
466
462
|
# Offense count: 2
|
|
467
|
-
#
|
|
463
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
468
464
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
469
465
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
470
466
|
Style/TrailingCommaInHashLiteral:
|
|
@@ -473,29 +469,29 @@ Style/TrailingCommaInHashLiteral:
|
|
|
473
469
|
- 'spec/spec_helper.rb'
|
|
474
470
|
|
|
475
471
|
# Offense count: 1
|
|
476
|
-
#
|
|
472
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
477
473
|
Style/WhileUntilDo:
|
|
478
474
|
Exclude:
|
|
479
475
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
480
476
|
|
|
481
477
|
# Offense count: 2
|
|
482
|
-
#
|
|
478
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
483
479
|
Style/WhileUntilModifier:
|
|
484
480
|
Exclude:
|
|
485
481
|
- 'lib/mail_room/coordinator.rb'
|
|
486
482
|
- 'lib/mail_room/mailbox_watcher.rb'
|
|
487
483
|
|
|
488
484
|
# Offense count: 3
|
|
489
|
-
#
|
|
485
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
490
486
|
# Configuration parameters: WordRegex.
|
|
491
487
|
# SupportedStyles: percent, brackets
|
|
492
488
|
Style/WordArray:
|
|
493
489
|
EnforcedStyle: percent
|
|
494
490
|
MinSize: 3
|
|
495
491
|
|
|
496
|
-
# Offense count:
|
|
497
|
-
#
|
|
498
|
-
# Configuration parameters:
|
|
492
|
+
# Offense count: 7
|
|
493
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
494
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
499
495
|
# URISchemes: http, https
|
|
500
496
|
Layout/LineLength:
|
|
501
497
|
Max: 177
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2
|
|
1
|
+
3.2
|
data/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby 3.2.2
|