infopark_reactor 1.27.0.rc9 → 1.29.0

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
- SHA1:
3
- metadata.gz: 97ddecb43bf28d784d51e05a6bc52783ef0bec51
4
- data.tar.gz: cde5a66c038bf4e5b59e9985a96a41a304f6bc7d
2
+ SHA256:
3
+ metadata.gz: 404e65df07e84fa356158b43332bae9654c4f3192a97c4ff6152068739230195
4
+ data.tar.gz: 7656cb5ee54147adc2c1bee839a25a7e8265c2345d1b1bf7043f2ef838bfb233
5
5
  SHA512:
6
- metadata.gz: d77e80d41037be97f09d8a6fb689f4b94cb6dbe1b873d0b1365017dfbbc3c9eabbc529802b0cb143118a3c69f3e4b6b2ad286a958535c3053f801e2e625510c0
7
- data.tar.gz: 1fe9919bcd25edf8f9351311e1d0f40d6c24b3ceaa24ac9eabb13dc9c2e27335d5fd69e2cdd71c2c256d21724df3444b9df2932dbffdb956451d12561312a2f0
6
+ metadata.gz: eff473d8c3817e9e01c52518a7de3003a3b7cfd025d07a80438c62770afae7589427e9fca73337dc0e160b4ed45be7e19e6fd4f951baf799a8b7da2ffbabb2d6
7
+ data.tar.gz: ac0aebbc001755f1530e62cc2688e2cbbd4029dac3d8cbd7f581520bd402d2413e076002a20260c01bd786c1625d91d3b802aa1405a2b5911602d842aebf0e12
data/.rubocop_todo.yml CHANGED
@@ -1,23 +1,47 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config --auto-gen-only-exclude`
3
- # on 2020-07-17 11:04:06 UTC using RuboCop version 0.87.1.
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-08-24 14:28:25 UTC using RuboCop version 1.35.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
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'infopark_reactor.gemspec'
15
+
9
16
  # Offense count: 2
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
19
+ # SupportedStylesAlignWith: start_of_line, begin
20
+ Layout/BeginEndAlignment:
21
+ Exclude:
22
+ - 'app/models/rails_connector/abstract_obj.rb'
23
+
24
+ # Offense count: 2
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
12
27
  # SupportedStylesAlignWith: start_of_line, def
13
28
  Layout/DefEndAlignment:
14
29
  Exclude:
15
30
  - 'lib/reactor/cm/user.rb'
16
31
  - 'lib/reactor/plans/create_group.rb'
17
32
 
33
+ # Offense count: 3
34
+ # This cop supports safe autocorrection (--autocorrect).
35
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
36
+ Layout/EmptyLineBetweenDefs:
37
+ Exclude:
38
+ - 'lib/reactor/attributes.rb'
39
+ - 'lib/reactor/legacy.rb'
40
+ - 'lib/reactor/persistence.rb'
41
+
18
42
  # Offense count: 4
19
- # Cop supports --auto-correct.
20
- # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
43
+ # This cop supports safe autocorrection (--autocorrect).
44
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
21
45
  # SupportedStylesAlignWith: keyword, variable, start_of_line
22
46
  Layout/EndAlignment:
23
47
  Exclude:
@@ -26,6 +50,40 @@ Layout/EndAlignment:
26
50
  - 'lib/reactor/tools/smart_xml_logger.rb'
27
51
  - 'lib/reactor/tools/workflow_generator.rb'
28
52
 
53
+ # Offense count: 2
54
+ # This cop supports safe autocorrection (--autocorrect).
55
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
56
+ Layout/LeadingCommentSpace:
57
+ Exclude:
58
+ - 'lib/reactor/permission.rb'
59
+ - 'lib/reactor/persistence.rb'
60
+
61
+ # Offense count: 2
62
+ # This cop supports safe autocorrection (--autocorrect).
63
+ Layout/RescueEnsureAlignment:
64
+ Exclude:
65
+ - 'app/models/rails_connector/abstract_obj.rb'
66
+
67
+ # Offense count: 2
68
+ # This cop supports safe autocorrection (--autocorrect).
69
+ Lint/AmbiguousOperatorPrecedence:
70
+ Exclude:
71
+ - 'lib/reactor/tools/migrator.rb'
72
+ - 'lib/reactor/tools/smart_xml_logger.rb'
73
+
74
+ # Offense count: 1
75
+ # This cop supports safe autocorrection (--autocorrect).
76
+ Lint/ElseLayout:
77
+ Exclude:
78
+ - 'lib/reactor/cm/xml_markup.rb'
79
+
80
+ # Offense count: 2
81
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
82
+ Lint/EmptyBlock:
83
+ Exclude:
84
+ - 'config/routes.rb'
85
+ - 'lib/reactor/persistence.rb'
86
+
29
87
  # Offense count: 9
30
88
  Lint/IneffectiveAccessModifier:
31
89
  Exclude:
@@ -42,6 +100,18 @@ Lint/LiteralAsCondition:
42
100
  Exclude:
43
101
  - 'lib/reactor/persistence.rb'
44
102
 
103
+ # Offense count: 2
104
+ Lint/MissingSuper:
105
+ Exclude:
106
+ - 'lib/reactor/cm/object_base.rb'
107
+ - 'lib/reactor/workflow/empty.rb'
108
+
109
+ # Offense count: 1
110
+ # This cop supports unsafe autocorrection (--autocorrect-all).
111
+ Lint/RedundantDirGlobSort:
112
+ Exclude:
113
+ - 'lib/reactor/tools/migrator.rb'
114
+
45
115
  # Offense count: 2
46
116
  Lint/ShadowingOuterLocalVariable:
47
117
  Exclude:
@@ -49,7 +119,7 @@ Lint/ShadowingOuterLocalVariable:
49
119
  - 'lib/reactor/cm/obj_class.rb'
50
120
 
51
121
  # Offense count: 2
52
- # Configuration parameters: AllowComments.
122
+ # Configuration parameters: AllowComments, AllowNil.
53
123
  Lint/SuppressedException:
54
124
  Exclude:
55
125
  - 'lib/reactor/tools/sower.rb'
@@ -66,72 +136,47 @@ Lint/UselessAssignment:
66
136
  - 'lib/reactor/plans/update_attribute.rb'
67
137
  - 'lib/reactor/plans/update_obj_class.rb'
68
138
 
69
- # Offense count: 47
70
- # Configuration parameters: IgnoredMethods.
139
+ # Offense count: 1
140
+ # This cop supports unsafe autocorrection (--autocorrect-all).
141
+ Lint/UselessMethodDefinition:
142
+ Exclude:
143
+ - 'lib/reactor/attributes.rb'
144
+
145
+ # Offense count: 43
146
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
71
147
  Metrics/AbcSize:
72
- Max: 54
148
+ Max: 58
73
149
 
74
150
  # Offense count: 5
75
- # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods.
76
- # ExcludedMethods: refine
151
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
152
+ # AllowedMethods: refine
77
153
  Metrics/BlockLength:
78
- Exclude:
79
- - '**/*.gemspec'
80
- - 'lib/reactor/attributes/link_list_extender.rb'
81
- - 'lib/reactor/attributes_handlers.rb'
82
- - 'lib/reactor/cm/obj_class.rb'
83
- - 'lib/tasks/cm_seeds.rake'
154
+ Max: 44
84
155
 
85
156
  # Offense count: 7
86
- # Configuration parameters: CountComments, Max, CountAsOne.
157
+ # Configuration parameters: CountComments, CountAsOne.
87
158
  Metrics/ClassLength:
88
- Exclude:
89
- - 'lib/reactor/attributes_handlers.rb'
90
- - 'lib/reactor/cm/group.rb'
91
- - 'lib/reactor/cm/link.rb'
92
- - 'lib/reactor/cm/obj.rb'
93
- - 'lib/reactor/cm/obj_class.rb'
94
- - 'lib/reactor/cm/object_base.rb'
95
- - 'lib/reactor/tools/workflow_generator.rb'
159
+ Max: 397
96
160
 
97
- # Offense count: 12
98
- # Configuration parameters: IgnoredMethods, Max.
161
+ # Offense count: 11
162
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
99
163
  Metrics/CyclomaticComplexity:
100
- Exclude:
101
- - 'lib/reactor/attributes/date_serializer.rb'
102
- - 'lib/reactor/attributes/link_list_extender.rb'
103
- - 'lib/reactor/attributes_handlers.rb'
104
- - 'lib/reactor/cm/obj.rb'
105
- - 'lib/reactor/cm/obj_class.rb'
106
- - 'lib/reactor/legacy.rb'
107
- - 'lib/reactor/link/temporary_link.rb'
108
- - 'lib/reactor/persistence.rb'
109
- - 'lib/reactor/tools/response_handler/xml_attribute.rb'
110
- - 'lib/reactor/tools/smart_xml_logger.rb'
111
- - 'lib/reactor/tools/where_query.rb'
112
- - 'lib/reactor/validations.rb'
164
+ Max: 17
113
165
 
114
166
  # Offense count: 55
115
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
167
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
116
168
  Metrics/MethodLength:
117
169
  Max: 79
118
170
 
119
171
  # Offense count: 2
120
- # Configuration parameters: CountComments, Max, CountAsOne.
172
+ # Configuration parameters: CountComments, CountAsOne.
121
173
  Metrics/ModuleLength:
122
- Exclude:
123
- - 'lib/reactor/attributes.rb'
124
- - 'lib/reactor/persistence.rb'
174
+ Max: 264
125
175
 
126
- # Offense count: 5
127
- # Configuration parameters: IgnoredMethods, Max.
176
+ # Offense count: 10
177
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
128
178
  Metrics/PerceivedComplexity:
129
- Exclude:
130
- - 'lib/reactor/attributes/date_serializer.rb'
131
- - 'lib/reactor/cm/obj.rb'
132
- - 'lib/reactor/legacy.rb'
133
- - 'lib/reactor/tools/smart_xml_logger.rb'
134
- - 'lib/reactor/tools/sower.rb'
179
+ Max: 17
135
180
 
136
181
  # Offense count: 7
137
182
  Naming/AccessorMethodName:
@@ -143,6 +188,15 @@ Naming/AccessorMethodName:
143
188
  - 'lib/reactor/cm/xml_markup.rb'
144
189
  - 'lib/reactor/persistence.rb'
145
190
 
191
+ # Offense count: 11
192
+ # This cop supports safe autocorrection (--autocorrect).
193
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
194
+ # SupportedStyles: anonymous, explicit
195
+ Naming/BlockForwarding:
196
+ Exclude:
197
+ - 'lib/reactor/migration.rb'
198
+ - 'lib/reactor/tools/sower.rb'
199
+
146
200
  # Offense count: 1
147
201
  Naming/ConstantName:
148
202
  Exclude:
@@ -167,7 +221,7 @@ Naming/MemoizedInstanceVariableName:
167
221
 
168
222
  # Offense count: 5
169
223
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
170
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
224
+ # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
171
225
  Naming/MethodParameterName:
172
226
  Exclude:
173
227
  - 'lib/reactor/cm/bridge.rb'
@@ -190,7 +244,7 @@ Naming/PredicateName:
190
244
  - 'lib/reactor/persistence.rb'
191
245
 
192
246
  # Offense count: 15
193
- # Configuration parameters: EnforcedStyle.
247
+ # Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
194
248
  # SupportedStyles: snake_case, camelCase
195
249
  Naming/VariableName:
196
250
  Exclude:
@@ -200,20 +254,49 @@ Naming/VariableName:
200
254
  - 'lib/reactor/tools/sower.rb'
201
255
 
202
256
  # Offense count: 1
203
- # Cop supports --auto-correct.
204
- Security/YAMLLoad:
257
+ # This cop supports safe autocorrection (--autocorrect).
258
+ Performance/BindCall:
205
259
  Exclude:
206
- - 'lib/reactor/tools/versioner.rb'
260
+ - 'lib/reactor/attributes/link_list_extender.rb'
261
+
262
+ # Offense count: 3
263
+ # This cop supports safe autocorrection (--autocorrect).
264
+ Performance/BlockGivenWithExplicitBlock:
265
+ Exclude:
266
+ - 'lib/reactor/migration.rb'
267
+ - 'lib/reactor/tools/sower.rb'
207
268
 
208
269
  # Offense count: 1
209
- # Configuration parameters: AllowedChars.
210
- Style/AsciiComments:
270
+ # This cop supports unsafe autocorrection (--autocorrect-all).
271
+ Performance/MapCompact:
211
272
  Exclude:
212
- - 'lib/reactor/cm/language.rb'
273
+ - 'lib/reactor/attributes/link_list_extender.rb'
274
+
275
+ # Offense count: 1
276
+ # This cop supports unsafe autocorrection (--autocorrect-all).
277
+ Performance/RedundantEqualityComparisonBlock:
278
+ Exclude:
279
+ - 'lib/reactor/attributes/link_list_extender.rb'
280
+
281
+ # Offense count: 6
282
+ # This cop supports safe autocorrection (--autocorrect).
283
+ Performance/StringIdentifierArgument:
284
+ Exclude:
285
+ - 'lib/reactor/attributes.rb'
286
+ - 'lib/reactor/cm/attribute.rb'
287
+ - 'lib/reactor/cm/obj.rb'
288
+ - 'lib/reactor/persistence.rb'
289
+
290
+ # Offense count: 2
291
+ # This cop supports unsafe autocorrection (--autocorrect-all).
292
+ Style/CaseLikeIf:
293
+ Exclude:
294
+ - 'lib/reactor/attributes/date_serializer.rb'
295
+ - 'lib/reactor/cm/xml_markup.rb'
213
296
 
214
297
  # Offense count: 3
215
- # Cop supports --auto-correct.
216
- # Configuration parameters: AutoCorrect, EnforcedStyle.
298
+ # This cop supports unsafe autocorrection (--autocorrect-all).
299
+ # Configuration parameters: EnforcedStyle.
217
300
  # SupportedStyles: nested, compact
218
301
  Style/ClassAndModuleChildren:
219
302
  Exclude:
@@ -228,30 +311,68 @@ Style/ClassVars:
228
311
  - 'lib/reactor/cache/user.rb'
229
312
 
230
313
  # Offense count: 2
314
+ # This cop supports unsafe autocorrection (--autocorrect-all).
231
315
  Style/CommentedKeyword:
232
316
  Exclude:
233
317
  - 'lib/reactor/cm/obj.rb'
234
318
  - 'lib/reactor/validations.rb'
235
319
 
320
+ # Offense count: 1
321
+ # This cop supports safe autocorrection (--autocorrect).
322
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
323
+ # SupportedStyles: assign_to_condition, assign_inside_condition
324
+ Style/ConditionalAssignment:
325
+ Exclude:
326
+ - 'lib/reactor/attributes_handlers.rb'
327
+
328
+ # Offense count: 2
329
+ Style/DocumentDynamicEvalDefinition:
330
+ Exclude:
331
+ - 'lib/reactor/attributes_handlers.rb'
332
+ - 'lib/reactor/cm/object_base.rb'
333
+
236
334
  # Offense count: 118
335
+ # Configuration parameters: AllowedConstants.
237
336
  Style/Documentation:
238
337
  Enabled: false
239
338
 
240
339
  # Offense count: 2
340
+ # This cop supports safe autocorrection (--autocorrect).
241
341
  Style/EvalWithLocation:
242
342
  Exclude:
243
343
  - 'lib/reactor/attributes_handlers.rb'
244
344
  - 'lib/reactor/cm/object_base.rb'
245
345
 
346
+ # Offense count: 7
347
+ # This cop supports safe autocorrection (--autocorrect).
348
+ Style/ExplicitBlockArgument:
349
+ Exclude:
350
+ - 'lib/reactor/cm/multi_xml_request.rb'
351
+ - 'lib/reactor/cm/xml_markup.rb'
352
+
353
+ # Offense count: 2
354
+ # This cop supports safe autocorrection (--autocorrect).
355
+ # Configuration parameters: AllowedVars.
356
+ Style/FetchEnvVar:
357
+ Exclude:
358
+ - 'lib/reactor/support/link_matcher.rb'
359
+ - 'lib/tasks/cm_migrate.rake'
360
+
361
+ # Offense count: 1
362
+ # This cop supports safe autocorrection (--autocorrect).
363
+ Style/FileWrite:
364
+ Exclude:
365
+ - 'Rakefile'
366
+
246
367
  # Offense count: 115
247
- # Cop supports --auto-correct.
368
+ # This cop supports unsafe autocorrection (--autocorrect-all).
248
369
  # Configuration parameters: EnforcedStyle.
249
370
  # SupportedStyles: always, always_true, never
250
371
  Style/FrozenStringLiteralComment:
251
372
  Enabled: false
252
373
 
253
374
  # Offense count: 4
254
- # Configuration parameters: MinBodyLength.
375
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
255
376
  Style/GuardClause:
256
377
  Exclude:
257
378
  - 'lib/reactor/attributes/link_list_extender.rb'
@@ -260,7 +381,8 @@ Style/GuardClause:
260
381
  - 'lib/reactor/tools/uploader.rb'
261
382
 
262
383
  # Offense count: 8
263
- # Cop supports --auto-correct.
384
+ # This cop supports unsafe autocorrection (--autocorrect-all).
385
+ # Configuration parameters: AllowedReceivers.
264
386
  Style/HashEachMethods:
265
387
  Exclude:
266
388
  - 'lib/reactor/permission.rb'
@@ -272,14 +394,32 @@ Style/HashEachMethods:
272
394
  - 'lib/reactor/plans/common_obj_class.rb'
273
395
  - 'lib/reactor/tools/workflow_generator.rb'
274
396
 
397
+ # Offense count: 16
398
+ # This cop supports safe autocorrection (--autocorrect).
399
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
400
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
401
+ # SupportedShorthandSyntax: always, never, either, consistent
402
+ Style/HashSyntax:
403
+ Exclude:
404
+ - 'lib/reactor/cm/attribute_group.rb'
405
+ - 'lib/reactor/cm/channel.rb'
406
+ - 'lib/reactor/cm/group.rb'
407
+ - 'lib/reactor/cm/obj.rb'
408
+ - 'lib/reactor/cm/user.rb'
409
+ - 'lib/reactor/cm/workflow.rb'
410
+ - 'lib/reactor/persistence.rb'
411
+ - 'lib/reactor/tools/response_handler/xml_attribute.rb'
412
+ - 'lib/reactor/tools/sower.rb'
413
+
275
414
  # Offense count: 4
415
+ # This cop supports unsafe autocorrection (--autocorrect-all).
276
416
  Style/IdenticalConditionalBranches:
277
417
  Exclude:
278
418
  - 'lib/reactor/tools/workflow_generator.rb'
279
419
  - 'lib/reactor/tools/xml_attributes.rb'
280
420
 
281
421
  # Offense count: 9
282
- # Cop supports --auto-correct.
422
+ # This cop supports safe autocorrection (--autocorrect).
283
423
  Style/IfUnlessModifier:
284
424
  Exclude:
285
425
  - 'lib/reactor/attributes.rb'
@@ -291,40 +431,76 @@ Style/IfUnlessModifier:
291
431
  - 'lib/reactor/validations.rb'
292
432
 
293
433
  # Offense count: 1
294
- # Cop supports --auto-correct.
434
+ # This cop supports unsafe autocorrection (--autocorrect-all).
295
435
  # Configuration parameters: InverseMethods, InverseBlocks.
296
436
  Style/InverseMethods:
297
437
  Exclude:
298
438
  - 'lib/reactor/plans/prepared.rb'
299
439
 
300
440
  # Offense count: 1
301
- Style/MethodMissingSuper:
441
+ Style/MissingRespondToMissing:
302
442
  Exclude:
303
443
  - 'lib/reactor/migration.rb'
304
444
 
305
445
  # Offense count: 1
306
- Style/MissingRespondToMissing:
446
+ # This cop supports safe autocorrection (--autocorrect).
447
+ Style/NegatedIfElseCondition:
307
448
  Exclude:
308
- - 'lib/reactor/migration.rb'
449
+ - 'lib/reactor/permission.rb'
309
450
 
310
451
  # Offense count: 1
311
- # Cop supports --auto-correct.
452
+ # This cop supports safe autocorrection (--autocorrect).
312
453
  # Configuration parameters: IncludeSemanticChanges.
313
454
  Style/NonNilCheck:
314
455
  Exclude:
315
456
  - 'lib/reactor/permission.rb'
316
457
 
458
+ # Offense count: 6
459
+ # Configuration parameters: AllowedMethods.
460
+ # AllowedMethods: respond_to_missing?
461
+ Style/OptionalBooleanParameter:
462
+ Exclude:
463
+ - 'lib/reactor/cm/obj.rb'
464
+ - 'lib/reactor/persistence.rb'
465
+ - 'lib/reactor/session/observers.rb'
466
+
467
+ # Offense count: 2
468
+ # This cop supports unsafe autocorrection (--autocorrect-all).
469
+ # Configuration parameters: AllowComments.
470
+ Style/RedundantInitialize:
471
+ Exclude:
472
+ - 'lib/reactor/cm/link.rb'
473
+ - 'lib/reactor/migration.rb'
474
+
475
+ # Offense count: 5
476
+ # This cop supports safe autocorrection (--autocorrect).
477
+ Style/RedundantSelfAssignmentBranch:
478
+ Exclude:
479
+ - 'lib/reactor/cm/group.rb'
480
+ - 'lib/reactor/cm/permissions.rb'
481
+ - 'lib/reactor/tools/response_handler/xml_attribute.rb'
482
+
317
483
  # Offense count: 1
318
- # Cop supports --auto-correct.
319
- # Configuration parameters: .
320
- # SupportedStyles: use_perl_names, use_english_names
484
+ # This cop supports unsafe autocorrection (--autocorrect-all).
485
+ # Configuration parameters: RequireEnglish.
486
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
321
487
  Style/SpecialGlobalVars:
322
488
  EnforcedStyle: use_perl_names
323
489
 
490
+ # Offense count: 5
491
+ # This cop supports unsafe autocorrection (--autocorrect-all).
492
+ # Configuration parameters: Mode.
493
+ Style/StringConcatenation:
494
+ Exclude:
495
+ - 'lib/reactor/attributes_handlers.rb'
496
+ - 'lib/reactor/tools/migrator.rb'
497
+ - 'lib/reactor/tools/sower.rb'
498
+ - 'lib/reactor/tools/versioner.rb'
499
+
324
500
  # Offense count: 3
325
- # Cop supports --auto-correct.
326
- # Configuration parameters: IgnoredMethods.
327
- # IgnoredMethods: respond_to, define_method
501
+ # This cop supports unsafe autocorrection (--autocorrect-all).
502
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
503
+ # AllowedMethods: respond_to, define_method
328
504
  Style/SymbolProc:
329
505
  Exclude:
330
506
  - 'lib/reactor/cm/obj.rb'
@@ -332,23 +508,15 @@ Style/SymbolProc:
332
508
  - 'lib/reactor/tools/smart_xml_logger.rb'
333
509
 
334
510
  # Offense count: 1
335
- # Cop supports --auto-correct.
511
+ # This cop supports safe autocorrection (--autocorrect).
336
512
  # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
337
513
  # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
338
514
  Style/TernaryParentheses:
339
515
  Exclude:
340
516
  - 'lib/reactor/cm/obj.rb'
341
517
 
342
- # Offense count: 2
343
- # Cop supports --auto-correct.
344
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
345
- # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
346
- Style/TrivialAccessors:
347
- Exclude:
348
- - 'lib/reactor/plans/common_attribute_group.rb'
349
-
350
518
  # Offense count: 1
351
- # Cop supports --auto-correct.
519
+ # This cop supports unsafe autocorrection (--autocorrect-all).
352
520
  # Configuration parameters: EnforcedStyle.
353
521
  # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
354
522
  Style/YodaCondition:
@@ -356,8 +524,8 @@ Style/YodaCondition:
356
524
  - 'lib/reactor/validations.rb'
357
525
 
358
526
  # Offense count: 29
359
- # Cop supports --auto-correct.
360
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
527
+ # This cop supports safe autocorrection (--autocorrect).
528
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
361
529
  # URISchemes: http, https
362
530
  Layout/LineLength:
363
531
  Max: 248
@@ -7,24 +7,23 @@ Gem::Specification.new do |s|
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Tomasz Przedmojski", "Anton Mezin", "Roman Lemekha"]
9
9
  s.email = ["tomasz.przedmojski@infopark.de", "anton.mezin@infopark.de", "roman.lemekha@infopark.de"]
10
- s.homepage = ""
10
+ s.homepage = "https://www.justrelate.com/"
11
11
  s.summary = "Write into CM in familiar, Rails-like way"
12
12
  s.description = "Use the ActiveRecord mimicking API to write into CM and enjoy all the benefits of callbacks, validations and permission checking"
13
- s.license = "LGPL-3"
13
+ s.license = "LGPL-3.0"
14
+ s.metadata["rubygems_mfa_required"] = "true"
14
15
 
15
16
  # s.rubyforge_project = "infopark_reactor"
16
17
 
17
18
  s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
20
19
  s.require_paths = ["lib"]
21
20
 
22
- s.add_dependency "infopark_fiona_connector", "~> 7.0.1.5.2.4.rc1"
21
+ s.add_dependency "infopark_fiona_connector", "~> 7.0.1.6.1.6.rc1"
23
22
  s.add_dependency "nokogiri", "~> 1"
24
- s.add_dependency "rails", "~> 5.0"
23
+ s.add_dependency "rails", [">= 5.0", "< 7.0"]
25
24
 
26
25
  s.add_development_dependency "rspec", "~> 3"
27
- s.add_development_dependency "rubocop", "~> 0.87.1"
28
- s.add_development_dependency "rubocop-performance", "~> 1"
26
+ s.add_development_dependency "rubocop"
27
+ s.add_development_dependency "rubocop-performance"
29
28
  s.add_development_dependency "yard", ">= 0"
30
29
  end
@@ -104,7 +104,7 @@ module Reactor
104
104
  # active model dirty tracking
105
105
  attribute_methods << <<-EOC
106
106
  def #{attribute}_changed?(**options)
107
- attribute_changed?(:#{attribute}, options)
107
+ will_save_change_to_attribute?(:#{attribute}, **options)
108
108
  end
109
109
  EOC
110
110
  end
@@ -1,3 +1,7 @@
1
+ require "rails"
2
+ require "active_record/railtie"
3
+ require "action_view/railtie"
4
+
1
5
  module Reactor
2
6
  class Engine < Rails::Engine
3
7
  rake_tasks do
@@ -12,11 +16,12 @@ module Reactor
12
16
  end
13
17
 
14
18
  initializer "reactor.rsession" do |_app|
15
- ActionController::Base.include Reactor::SessionHelper::RsessionHelper
16
- ActionController::Base.__send__(:helper_method, :rsession)
17
-
18
- ActionController::Base.include Reactor::SessionHelper::AuthHelper
19
- ActionController::Base.include Reactor::SessionHelper::AuthFilter
19
+ ActiveSupport.on_load(:action_controller_base) do
20
+ include Reactor::SessionHelper::RsessionHelper
21
+ __send__(:helper_method, :rsession)
22
+ include Reactor::SessionHelper::AuthHelper
23
+ include Reactor::SessionHelper::AuthFilter
24
+ end
20
25
  end
21
26
  end
22
27
  end
@@ -63,7 +63,7 @@ module Reactor
63
63
  # @raise [Reactor::NotPermitted] current user lacks required permissions
64
64
  def release!(comment = nil)
65
65
  run_callbacks(:release) do
66
- raise(Reactor::AlreadyReleased) unless really_edited?
66
+ raise(Reactor::AlreadyReleased) unless edited_or_committed?
67
67
 
68
68
  crul_obj.release!(comment)
69
69
  reload
@@ -184,8 +184,8 @@ module Reactor
184
184
  RailsConnector::AbstractObj.uncached do
185
185
  # super # Throws RecordNotFound when changing obj_class
186
186
  # AR reload
187
- clear_aggregation_cache
188
- clear_association_cache
187
+ send(:clear_aggregation_cache) if respond_to?(:clear_aggregation_cache, true)
188
+ send(:clear_association_cache)
189
189
  fresh_object = RailsConnector::AbstractObj.find(id, options)
190
190
  @attributes = fresh_object.instance_variable_get("@attributes")
191
191
  @attributes_cache = {}
@@ -237,11 +237,13 @@ module Reactor
237
237
  end
238
238
  end
239
239
 
240
- # Equivalent to Obj#edited?
241
240
  def really_edited?
242
241
  # check if really edited with curl request
243
242
  crul_obj.edited?
244
- # self.edited?
243
+ end
244
+
245
+ def edited_or_committed?
246
+ really_edited? || committed?
245
247
  end
246
248
 
247
249
  # Returns an array of errors
@@ -40,7 +40,8 @@ module Reactor
40
40
 
41
41
  cms_attributes = __cms_attributes(subclass).values
42
42
  # Add validation for linklist & multienum [minSize/maxSize]
43
- array_attributes = cms_attributes.select { |attr| %w(linklist multienum).include?(attr.attribute_type) }
43
+ array_attr = %w(linklist multienum)
44
+ array_attributes = cms_attributes.select { |attr| array_attr.include?(attr.attribute_type) }
44
45
  array_attributes.each do |attr|
45
46
  length_hash = {}
46
47
  if attr.min_size && "linklist" != attr.attribute_type
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "1.27.0.rc9".freeze
2
+ VERSION = "1.29.0".freeze
3
3
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0.rc9
4
+ version: 1.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski
8
8
  - Anton Mezin
9
9
  - Roman Lemekha
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-08-25 00:00:00.000000000 Z
13
+ date: 2022-08-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: infopark_fiona_connector
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 7.0.1.5.2.4.rc1
21
+ version: 7.0.1.6.1.6.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 7.0.1.5.2.4.rc1
28
+ version: 7.0.1.6.1.6.rc1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: nokogiri
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -44,16 +44,22 @@ dependencies:
44
44
  name: rails
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '5.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '7.0'
50
53
  type: :runtime
51
54
  prerelease: false
52
55
  version_requirements: !ruby/object:Gem::Requirement
53
56
  requirements:
54
- - - "~>"
57
+ - - ">="
55
58
  - !ruby/object:Gem::Version
56
59
  version: '5.0'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '7.0'
57
63
  - !ruby/object:Gem::Dependency
58
64
  name: rspec
59
65
  requirement: !ruby/object:Gem::Requirement
@@ -72,30 +78,30 @@ dependencies:
72
78
  name: rubocop
73
79
  requirement: !ruby/object:Gem::Requirement
74
80
  requirements:
75
- - - "~>"
81
+ - - ">="
76
82
  - !ruby/object:Gem::Version
77
- version: 0.87.1
83
+ version: '0'
78
84
  type: :development
79
85
  prerelease: false
80
86
  version_requirements: !ruby/object:Gem::Requirement
81
87
  requirements:
82
- - - "~>"
88
+ - - ">="
83
89
  - !ruby/object:Gem::Version
84
- version: 0.87.1
90
+ version: '0'
85
91
  - !ruby/object:Gem::Dependency
86
92
  name: rubocop-performance
87
93
  requirement: !ruby/object:Gem::Requirement
88
94
  requirements:
89
- - - "~>"
95
+ - - ">="
90
96
  - !ruby/object:Gem::Version
91
- version: '1'
97
+ version: '0'
92
98
  type: :development
93
99
  prerelease: false
94
100
  version_requirements: !ruby/object:Gem::Requirement
95
101
  requirements:
96
- - - "~>"
102
+ - - ">="
97
103
  - !ruby/object:Gem::Version
98
- version: '1'
104
+ version: '0'
99
105
  - !ruby/object:Gem::Dependency
100
106
  name: yard
101
107
  requirement: !ruby/object:Gem::Requirement
@@ -241,11 +247,12 @@ files:
241
247
  - lib/reactor/workflow/standard.rb
242
248
  - lib/tasks/cm_migrate.rake
243
249
  - lib/tasks/cm_seeds.rake
244
- homepage: ''
250
+ homepage: https://www.justrelate.com/
245
251
  licenses:
246
- - LGPL-3
247
- metadata: {}
248
- post_install_message:
252
+ - LGPL-3.0
253
+ metadata:
254
+ rubygems_mfa_required: 'true'
255
+ post_install_message:
249
256
  rdoc_options: []
250
257
  require_paths:
251
258
  - lib
@@ -256,13 +263,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
263
  version: '0'
257
264
  required_rubygems_version: !ruby/object:Gem::Requirement
258
265
  requirements:
259
- - - ">"
266
+ - - ">="
260
267
  - !ruby/object:Gem::Version
261
- version: 1.3.1
268
+ version: '0'
262
269
  requirements: []
263
- rubyforge_project:
264
- rubygems_version: 2.6.13
265
- signing_key:
270
+ rubygems_version: 3.3.7
271
+ signing_key:
266
272
  specification_version: 4
267
273
  summary: Write into CM in familiar, Rails-like way
268
274
  test_files: []