dispatch-rider 1.8.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +50 -0
- data/.github/workflows/rubocop-challenger.yml +26 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +31 -20
- data/.rubocop_todo.yml +904 -0
- data/.travis.yml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +2 -2
- data/dispatch-rider.gemspec +16 -10
- data/gemfiles/Gemfile-5-2 +8 -0
- data/gemfiles/Gemfile-6-0 +8 -0
- data/gemfiles/Gemfile-6-1 +8 -0
- data/gemfiles/Gemfile-7-0 +8 -0
- data/lib/dispatch-rider/callbacks/access.rb +0 -1
- data/lib/dispatch-rider/callbacks/storage.rb +0 -2
- data/lib/dispatch-rider/callbacks/support.rb +0 -2
- data/lib/dispatch-rider/command.rb +0 -2
- data/lib/dispatch-rider/demultiplexer.rb +1 -1
- data/lib/dispatch-rider/dispatcher.rb +0 -2
- data/lib/dispatch-rider/error_handlers.rb +0 -1
- data/lib/dispatch-rider/handlers/inheritance_tracking.rb +0 -2
- data/lib/dispatch-rider/handlers/named_process.rb +0 -2
- data/lib/dispatch-rider/integrations/appsignal.rb +0 -2
- data/lib/dispatch-rider/logging/json_formatter.rb +0 -2
- data/lib/dispatch-rider/logging/lifecycle_logger.rb +0 -1
- data/lib/dispatch-rider/logging/text_formatter.rb +1 -3
- data/lib/dispatch-rider/logging/translator/base_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator/complete_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator/error_handler_fail_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator/fail_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator/start_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator/stop_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator/success_translator.rb +0 -2
- data/lib/dispatch-rider/logging/translator.rb +0 -2
- data/lib/dispatch-rider/logging.rb +0 -1
- data/lib/dispatch-rider/notification_services/aws_sns.rb +4 -4
- data/lib/dispatch-rider/notification_services/base.rb +1 -1
- data/lib/dispatch-rider/notification_services/file_system/channel.rb +1 -2
- data/lib/dispatch-rider/notification_services/file_system/notifier.rb +0 -2
- data/lib/dispatch-rider/publisher/configuration/destination.rb +0 -2
- data/lib/dispatch-rider/publisher/configuration/notification_service.rb +0 -2
- data/lib/dispatch-rider/publisher/configuration.rb +0 -2
- data/lib/dispatch-rider/publisher/configuration_reader.rb +0 -3
- data/lib/dispatch-rider/publisher/configuration_support.rb +0 -2
- data/lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb +6 -7
- data/lib/dispatch-rider/queue_services/aws_sqs.rb +28 -20
- data/lib/dispatch-rider/queue_services/file_system/fs_received_message.rb +0 -1
- data/lib/dispatch-rider/queue_services/file_system.rb +2 -2
- data/lib/dispatch-rider/queue_services/received_message.rb +0 -2
- data/lib/dispatch-rider/registrars/base.rb +2 -2
- data/lib/dispatch-rider/registrars/sns_channel.rb +1 -1
- data/lib/dispatch-rider/runner.rb +0 -1
- data/lib/dispatch-rider/version.rb +1 -1
- data/lib/dispatch-rider.rb +2 -0
- data/lib/generators/dispatch_rider/install/install_generator.rb +0 -2
- data/lib/generators/dispatch_rider/job/dispatch_job_generator.rb +0 -2
- data/spec/factories/messages.rb +7 -6
- data/spec/lib/dispatch-rider/callbacks/access_spec.rb +2 -2
- data/spec/lib/dispatch-rider/callbacks/storage_spec.rb +3 -3
- data/spec/lib/dispatch-rider/configuration_spec.rb +1 -1
- data/spec/lib/dispatch-rider/default_error_handler_spec.rb +1 -0
- data/spec/lib/dispatch-rider/demultiplexer_spec.rb +2 -2
- data/spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb +3 -3
- data/spec/lib/dispatch-rider/notification_services/base_spec.rb +7 -7
- data/spec/lib/dispatch-rider/notification_services/file_system/channel_spec.rb +5 -4
- data/spec/lib/dispatch-rider/publisher/base_spec.rb +2 -2
- data/spec/lib/dispatch-rider/publisher/configuration/destination_spec.rb +1 -2
- data/spec/lib/dispatch-rider/publisher/configuration/notification_service_spec.rb +1 -2
- data/spec/lib/dispatch-rider/publisher/configuration_spec.rb +2 -2
- data/spec/lib/dispatch-rider/publisher_spec.rb +2 -1
- data/spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb +24 -34
- data/spec/lib/dispatch-rider/queue_services/file_system_spec.rb +2 -2
- data/spec/lib/dispatch-rider/scheduled_job_spec.rb +12 -12
- data/spec/lib/dispatch-rider/subscriber_spec.rb +4 -0
- data/spec/spec_helper.rb +32 -4
- data/spec/support/integration_support.rb +0 -1
- metadata +93 -33
- data/.rubocop.hound.yml +0 -261
- data/spec/lib/dispatch-rider/queue_services_spec.rb +0 -6
data/.rubocop.hound.yml
DELETED
@@ -1,261 +0,0 @@
|
|
1
|
-
# this is the default from hound's github, do not modify
|
2
|
-
AllCops:
|
3
|
-
Exclude:
|
4
|
-
- db/schema.rb
|
5
|
-
|
6
|
-
AccessorMethodName:
|
7
|
-
Enabled: false
|
8
|
-
|
9
|
-
ActionFilter:
|
10
|
-
Enabled: false
|
11
|
-
|
12
|
-
Alias:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
ArrayJoin:
|
16
|
-
Enabled: false
|
17
|
-
|
18
|
-
AsciiComments:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
AsciiIdentifiers:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Attr:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
BlockNesting:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
CaseEquality:
|
31
|
-
Enabled: false
|
32
|
-
|
33
|
-
CharacterLiteral:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
ClassAndModuleChildren:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
ClassLength:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
ClassVars:
|
43
|
-
Enabled: false
|
44
|
-
|
45
|
-
CollectionMethods:
|
46
|
-
PreferredMethods:
|
47
|
-
find: detect
|
48
|
-
reduce: inject
|
49
|
-
collect: map
|
50
|
-
find_all: select
|
51
|
-
|
52
|
-
ColonMethodCall:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
CommentAnnotation:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
CyclomaticComplexity:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Delegate:
|
62
|
-
Enabled: false
|
63
|
-
|
64
|
-
DeprecatedHashMethods:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Documentation:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
DotPosition:
|
71
|
-
EnforcedStyle: trailing
|
72
|
-
|
73
|
-
DoubleNegation:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
EachWithObject:
|
77
|
-
Enabled: false
|
78
|
-
|
79
|
-
EmptyLiteral:
|
80
|
-
Enabled: false
|
81
|
-
|
82
|
-
Encoding:
|
83
|
-
Enabled: false
|
84
|
-
|
85
|
-
EvenOdd:
|
86
|
-
Enabled: false
|
87
|
-
|
88
|
-
FileName:
|
89
|
-
Enabled: false
|
90
|
-
|
91
|
-
FlipFlop:
|
92
|
-
Enabled: false
|
93
|
-
|
94
|
-
FormatString:
|
95
|
-
Enabled: false
|
96
|
-
|
97
|
-
GlobalVars:
|
98
|
-
Enabled: false
|
99
|
-
|
100
|
-
GuardClause:
|
101
|
-
Enabled: false
|
102
|
-
|
103
|
-
IfUnlessModifier:
|
104
|
-
Enabled: false
|
105
|
-
|
106
|
-
IfWithSemicolon:
|
107
|
-
Enabled: false
|
108
|
-
|
109
|
-
InlineComment:
|
110
|
-
Enabled: false
|
111
|
-
|
112
|
-
Lambda:
|
113
|
-
Enabled: false
|
114
|
-
|
115
|
-
LambdaCall:
|
116
|
-
Enabled: false
|
117
|
-
|
118
|
-
LineEndConcatenation:
|
119
|
-
Enabled: false
|
120
|
-
|
121
|
-
LineLength:
|
122
|
-
Max: 120
|
123
|
-
AllowURI: true
|
124
|
-
|
125
|
-
MethodLength:
|
126
|
-
Enabled: false
|
127
|
-
|
128
|
-
ModuleFunction:
|
129
|
-
Enabled: false
|
130
|
-
|
131
|
-
NegatedIf:
|
132
|
-
Enabled: false
|
133
|
-
|
134
|
-
NegatedWhile:
|
135
|
-
Enabled: false
|
136
|
-
|
137
|
-
Next:
|
138
|
-
Enabled: false
|
139
|
-
|
140
|
-
NilComparison:
|
141
|
-
Enabled: false
|
142
|
-
|
143
|
-
Not:
|
144
|
-
Enabled: false
|
145
|
-
|
146
|
-
NumericLiterals:
|
147
|
-
Enabled: false
|
148
|
-
|
149
|
-
OneLineConditional:
|
150
|
-
Enabled: false
|
151
|
-
|
152
|
-
OpMethod:
|
153
|
-
Enabled: false
|
154
|
-
|
155
|
-
ParameterLists:
|
156
|
-
Enabled: false
|
157
|
-
|
158
|
-
PercentLiteralDelimiters:
|
159
|
-
Enabled: false
|
160
|
-
|
161
|
-
PerlBackrefs:
|
162
|
-
Enabled: false
|
163
|
-
|
164
|
-
PredicateName:
|
165
|
-
NamePrefixBlacklist:
|
166
|
-
- is_
|
167
|
-
|
168
|
-
Proc:
|
169
|
-
Enabled: false
|
170
|
-
|
171
|
-
RaiseArgs:
|
172
|
-
Enabled: false
|
173
|
-
|
174
|
-
RegexpLiteral:
|
175
|
-
Enabled: false
|
176
|
-
|
177
|
-
SelfAssignment:
|
178
|
-
Enabled: false
|
179
|
-
|
180
|
-
SingleLineBlockParams:
|
181
|
-
Enabled: false
|
182
|
-
|
183
|
-
SingleLineMethods:
|
184
|
-
Enabled: false
|
185
|
-
|
186
|
-
SignalException:
|
187
|
-
Enabled: false
|
188
|
-
|
189
|
-
SpecialGlobalVars:
|
190
|
-
Enabled: false
|
191
|
-
|
192
|
-
StringLiterals:
|
193
|
-
EnforcedStyle: double_quotes
|
194
|
-
|
195
|
-
VariableInterpolation:
|
196
|
-
Enabled: false
|
197
|
-
|
198
|
-
TrailingComma:
|
199
|
-
Enabled: false
|
200
|
-
|
201
|
-
TrivialAccessors:
|
202
|
-
Enabled: false
|
203
|
-
|
204
|
-
VariableInterpolation:
|
205
|
-
Enabled: false
|
206
|
-
|
207
|
-
WhenThen:
|
208
|
-
Enabled: false
|
209
|
-
|
210
|
-
WhileUntilModifier:
|
211
|
-
Enabled: false
|
212
|
-
|
213
|
-
WordArray:
|
214
|
-
Enabled: false
|
215
|
-
|
216
|
-
# Lint
|
217
|
-
|
218
|
-
AmbiguousOperator:
|
219
|
-
Enabled: false
|
220
|
-
|
221
|
-
AmbiguousRegexpLiteral:
|
222
|
-
Enabled: false
|
223
|
-
|
224
|
-
AssignmentInCondition:
|
225
|
-
Enabled: false
|
226
|
-
|
227
|
-
ConditionPosition:
|
228
|
-
Enabled: false
|
229
|
-
|
230
|
-
DeprecatedClassMethods:
|
231
|
-
Enabled: false
|
232
|
-
|
233
|
-
ElseLayout:
|
234
|
-
Enabled: false
|
235
|
-
|
236
|
-
HandleExceptions:
|
237
|
-
Enabled: false
|
238
|
-
|
239
|
-
InvalidCharacterLiteral:
|
240
|
-
Enabled: false
|
241
|
-
|
242
|
-
LiteralInCondition:
|
243
|
-
Enabled: false
|
244
|
-
|
245
|
-
LiteralInInterpolation:
|
246
|
-
Enabled: false
|
247
|
-
|
248
|
-
Loop:
|
249
|
-
Enabled: false
|
250
|
-
|
251
|
-
ParenthesesAsGroupedExpression:
|
252
|
-
Enabled: false
|
253
|
-
|
254
|
-
RequireParentheses:
|
255
|
-
Enabled: false
|
256
|
-
|
257
|
-
UnderscorePrefixedVariableName:
|
258
|
-
Enabled: false
|
259
|
-
|
260
|
-
Void:
|
261
|
-
Enabled: false
|