infopark_reactor 1.28.0 → 1.29.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +230 -102
- data/infopark_reactor.gemspec +5 -6
- data/lib/reactor/attributes_handlers.rb +1 -1
- data/lib/reactor/engine.rb +10 -5
- data/lib/reactor/persistence.rb +2 -2
- data/lib/reactor/tools/sower.rb +2 -2
- data/lib/reactor/version.rb +1 -1
- metadata +23 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ceaad1723cdc82bd07223ffe86ad78dafdec8b74719fdeb31c96eb6e936759
|
4
|
+
data.tar.gz: 68e23ee67c7a151718bf85ad8ce803d7b7db9985ab8149095c9d2991ddbd9964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83dbb54e7721ad6eacb138b3dcce500f440899beba1e6a0f42c5ea0eb494bbe858c3eaf93aa25f0eaf8abb57d638fbc564ff0034466c042e5cf0c25770ef7430
|
7
|
+
data.tar.gz: f00524caa088cc257756daaf29b58921cf4867d108d9eff84ee8172f2b33d01e6fc59b91041ba2e33f801a634647506a3d81be843b7574c9f3352d5491f5d86d
|
data/.rubocop_todo.yml
CHANGED
@@ -1,30 +1,55 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config
|
3
|
-
# on
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2023-05-04 13:02:58 UTC using RuboCop version 1.45.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: 2
|
10
|
+
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
|
11
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
12
|
+
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
|
13
|
+
Gemspec/DevelopmentDependencies:
|
14
|
+
Exclude:
|
15
|
+
- 'infopark_reactor.gemspec'
|
16
|
+
|
9
17
|
# Offense count: 1
|
10
|
-
# Configuration parameters: Include.
|
18
|
+
# Configuration parameters: Severity, Include.
|
11
19
|
# Include: **/*.gemspec
|
12
20
|
Gemspec/RequiredRubyVersion:
|
13
21
|
Exclude:
|
14
22
|
- 'infopark_reactor.gemspec'
|
15
23
|
|
16
24
|
# Offense count: 2
|
17
|
-
#
|
18
|
-
# Configuration parameters: EnforcedStyleAlignWith,
|
25
|
+
# This cop supports safe autocorrection (--autocorrect).
|
26
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
27
|
+
# SupportedStylesAlignWith: start_of_line, begin
|
28
|
+
Layout/BeginEndAlignment:
|
29
|
+
Exclude:
|
30
|
+
- 'app/models/rails_connector/abstract_obj.rb'
|
31
|
+
|
32
|
+
# Offense count: 2
|
33
|
+
# This cop supports safe autocorrection (--autocorrect).
|
34
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
19
35
|
# SupportedStylesAlignWith: start_of_line, def
|
20
36
|
Layout/DefEndAlignment:
|
21
37
|
Exclude:
|
22
38
|
- 'lib/reactor/cm/user.rb'
|
23
39
|
- 'lib/reactor/plans/create_group.rb'
|
24
40
|
|
41
|
+
# Offense count: 3
|
42
|
+
# This cop supports safe autocorrection (--autocorrect).
|
43
|
+
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
44
|
+
Layout/EmptyLineBetweenDefs:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/reactor/attributes.rb'
|
47
|
+
- 'lib/reactor/legacy.rb'
|
48
|
+
- 'lib/reactor/persistence.rb'
|
49
|
+
|
25
50
|
# Offense count: 4
|
26
|
-
#
|
27
|
-
# Configuration parameters: EnforcedStyleAlignWith,
|
51
|
+
# This cop supports safe autocorrection (--autocorrect).
|
52
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
28
53
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
29
54
|
Layout/EndAlignment:
|
30
55
|
Exclude:
|
@@ -33,6 +58,40 @@ Layout/EndAlignment:
|
|
33
58
|
- 'lib/reactor/tools/smart_xml_logger.rb'
|
34
59
|
- 'lib/reactor/tools/workflow_generator.rb'
|
35
60
|
|
61
|
+
# Offense count: 2
|
62
|
+
# This cop supports safe autocorrection (--autocorrect).
|
63
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
64
|
+
Layout/LeadingCommentSpace:
|
65
|
+
Exclude:
|
66
|
+
- 'lib/reactor/permission.rb'
|
67
|
+
- 'lib/reactor/persistence.rb'
|
68
|
+
|
69
|
+
# Offense count: 2
|
70
|
+
# This cop supports safe autocorrection (--autocorrect).
|
71
|
+
Layout/RescueEnsureAlignment:
|
72
|
+
Exclude:
|
73
|
+
- 'app/models/rails_connector/abstract_obj.rb'
|
74
|
+
|
75
|
+
# Offense count: 2
|
76
|
+
# This cop supports safe autocorrection (--autocorrect).
|
77
|
+
Lint/AmbiguousOperatorPrecedence:
|
78
|
+
Exclude:
|
79
|
+
- 'lib/reactor/tools/migrator.rb'
|
80
|
+
- 'lib/reactor/tools/smart_xml_logger.rb'
|
81
|
+
|
82
|
+
# Offense count: 1
|
83
|
+
# This cop supports safe autocorrection (--autocorrect).
|
84
|
+
Lint/ElseLayout:
|
85
|
+
Exclude:
|
86
|
+
- 'lib/reactor/cm/xml_markup.rb'
|
87
|
+
|
88
|
+
# Offense count: 2
|
89
|
+
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
90
|
+
Lint/EmptyBlock:
|
91
|
+
Exclude:
|
92
|
+
- 'config/routes.rb'
|
93
|
+
- 'lib/reactor/persistence.rb'
|
94
|
+
|
36
95
|
# Offense count: 9
|
37
96
|
Lint/IneffectiveAccessModifier:
|
38
97
|
Exclude:
|
@@ -55,6 +114,12 @@ Lint/MissingSuper:
|
|
55
114
|
- 'lib/reactor/cm/object_base.rb'
|
56
115
|
- 'lib/reactor/workflow/empty.rb'
|
57
116
|
|
117
|
+
# Offense count: 1
|
118
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
119
|
+
Lint/RedundantDirGlobSort:
|
120
|
+
Exclude:
|
121
|
+
- 'lib/reactor/tools/migrator.rb'
|
122
|
+
|
58
123
|
# Offense count: 2
|
59
124
|
Lint/ShadowingOuterLocalVariable:
|
60
125
|
Exclude:
|
@@ -62,7 +127,7 @@ Lint/ShadowingOuterLocalVariable:
|
|
62
127
|
- 'lib/reactor/cm/obj_class.rb'
|
63
128
|
|
64
129
|
# Offense count: 2
|
65
|
-
# Configuration parameters: AllowComments.
|
130
|
+
# Configuration parameters: AllowComments, AllowNil.
|
66
131
|
Lint/SuppressedException:
|
67
132
|
Exclude:
|
68
133
|
- 'lib/reactor/tools/sower.rb'
|
@@ -80,74 +145,40 @@ Lint/UselessAssignment:
|
|
80
145
|
- 'lib/reactor/plans/update_obj_class.rb'
|
81
146
|
|
82
147
|
# Offense count: 43
|
83
|
-
# Configuration parameters:
|
148
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
84
149
|
Metrics/AbcSize:
|
85
|
-
Max:
|
150
|
+
Max: 58
|
86
151
|
|
87
152
|
# Offense count: 5
|
88
|
-
# Configuration parameters: CountComments,
|
89
|
-
#
|
153
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
154
|
+
# AllowedMethods: refine
|
90
155
|
Metrics/BlockLength:
|
91
|
-
|
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'
|
156
|
+
Max: 44
|
97
157
|
|
98
158
|
# Offense count: 7
|
99
|
-
# Configuration parameters: CountComments,
|
159
|
+
# Configuration parameters: CountComments, CountAsOne.
|
100
160
|
Metrics/ClassLength:
|
101
|
-
|
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'
|
161
|
+
Max: 397
|
109
162
|
|
110
163
|
# Offense count: 11
|
111
|
-
# Configuration parameters:
|
164
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
112
165
|
Metrics/CyclomaticComplexity:
|
113
|
-
|
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'
|
166
|
+
Max: 17
|
125
167
|
|
126
168
|
# Offense count: 55
|
127
|
-
# Configuration parameters: CountComments, CountAsOne,
|
169
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
128
170
|
Metrics/MethodLength:
|
129
171
|
Max: 79
|
130
172
|
|
131
173
|
# Offense count: 2
|
132
|
-
# Configuration parameters: CountComments,
|
174
|
+
# Configuration parameters: CountComments, CountAsOne.
|
133
175
|
Metrics/ModuleLength:
|
134
|
-
|
135
|
-
- 'lib/reactor/attributes.rb'
|
136
|
-
- 'lib/reactor/persistence.rb'
|
176
|
+
Max: 264
|
137
177
|
|
138
178
|
# Offense count: 10
|
139
|
-
# Configuration parameters:
|
179
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
140
180
|
Metrics/PerceivedComplexity:
|
141
|
-
|
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'
|
181
|
+
Max: 17
|
151
182
|
|
152
183
|
# Offense count: 7
|
153
184
|
Naming/AccessorMethodName:
|
@@ -159,6 +190,15 @@ Naming/AccessorMethodName:
|
|
159
190
|
- 'lib/reactor/cm/xml_markup.rb'
|
160
191
|
- 'lib/reactor/persistence.rb'
|
161
192
|
|
193
|
+
# Offense count: 11
|
194
|
+
# This cop supports safe autocorrection (--autocorrect).
|
195
|
+
# Configuration parameters: EnforcedStyle, BlockForwardingName.
|
196
|
+
# SupportedStyles: anonymous, explicit
|
197
|
+
Naming/BlockForwarding:
|
198
|
+
Exclude:
|
199
|
+
- 'lib/reactor/migration.rb'
|
200
|
+
- 'lib/reactor/tools/sower.rb'
|
201
|
+
|
162
202
|
# Offense count: 1
|
163
203
|
Naming/ConstantName:
|
164
204
|
Exclude:
|
@@ -166,7 +206,7 @@ Naming/ConstantName:
|
|
166
206
|
|
167
207
|
# Offense count: 9
|
168
208
|
# Configuration parameters: ForbiddenDelimiters.
|
169
|
-
# ForbiddenDelimiters: (
|
209
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
170
210
|
Naming/HeredocDelimiterNaming:
|
171
211
|
Exclude:
|
172
212
|
- 'lib/reactor/attributes_handlers.rb'
|
@@ -183,7 +223,7 @@ Naming/MemoizedInstanceVariableName:
|
|
183
223
|
|
184
224
|
# Offense count: 5
|
185
225
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
186
|
-
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
226
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
187
227
|
Naming/MethodParameterName:
|
188
228
|
Exclude:
|
189
229
|
- 'lib/reactor/cm/bridge.rb'
|
@@ -206,7 +246,7 @@ Naming/PredicateName:
|
|
206
246
|
- 'lib/reactor/persistence.rb'
|
207
247
|
|
208
248
|
# Offense count: 15
|
209
|
-
# Configuration parameters: EnforcedStyle.
|
249
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
210
250
|
# SupportedStyles: snake_case, camelCase
|
211
251
|
Naming/VariableName:
|
212
252
|
Exclude:
|
@@ -216,37 +256,49 @@ Naming/VariableName:
|
|
216
256
|
- 'lib/reactor/tools/sower.rb'
|
217
257
|
|
218
258
|
# Offense count: 1
|
219
|
-
#
|
220
|
-
|
259
|
+
# This cop supports safe autocorrection (--autocorrect).
|
260
|
+
Performance/BindCall:
|
221
261
|
Exclude:
|
222
|
-
- 'lib/reactor/
|
262
|
+
- 'lib/reactor/attributes/link_list_extender.rb'
|
223
263
|
|
224
|
-
# Offense count:
|
225
|
-
#
|
226
|
-
|
264
|
+
# Offense count: 3
|
265
|
+
# This cop supports safe autocorrection (--autocorrect).
|
266
|
+
Performance/BlockGivenWithExplicitBlock:
|
227
267
|
Exclude:
|
228
|
-
- 'lib/reactor/
|
229
|
-
- 'lib/reactor/
|
230
|
-
|
231
|
-
|
232
|
-
|
268
|
+
- 'lib/reactor/migration.rb'
|
269
|
+
- 'lib/reactor/tools/sower.rb'
|
270
|
+
|
271
|
+
# Offense count: 1
|
272
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
273
|
+
Performance/MapCompact:
|
274
|
+
Exclude:
|
275
|
+
- 'lib/reactor/attributes/link_list_extender.rb'
|
233
276
|
|
234
277
|
# Offense count: 1
|
235
|
-
#
|
236
|
-
|
278
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
279
|
+
Performance/RedundantEqualityComparisonBlock:
|
280
|
+
Exclude:
|
281
|
+
- 'lib/reactor/attributes/link_list_extender.rb'
|
282
|
+
|
283
|
+
# Offense count: 6
|
284
|
+
# This cop supports safe autocorrection (--autocorrect).
|
285
|
+
Performance/StringIdentifierArgument:
|
237
286
|
Exclude:
|
238
|
-
- 'lib/reactor/
|
287
|
+
- 'lib/reactor/attributes.rb'
|
288
|
+
- 'lib/reactor/cm/attribute.rb'
|
289
|
+
- 'lib/reactor/cm/obj.rb'
|
290
|
+
- 'lib/reactor/persistence.rb'
|
239
291
|
|
240
292
|
# Offense count: 2
|
241
|
-
#
|
293
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
242
294
|
Style/CaseLikeIf:
|
243
295
|
Exclude:
|
244
296
|
- 'lib/reactor/attributes/date_serializer.rb'
|
245
297
|
- 'lib/reactor/cm/xml_markup.rb'
|
246
298
|
|
247
299
|
# Offense count: 3
|
248
|
-
#
|
249
|
-
# Configuration parameters:
|
300
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
301
|
+
# Configuration parameters: EnforcedStyle.
|
250
302
|
# SupportedStyles: nested, compact
|
251
303
|
Style/ClassAndModuleChildren:
|
252
304
|
Exclude:
|
@@ -261,37 +313,69 @@ Style/ClassVars:
|
|
261
313
|
- 'lib/reactor/cache/user.rb'
|
262
314
|
|
263
315
|
# Offense count: 2
|
316
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
264
317
|
Style/CommentedKeyword:
|
265
318
|
Exclude:
|
266
319
|
- 'lib/reactor/cm/obj.rb'
|
267
320
|
- 'lib/reactor/validations.rb'
|
268
321
|
|
322
|
+
# Offense count: 1
|
323
|
+
# This cop supports safe autocorrection (--autocorrect).
|
324
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
325
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
326
|
+
Style/ConditionalAssignment:
|
327
|
+
Exclude:
|
328
|
+
- 'lib/reactor/attributes_handlers.rb'
|
329
|
+
|
330
|
+
# Offense count: 2
|
331
|
+
Style/DocumentDynamicEvalDefinition:
|
332
|
+
Exclude:
|
333
|
+
- 'lib/reactor/attributes_handlers.rb'
|
334
|
+
- 'lib/reactor/cm/object_base.rb'
|
335
|
+
|
269
336
|
# Offense count: 118
|
337
|
+
# Configuration parameters: AllowedConstants.
|
270
338
|
Style/Documentation:
|
271
339
|
Enabled: false
|
272
340
|
|
273
341
|
# Offense count: 2
|
342
|
+
# This cop supports safe autocorrection (--autocorrect).
|
274
343
|
Style/EvalWithLocation:
|
275
344
|
Exclude:
|
276
345
|
- 'lib/reactor/attributes_handlers.rb'
|
277
346
|
- 'lib/reactor/cm/object_base.rb'
|
278
347
|
|
279
348
|
# Offense count: 7
|
280
|
-
#
|
349
|
+
# This cop supports safe autocorrection (--autocorrect).
|
281
350
|
Style/ExplicitBlockArgument:
|
282
351
|
Exclude:
|
283
352
|
- 'lib/reactor/cm/multi_xml_request.rb'
|
284
353
|
- 'lib/reactor/cm/xml_markup.rb'
|
285
354
|
|
355
|
+
# Offense count: 2
|
356
|
+
# This cop supports safe autocorrection (--autocorrect).
|
357
|
+
# Configuration parameters: AllowedVars.
|
358
|
+
Style/FetchEnvVar:
|
359
|
+
Exclude:
|
360
|
+
- 'lib/reactor/support/link_matcher.rb'
|
361
|
+
- 'lib/tasks/cm_migrate.rake'
|
362
|
+
|
363
|
+
# Offense count: 1
|
364
|
+
# This cop supports safe autocorrection (--autocorrect).
|
365
|
+
Style/FileWrite:
|
366
|
+
Exclude:
|
367
|
+
- 'Rakefile'
|
368
|
+
|
286
369
|
# Offense count: 115
|
287
|
-
#
|
370
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
288
371
|
# Configuration parameters: EnforcedStyle.
|
289
372
|
# SupportedStyles: always, always_true, never
|
290
373
|
Style/FrozenStringLiteralComment:
|
291
374
|
Enabled: false
|
292
375
|
|
293
376
|
# Offense count: 4
|
294
|
-
#
|
377
|
+
# This cop supports safe autocorrection (--autocorrect).
|
378
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
295
379
|
Style/GuardClause:
|
296
380
|
Exclude:
|
297
381
|
- 'lib/reactor/attributes/link_list_extender.rb'
|
@@ -300,7 +384,9 @@ Style/GuardClause:
|
|
300
384
|
- 'lib/reactor/tools/uploader.rb'
|
301
385
|
|
302
386
|
# Offense count: 8
|
303
|
-
#
|
387
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
388
|
+
# Configuration parameters: AllowedReceivers.
|
389
|
+
# AllowedReceivers: Thread.current
|
304
390
|
Style/HashEachMethods:
|
305
391
|
Exclude:
|
306
392
|
- 'lib/reactor/permission.rb'
|
@@ -312,14 +398,32 @@ Style/HashEachMethods:
|
|
312
398
|
- 'lib/reactor/plans/common_obj_class.rb'
|
313
399
|
- 'lib/reactor/tools/workflow_generator.rb'
|
314
400
|
|
401
|
+
# Offense count: 16
|
402
|
+
# This cop supports safe autocorrection (--autocorrect).
|
403
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
404
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
405
|
+
# SupportedShorthandSyntax: always, never, either, consistent
|
406
|
+
Style/HashSyntax:
|
407
|
+
Exclude:
|
408
|
+
- 'lib/reactor/cm/attribute_group.rb'
|
409
|
+
- 'lib/reactor/cm/channel.rb'
|
410
|
+
- 'lib/reactor/cm/group.rb'
|
411
|
+
- 'lib/reactor/cm/obj.rb'
|
412
|
+
- 'lib/reactor/cm/user.rb'
|
413
|
+
- 'lib/reactor/cm/workflow.rb'
|
414
|
+
- 'lib/reactor/persistence.rb'
|
415
|
+
- 'lib/reactor/tools/response_handler/xml_attribute.rb'
|
416
|
+
- 'lib/reactor/tools/sower.rb'
|
417
|
+
|
315
418
|
# Offense count: 4
|
419
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
316
420
|
Style/IdenticalConditionalBranches:
|
317
421
|
Exclude:
|
318
422
|
- 'lib/reactor/tools/workflow_generator.rb'
|
319
423
|
- 'lib/reactor/tools/xml_attributes.rb'
|
320
424
|
|
321
425
|
# Offense count: 9
|
322
|
-
#
|
426
|
+
# This cop supports safe autocorrection (--autocorrect).
|
323
427
|
Style/IfUnlessModifier:
|
324
428
|
Exclude:
|
325
429
|
- 'lib/reactor/attributes.rb'
|
@@ -331,40 +435,71 @@ Style/IfUnlessModifier:
|
|
331
435
|
- 'lib/reactor/validations.rb'
|
332
436
|
|
333
437
|
# Offense count: 1
|
334
|
-
#
|
438
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
335
439
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
336
440
|
Style/InverseMethods:
|
337
441
|
Exclude:
|
338
442
|
- 'lib/reactor/plans/prepared.rb'
|
339
443
|
|
444
|
+
# Offense count: 1
|
445
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
446
|
+
Style/MinMaxComparison:
|
447
|
+
Exclude:
|
448
|
+
- 'app/models/rails_connector/abstract_obj.rb'
|
449
|
+
|
340
450
|
# Offense count: 1
|
341
451
|
Style/MissingRespondToMissing:
|
342
452
|
Exclude:
|
343
453
|
- 'lib/reactor/migration.rb'
|
344
454
|
|
345
455
|
# Offense count: 1
|
346
|
-
#
|
456
|
+
# This cop supports safe autocorrection (--autocorrect).
|
457
|
+
Style/NegatedIfElseCondition:
|
458
|
+
Exclude:
|
459
|
+
- 'lib/reactor/permission.rb'
|
460
|
+
|
461
|
+
# Offense count: 1
|
462
|
+
# This cop supports safe autocorrection (--autocorrect).
|
347
463
|
# Configuration parameters: IncludeSemanticChanges.
|
348
464
|
Style/NonNilCheck:
|
349
465
|
Exclude:
|
350
466
|
- 'lib/reactor/permission.rb'
|
351
467
|
|
352
468
|
# Offense count: 6
|
469
|
+
# Configuration parameters: AllowedMethods.
|
470
|
+
# AllowedMethods: respond_to_missing?
|
353
471
|
Style/OptionalBooleanParameter:
|
354
472
|
Exclude:
|
355
473
|
- 'lib/reactor/cm/obj.rb'
|
356
474
|
- 'lib/reactor/persistence.rb'
|
357
475
|
- 'lib/reactor/session/observers.rb'
|
358
476
|
|
477
|
+
# Offense count: 2
|
478
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
479
|
+
# Configuration parameters: AllowComments.
|
480
|
+
Style/RedundantInitialize:
|
481
|
+
Exclude:
|
482
|
+
- 'lib/reactor/cm/link.rb'
|
483
|
+
- 'lib/reactor/migration.rb'
|
484
|
+
|
485
|
+
# Offense count: 5
|
486
|
+
# This cop supports safe autocorrection (--autocorrect).
|
487
|
+
Style/RedundantSelfAssignmentBranch:
|
488
|
+
Exclude:
|
489
|
+
- 'lib/reactor/cm/group.rb'
|
490
|
+
- 'lib/reactor/cm/permissions.rb'
|
491
|
+
- 'lib/reactor/tools/response_handler/xml_attribute.rb'
|
492
|
+
|
359
493
|
# Offense count: 1
|
360
|
-
#
|
361
|
-
# Configuration parameters: .
|
362
|
-
# SupportedStyles: use_perl_names, use_english_names
|
494
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
495
|
+
# Configuration parameters: RequireEnglish.
|
496
|
+
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
363
497
|
Style/SpecialGlobalVars:
|
364
498
|
EnforcedStyle: use_perl_names
|
365
499
|
|
366
500
|
# Offense count: 5
|
367
|
-
#
|
501
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
502
|
+
# Configuration parameters: Mode.
|
368
503
|
Style/StringConcatenation:
|
369
504
|
Exclude:
|
370
505
|
- 'lib/reactor/attributes_handlers.rb'
|
@@ -373,9 +508,9 @@ Style/StringConcatenation:
|
|
373
508
|
- 'lib/reactor/tools/versioner.rb'
|
374
509
|
|
375
510
|
# Offense count: 3
|
376
|
-
#
|
377
|
-
# Configuration parameters:
|
378
|
-
#
|
511
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
512
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
513
|
+
# AllowedMethods: define_method
|
379
514
|
Style/SymbolProc:
|
380
515
|
Exclude:
|
381
516
|
- 'lib/reactor/cm/obj.rb'
|
@@ -383,7 +518,7 @@ Style/SymbolProc:
|
|
383
518
|
- 'lib/reactor/tools/smart_xml_logger.rb'
|
384
519
|
|
385
520
|
# Offense count: 1
|
386
|
-
#
|
521
|
+
# This cop supports safe autocorrection (--autocorrect).
|
387
522
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
388
523
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
389
524
|
Style/TernaryParentheses:
|
@@ -391,24 +526,17 @@ Style/TernaryParentheses:
|
|
391
526
|
- 'lib/reactor/cm/obj.rb'
|
392
527
|
|
393
528
|
# Offense count: 2
|
394
|
-
#
|
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
|
-
# Offense count: 1
|
402
|
-
# Cop supports --auto-correct.
|
529
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
403
530
|
# Configuration parameters: EnforcedStyle.
|
404
531
|
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
|
405
532
|
Style/YodaCondition:
|
406
533
|
Exclude:
|
534
|
+
- 'app/models/rails_connector/abstract_obj.rb'
|
407
535
|
- 'lib/reactor/validations.rb'
|
408
536
|
|
409
537
|
# Offense count: 29
|
410
|
-
#
|
411
|
-
# Configuration parameters:
|
538
|
+
# This cop supports safe autocorrection (--autocorrect).
|
539
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
412
540
|
# URISchemes: http, https
|
413
541
|
Layout/LineLength:
|
414
542
|
Max: 248
|
data/infopark_reactor.gemspec
CHANGED
@@ -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.
|
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", "
|
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"
|
28
|
-
s.add_development_dependency "rubocop-performance"
|
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
|
-
|
107
|
+
will_save_change_to_attribute?(:#{attribute}, **options)
|
108
108
|
end
|
109
109
|
EOC
|
110
110
|
end
|
data/lib/reactor/engine.rb
CHANGED
@@ -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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
data/lib/reactor/persistence.rb
CHANGED
@@ -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 = {}
|
data/lib/reactor/tools/sower.rb
CHANGED
data/lib/reactor/version.rb
CHANGED
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.
|
4
|
+
version: 1.29.1
|
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:
|
13
|
+
date: 2023-05-11 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.
|
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.
|
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
|
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
|
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: '
|
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: '
|
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.
|
270
|
+
rubygems_version: 3.4.5
|
264
271
|
signing_key:
|
265
272
|
specification_version: 4
|
266
273
|
summary: Write into CM in familiar, Rails-like way
|