infopark_reactor 1.28.0 → 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
2
  SHA256:
3
- metadata.gz: d702e2d26e5067f61edcbfa124db36effe8ba4b8d5293d855f7e90ad41b151ce
4
- data.tar.gz: e8b270ff8d5b435271342bd7e4120582ff544ea759839450e966467b15954d82
3
+ metadata.gz: 404e65df07e84fa356158b43332bae9654c4f3192a97c4ff6152068739230195
4
+ data.tar.gz: 7656cb5ee54147adc2c1bee839a25a7e8265c2345d1b1bf7043f2ef838bfb233
5
5
  SHA512:
6
- metadata.gz: 58cfbe5e0dd7688605bc2e3353466218cae8f0dc4cba2a417f213960d411a4f92acbbbb19714dea6b86cca4a39566ce4aa6eb7c4fadfb49185c3714ce8b580f2
7
- data.tar.gz: ef5c34686380f1c6be310a67b6e0440af9632ea63c23aea8c311a6449ef3f6de0afcff88152925fa96593ae70e6fb3941ce2aad82d9ef215884db7621ef358e2
6
+ metadata.gz: eff473d8c3817e9e01c52518a7de3003a3b7cfd025d07a80438c62770afae7589427e9fca73337dc0e160b4ed45be7e19e6fd4f951baf799a8b7da2ffbabb2d6
7
+ data.tar.gz: ac0aebbc001755f1530e62cc2688e2cbbd4029dac3d8cbd7f581520bd402d2413e076002a20260c01bd786c1625d91d3b802aa1405a2b5911602d842aebf0e12
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config --auto-gen-only-exclude`
3
- # on 2022-05-05 11:51:54 UTC using RuboCop version 0.89.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
@@ -14,17 +14,34 @@ Gemspec/RequiredRubyVersion:
14
14
  - 'infopark_reactor.gemspec'
15
15
 
16
16
  # Offense count: 2
17
- # Cop supports --auto-correct.
18
- # 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.
19
27
  # SupportedStylesAlignWith: start_of_line, def
20
28
  Layout/DefEndAlignment:
21
29
  Exclude:
22
30
  - 'lib/reactor/cm/user.rb'
23
31
  - 'lib/reactor/plans/create_group.rb'
24
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
+
25
42
  # Offense count: 4
26
- # Cop supports --auto-correct.
27
- # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
43
+ # This cop supports safe autocorrection (--autocorrect).
44
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
28
45
  # SupportedStylesAlignWith: keyword, variable, start_of_line
29
46
  Layout/EndAlignment:
30
47
  Exclude:
@@ -33,6 +50,40 @@ Layout/EndAlignment:
33
50
  - 'lib/reactor/tools/smart_xml_logger.rb'
34
51
  - 'lib/reactor/tools/workflow_generator.rb'
35
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
+
36
87
  # Offense count: 9
37
88
  Lint/IneffectiveAccessModifier:
38
89
  Exclude:
@@ -55,6 +106,12 @@ Lint/MissingSuper:
55
106
  - 'lib/reactor/cm/object_base.rb'
56
107
  - 'lib/reactor/workflow/empty.rb'
57
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
+
58
115
  # Offense count: 2
59
116
  Lint/ShadowingOuterLocalVariable:
60
117
  Exclude:
@@ -62,7 +119,7 @@ Lint/ShadowingOuterLocalVariable:
62
119
  - 'lib/reactor/cm/obj_class.rb'
63
120
 
64
121
  # Offense count: 2
65
- # Configuration parameters: AllowComments.
122
+ # Configuration parameters: AllowComments, AllowNil.
66
123
  Lint/SuppressedException:
67
124
  Exclude:
68
125
  - 'lib/reactor/tools/sower.rb'
@@ -79,75 +136,47 @@ Lint/UselessAssignment:
79
136
  - 'lib/reactor/plans/update_attribute.rb'
80
137
  - 'lib/reactor/plans/update_obj_class.rb'
81
138
 
139
+ # Offense count: 1
140
+ # This cop supports unsafe autocorrection (--autocorrect-all).
141
+ Lint/UselessMethodDefinition:
142
+ Exclude:
143
+ - 'lib/reactor/attributes.rb'
144
+
82
145
  # Offense count: 43
83
- # Configuration parameters: IgnoredMethods.
146
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
84
147
  Metrics/AbcSize:
85
- Max: 60
148
+ Max: 58
86
149
 
87
150
  # Offense count: 5
88
- # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods.
89
- # ExcludedMethods: refine
151
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
152
+ # AllowedMethods: refine
90
153
  Metrics/BlockLength:
91
- Exclude:
92
- - '**/*.gemspec'
93
- - 'lib/reactor/attributes/link_list_extender.rb'
94
- - 'lib/reactor/attributes_handlers.rb'
95
- - 'lib/reactor/cm/obj_class.rb'
96
- - 'lib/tasks/cm_seeds.rake'
154
+ Max: 44
97
155
 
98
156
  # Offense count: 7
99
- # Configuration parameters: CountComments, Max, CountAsOne.
157
+ # Configuration parameters: CountComments, CountAsOne.
100
158
  Metrics/ClassLength:
101
- Exclude:
102
- - 'lib/reactor/attributes_handlers.rb'
103
- - 'lib/reactor/cm/group.rb'
104
- - 'lib/reactor/cm/link.rb'
105
- - 'lib/reactor/cm/obj.rb'
106
- - 'lib/reactor/cm/obj_class.rb'
107
- - 'lib/reactor/cm/object_base.rb'
108
- - 'lib/reactor/tools/workflow_generator.rb'
159
+ Max: 397
109
160
 
110
161
  # Offense count: 11
111
- # Configuration parameters: IgnoredMethods, Max.
162
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
112
163
  Metrics/CyclomaticComplexity:
113
- Exclude:
114
- - 'lib/reactor/attributes/link_list_extender.rb'
115
- - 'lib/reactor/attributes_handlers.rb'
116
- - 'lib/reactor/cm/obj.rb'
117
- - 'lib/reactor/cm/obj_class.rb'
118
- - 'lib/reactor/legacy.rb'
119
- - 'lib/reactor/link/temporary_link.rb'
120
- - 'lib/reactor/persistence.rb'
121
- - 'lib/reactor/tools/response_handler/xml_attribute.rb'
122
- - 'lib/reactor/tools/smart_xml_logger.rb'
123
- - 'lib/reactor/tools/where_query.rb'
124
- - 'lib/reactor/validations.rb'
164
+ Max: 17
125
165
 
126
166
  # Offense count: 55
127
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
167
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
128
168
  Metrics/MethodLength:
129
169
  Max: 79
130
170
 
131
171
  # Offense count: 2
132
- # Configuration parameters: CountComments, Max, CountAsOne.
172
+ # Configuration parameters: CountComments, CountAsOne.
133
173
  Metrics/ModuleLength:
134
- Exclude:
135
- - 'lib/reactor/attributes.rb'
136
- - 'lib/reactor/persistence.rb'
174
+ Max: 264
137
175
 
138
176
  # Offense count: 10
139
- # Configuration parameters: IgnoredMethods, Max.
177
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
140
178
  Metrics/PerceivedComplexity:
141
- Exclude:
142
- - 'lib/reactor/attributes/date_serializer.rb'
143
- - 'lib/reactor/attributes/link_list_extender.rb'
144
- - 'lib/reactor/attributes_handlers.rb'
145
- - 'lib/reactor/cm/obj.rb'
146
- - 'lib/reactor/cm/obj_class.rb'
147
- - 'lib/reactor/legacy.rb'
148
- - 'lib/reactor/persistence.rb'
149
- - 'lib/reactor/tools/smart_xml_logger.rb'
150
- - 'lib/reactor/validations.rb'
179
+ Max: 17
151
180
 
152
181
  # Offense count: 7
153
182
  Naming/AccessorMethodName:
@@ -159,6 +188,15 @@ Naming/AccessorMethodName:
159
188
  - 'lib/reactor/cm/xml_markup.rb'
160
189
  - 'lib/reactor/persistence.rb'
161
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
+
162
200
  # Offense count: 1
163
201
  Naming/ConstantName:
164
202
  Exclude:
@@ -206,7 +244,7 @@ Naming/PredicateName:
206
244
  - 'lib/reactor/persistence.rb'
207
245
 
208
246
  # Offense count: 15
209
- # Configuration parameters: EnforcedStyle.
247
+ # Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
210
248
  # SupportedStyles: snake_case, camelCase
211
249
  Naming/VariableName:
212
250
  Exclude:
@@ -216,37 +254,49 @@ Naming/VariableName:
216
254
  - 'lib/reactor/tools/sower.rb'
217
255
 
218
256
  # Offense count: 1
219
- # Cop supports --auto-correct.
220
- Security/YAMLLoad:
257
+ # This cop supports safe autocorrection (--autocorrect).
258
+ Performance/BindCall:
221
259
  Exclude:
222
- - 'lib/reactor/tools/versioner.rb'
260
+ - 'lib/reactor/attributes/link_list_extender.rb'
223
261
 
224
- # Offense count: 5
225
- # Cop supports --auto-correct.
226
- Style/ArrayCoercion:
262
+ # Offense count: 3
263
+ # This cop supports safe autocorrection (--autocorrect).
264
+ Performance/BlockGivenWithExplicitBlock:
227
265
  Exclude:
228
- - 'lib/reactor/cm/bridge.rb'
229
- - 'lib/reactor/cm/log_entry.rb'
230
- - 'lib/reactor/cm/obj_class.rb'
231
- - 'lib/reactor/cm/xml_single_request_error.rb'
232
- - 'lib/reactor/tools/where_query.rb'
266
+ - 'lib/reactor/migration.rb'
267
+ - 'lib/reactor/tools/sower.rb'
233
268
 
234
269
  # Offense count: 1
235
- # Configuration parameters: AllowedChars.
236
- Style/AsciiComments:
270
+ # This cop supports unsafe autocorrection (--autocorrect-all).
271
+ Performance/MapCompact:
237
272
  Exclude:
238
- - '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'
239
289
 
240
290
  # Offense count: 2
241
- # Cop supports --auto-correct.
291
+ # This cop supports unsafe autocorrection (--autocorrect-all).
242
292
  Style/CaseLikeIf:
243
293
  Exclude:
244
294
  - 'lib/reactor/attributes/date_serializer.rb'
245
295
  - 'lib/reactor/cm/xml_markup.rb'
246
296
 
247
297
  # Offense count: 3
248
- # Cop supports --auto-correct.
249
- # Configuration parameters: AutoCorrect, EnforcedStyle.
298
+ # This cop supports unsafe autocorrection (--autocorrect-all).
299
+ # Configuration parameters: EnforcedStyle.
250
300
  # SupportedStyles: nested, compact
251
301
  Style/ClassAndModuleChildren:
252
302
  Exclude:
@@ -261,37 +311,68 @@ Style/ClassVars:
261
311
  - 'lib/reactor/cache/user.rb'
262
312
 
263
313
  # Offense count: 2
314
+ # This cop supports unsafe autocorrection (--autocorrect-all).
264
315
  Style/CommentedKeyword:
265
316
  Exclude:
266
317
  - 'lib/reactor/cm/obj.rb'
267
318
  - 'lib/reactor/validations.rb'
268
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
+
269
334
  # Offense count: 118
335
+ # Configuration parameters: AllowedConstants.
270
336
  Style/Documentation:
271
337
  Enabled: false
272
338
 
273
339
  # Offense count: 2
340
+ # This cop supports safe autocorrection (--autocorrect).
274
341
  Style/EvalWithLocation:
275
342
  Exclude:
276
343
  - 'lib/reactor/attributes_handlers.rb'
277
344
  - 'lib/reactor/cm/object_base.rb'
278
345
 
279
346
  # Offense count: 7
280
- # Cop supports --auto-correct.
347
+ # This cop supports safe autocorrection (--autocorrect).
281
348
  Style/ExplicitBlockArgument:
282
349
  Exclude:
283
350
  - 'lib/reactor/cm/multi_xml_request.rb'
284
351
  - 'lib/reactor/cm/xml_markup.rb'
285
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
+
286
367
  # Offense count: 115
287
- # Cop supports --auto-correct.
368
+ # This cop supports unsafe autocorrection (--autocorrect-all).
288
369
  # Configuration parameters: EnforcedStyle.
289
370
  # SupportedStyles: always, always_true, never
290
371
  Style/FrozenStringLiteralComment:
291
372
  Enabled: false
292
373
 
293
374
  # Offense count: 4
294
- # Configuration parameters: MinBodyLength.
375
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
295
376
  Style/GuardClause:
296
377
  Exclude:
297
378
  - 'lib/reactor/attributes/link_list_extender.rb'
@@ -300,7 +381,8 @@ Style/GuardClause:
300
381
  - 'lib/reactor/tools/uploader.rb'
301
382
 
302
383
  # Offense count: 8
303
- # Cop supports --auto-correct.
384
+ # This cop supports unsafe autocorrection (--autocorrect-all).
385
+ # Configuration parameters: AllowedReceivers.
304
386
  Style/HashEachMethods:
305
387
  Exclude:
306
388
  - 'lib/reactor/permission.rb'
@@ -312,14 +394,32 @@ Style/HashEachMethods:
312
394
  - 'lib/reactor/plans/common_obj_class.rb'
313
395
  - 'lib/reactor/tools/workflow_generator.rb'
314
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
+
315
414
  # Offense count: 4
415
+ # This cop supports unsafe autocorrection (--autocorrect-all).
316
416
  Style/IdenticalConditionalBranches:
317
417
  Exclude:
318
418
  - 'lib/reactor/tools/workflow_generator.rb'
319
419
  - 'lib/reactor/tools/xml_attributes.rb'
320
420
 
321
421
  # Offense count: 9
322
- # Cop supports --auto-correct.
422
+ # This cop supports safe autocorrection (--autocorrect).
323
423
  Style/IfUnlessModifier:
324
424
  Exclude:
325
425
  - 'lib/reactor/attributes.rb'
@@ -331,7 +431,7 @@ Style/IfUnlessModifier:
331
431
  - 'lib/reactor/validations.rb'
332
432
 
333
433
  # Offense count: 1
334
- # Cop supports --auto-correct.
434
+ # This cop supports unsafe autocorrection (--autocorrect-all).
335
435
  # Configuration parameters: InverseMethods, InverseBlocks.
336
436
  Style/InverseMethods:
337
437
  Exclude:
@@ -343,28 +443,53 @@ Style/MissingRespondToMissing:
343
443
  - 'lib/reactor/migration.rb'
344
444
 
345
445
  # Offense count: 1
346
- # Cop supports --auto-correct.
446
+ # This cop supports safe autocorrection (--autocorrect).
447
+ Style/NegatedIfElseCondition:
448
+ Exclude:
449
+ - 'lib/reactor/permission.rb'
450
+
451
+ # Offense count: 1
452
+ # This cop supports safe autocorrection (--autocorrect).
347
453
  # Configuration parameters: IncludeSemanticChanges.
348
454
  Style/NonNilCheck:
349
455
  Exclude:
350
456
  - 'lib/reactor/permission.rb'
351
457
 
352
458
  # Offense count: 6
459
+ # Configuration parameters: AllowedMethods.
460
+ # AllowedMethods: respond_to_missing?
353
461
  Style/OptionalBooleanParameter:
354
462
  Exclude:
355
463
  - 'lib/reactor/cm/obj.rb'
356
464
  - 'lib/reactor/persistence.rb'
357
465
  - 'lib/reactor/session/observers.rb'
358
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
+
359
483
  # Offense count: 1
360
- # Cop supports --auto-correct.
361
- # Configuration parameters: .
362
- # 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
363
487
  Style/SpecialGlobalVars:
364
488
  EnforcedStyle: use_perl_names
365
489
 
366
490
  # Offense count: 5
367
- # Cop supports --auto-correct.
491
+ # This cop supports unsafe autocorrection (--autocorrect-all).
492
+ # Configuration parameters: Mode.
368
493
  Style/StringConcatenation:
369
494
  Exclude:
370
495
  - 'lib/reactor/attributes_handlers.rb'
@@ -373,9 +498,9 @@ Style/StringConcatenation:
373
498
  - 'lib/reactor/tools/versioner.rb'
374
499
 
375
500
  # Offense count: 3
376
- # Cop supports --auto-correct.
377
- # Configuration parameters: IgnoredMethods.
378
- # 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
379
504
  Style/SymbolProc:
380
505
  Exclude:
381
506
  - 'lib/reactor/cm/obj.rb'
@@ -383,23 +508,15 @@ Style/SymbolProc:
383
508
  - 'lib/reactor/tools/smart_xml_logger.rb'
384
509
 
385
510
  # Offense count: 1
386
- # Cop supports --auto-correct.
511
+ # This cop supports safe autocorrection (--autocorrect).
387
512
  # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
388
513
  # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
389
514
  Style/TernaryParentheses:
390
515
  Exclude:
391
516
  - 'lib/reactor/cm/obj.rb'
392
517
 
393
- # Offense count: 2
394
- # Cop supports --auto-correct.
395
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
396
- # 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
397
- Style/TrivialAccessors:
398
- Exclude:
399
- - 'lib/reactor/plans/common_attribute_group.rb'
400
-
401
518
  # Offense count: 1
402
- # Cop supports --auto-correct.
519
+ # This cop supports unsafe autocorrection (--autocorrect-all).
403
520
  # Configuration parameters: EnforcedStyle.
404
521
  # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
405
522
  Style/YodaCondition:
@@ -407,8 +524,8 @@ Style/YodaCondition:
407
524
  - 'lib/reactor/validations.rb'
408
525
 
409
526
  # Offense count: 29
410
- # Cop supports --auto-correct.
411
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
527
+ # This cop supports safe autocorrection (--autocorrect).
528
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
412
529
  # URISchemes: http, https
413
530
  Layout/LineLength:
414
531
  Max: 248
@@ -11,20 +11,19 @@ Gem::Specification.new do |s|
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
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.7.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.89.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
@@ -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 = {}
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "1.28.0".freeze
2
+ VERSION = "1.29.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-05-05 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.7.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.7.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.89.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.89.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
@@ -244,7 +250,8 @@ files:
244
250
  homepage: https://www.justrelate.com/
245
251
  licenses:
246
252
  - LGPL-3.0
247
- metadata: {}
253
+ metadata:
254
+ rubygems_mfa_required: 'true'
248
255
  post_install_message:
249
256
  rdoc_options: []
250
257
  require_paths:
@@ -260,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
267
  - !ruby/object:Gem::Version
261
268
  version: '0'
262
269
  requirements: []
263
- rubygems_version: 3.1.6
270
+ rubygems_version: 3.3.7
264
271
  signing_key:
265
272
  specification_version: 4
266
273
  summary: Write into CM in familiar, Rails-like way