infopark_reactor 1.27.0.rc10 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.rubocop_todo.yml +64 -13
- data/infopark_reactor.gemspec +4 -4
- data/lib/reactor/validations.rb +2 -1
- data/lib/reactor/version.rb +1 -1
- metadata +14 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d702e2d26e5067f61edcbfa124db36effe8ba4b8d5293d855f7e90ad41b151ce
|
|
4
|
+
data.tar.gz: e8b270ff8d5b435271342bd7e4120582ff544ea759839450e966467b15954d82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58cfbe5e0dd7688605bc2e3353466218cae8f0dc4cba2a417f213960d411a4f92acbbbb19714dea6b86cca4a39566ce4aa6eb7c4fadfb49185c3714ce8b580f2
|
|
7
|
+
data.tar.gz: ef5c34686380f1c6be310a67b6e0440af9632ea63c23aea8c311a6449ef3f6de0afcff88152925fa96593ae70e6fb3941ce2aad82d9ef215884db7621ef358e2
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config --auto-gen-only-exclude`
|
|
3
|
-
# on
|
|
3
|
+
# on 2022-05-05 11:51:54 UTC using RuboCop version 0.89.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
17
|
# Cop supports --auto-correct.
|
|
11
18
|
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
|
@@ -42,6 +49,12 @@ Lint/LiteralAsCondition:
|
|
|
42
49
|
Exclude:
|
|
43
50
|
- 'lib/reactor/persistence.rb'
|
|
44
51
|
|
|
52
|
+
# Offense count: 2
|
|
53
|
+
Lint/MissingSuper:
|
|
54
|
+
Exclude:
|
|
55
|
+
- 'lib/reactor/cm/object_base.rb'
|
|
56
|
+
- 'lib/reactor/workflow/empty.rb'
|
|
57
|
+
|
|
45
58
|
# Offense count: 2
|
|
46
59
|
Lint/ShadowingOuterLocalVariable:
|
|
47
60
|
Exclude:
|
|
@@ -66,10 +79,10 @@ Lint/UselessAssignment:
|
|
|
66
79
|
- 'lib/reactor/plans/update_attribute.rb'
|
|
67
80
|
- 'lib/reactor/plans/update_obj_class.rb'
|
|
68
81
|
|
|
69
|
-
# Offense count:
|
|
82
|
+
# Offense count: 43
|
|
70
83
|
# Configuration parameters: IgnoredMethods.
|
|
71
84
|
Metrics/AbcSize:
|
|
72
|
-
Max:
|
|
85
|
+
Max: 60
|
|
73
86
|
|
|
74
87
|
# Offense count: 5
|
|
75
88
|
# Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods.
|
|
@@ -94,11 +107,10 @@ Metrics/ClassLength:
|
|
|
94
107
|
- 'lib/reactor/cm/object_base.rb'
|
|
95
108
|
- 'lib/reactor/tools/workflow_generator.rb'
|
|
96
109
|
|
|
97
|
-
# Offense count:
|
|
110
|
+
# Offense count: 11
|
|
98
111
|
# Configuration parameters: IgnoredMethods, Max.
|
|
99
112
|
Metrics/CyclomaticComplexity:
|
|
100
113
|
Exclude:
|
|
101
|
-
- 'lib/reactor/attributes/date_serializer.rb'
|
|
102
114
|
- 'lib/reactor/attributes/link_list_extender.rb'
|
|
103
115
|
- 'lib/reactor/attributes_handlers.rb'
|
|
104
116
|
- 'lib/reactor/cm/obj.rb'
|
|
@@ -123,15 +135,19 @@ Metrics/ModuleLength:
|
|
|
123
135
|
- 'lib/reactor/attributes.rb'
|
|
124
136
|
- 'lib/reactor/persistence.rb'
|
|
125
137
|
|
|
126
|
-
# Offense count:
|
|
138
|
+
# Offense count: 10
|
|
127
139
|
# Configuration parameters: IgnoredMethods, Max.
|
|
128
140
|
Metrics/PerceivedComplexity:
|
|
129
141
|
Exclude:
|
|
130
142
|
- 'lib/reactor/attributes/date_serializer.rb'
|
|
143
|
+
- 'lib/reactor/attributes/link_list_extender.rb'
|
|
144
|
+
- 'lib/reactor/attributes_handlers.rb'
|
|
131
145
|
- 'lib/reactor/cm/obj.rb'
|
|
146
|
+
- 'lib/reactor/cm/obj_class.rb'
|
|
132
147
|
- 'lib/reactor/legacy.rb'
|
|
148
|
+
- 'lib/reactor/persistence.rb'
|
|
133
149
|
- 'lib/reactor/tools/smart_xml_logger.rb'
|
|
134
|
-
- 'lib/reactor/
|
|
150
|
+
- 'lib/reactor/validations.rb'
|
|
135
151
|
|
|
136
152
|
# Offense count: 7
|
|
137
153
|
Naming/AccessorMethodName:
|
|
@@ -167,7 +183,7 @@ Naming/MemoizedInstanceVariableName:
|
|
|
167
183
|
|
|
168
184
|
# Offense count: 5
|
|
169
185
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
170
|
-
# AllowedNames:
|
|
186
|
+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
|
171
187
|
Naming/MethodParameterName:
|
|
172
188
|
Exclude:
|
|
173
189
|
- 'lib/reactor/cm/bridge.rb'
|
|
@@ -205,12 +221,29 @@ Security/YAMLLoad:
|
|
|
205
221
|
Exclude:
|
|
206
222
|
- 'lib/reactor/tools/versioner.rb'
|
|
207
223
|
|
|
224
|
+
# Offense count: 5
|
|
225
|
+
# Cop supports --auto-correct.
|
|
226
|
+
Style/ArrayCoercion:
|
|
227
|
+
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'
|
|
233
|
+
|
|
208
234
|
# Offense count: 1
|
|
209
235
|
# Configuration parameters: AllowedChars.
|
|
210
236
|
Style/AsciiComments:
|
|
211
237
|
Exclude:
|
|
212
238
|
- 'lib/reactor/cm/language.rb'
|
|
213
239
|
|
|
240
|
+
# Offense count: 2
|
|
241
|
+
# Cop supports --auto-correct.
|
|
242
|
+
Style/CaseLikeIf:
|
|
243
|
+
Exclude:
|
|
244
|
+
- 'lib/reactor/attributes/date_serializer.rb'
|
|
245
|
+
- 'lib/reactor/cm/xml_markup.rb'
|
|
246
|
+
|
|
214
247
|
# Offense count: 3
|
|
215
248
|
# Cop supports --auto-correct.
|
|
216
249
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
@@ -243,6 +276,13 @@ Style/EvalWithLocation:
|
|
|
243
276
|
- 'lib/reactor/attributes_handlers.rb'
|
|
244
277
|
- 'lib/reactor/cm/object_base.rb'
|
|
245
278
|
|
|
279
|
+
# Offense count: 7
|
|
280
|
+
# Cop supports --auto-correct.
|
|
281
|
+
Style/ExplicitBlockArgument:
|
|
282
|
+
Exclude:
|
|
283
|
+
- 'lib/reactor/cm/multi_xml_request.rb'
|
|
284
|
+
- 'lib/reactor/cm/xml_markup.rb'
|
|
285
|
+
|
|
246
286
|
# Offense count: 115
|
|
247
287
|
# Cop supports --auto-correct.
|
|
248
288
|
# Configuration parameters: EnforcedStyle.
|
|
@@ -297,11 +337,6 @@ Style/InverseMethods:
|
|
|
297
337
|
Exclude:
|
|
298
338
|
- 'lib/reactor/plans/prepared.rb'
|
|
299
339
|
|
|
300
|
-
# Offense count: 1
|
|
301
|
-
Style/MethodMissingSuper:
|
|
302
|
-
Exclude:
|
|
303
|
-
- 'lib/reactor/migration.rb'
|
|
304
|
-
|
|
305
340
|
# Offense count: 1
|
|
306
341
|
Style/MissingRespondToMissing:
|
|
307
342
|
Exclude:
|
|
@@ -314,6 +349,13 @@ Style/NonNilCheck:
|
|
|
314
349
|
Exclude:
|
|
315
350
|
- 'lib/reactor/permission.rb'
|
|
316
351
|
|
|
352
|
+
# Offense count: 6
|
|
353
|
+
Style/OptionalBooleanParameter:
|
|
354
|
+
Exclude:
|
|
355
|
+
- 'lib/reactor/cm/obj.rb'
|
|
356
|
+
- 'lib/reactor/persistence.rb'
|
|
357
|
+
- 'lib/reactor/session/observers.rb'
|
|
358
|
+
|
|
317
359
|
# Offense count: 1
|
|
318
360
|
# Cop supports --auto-correct.
|
|
319
361
|
# Configuration parameters: .
|
|
@@ -321,6 +363,15 @@ Style/NonNilCheck:
|
|
|
321
363
|
Style/SpecialGlobalVars:
|
|
322
364
|
EnforcedStyle: use_perl_names
|
|
323
365
|
|
|
366
|
+
# Offense count: 5
|
|
367
|
+
# Cop supports --auto-correct.
|
|
368
|
+
Style/StringConcatenation:
|
|
369
|
+
Exclude:
|
|
370
|
+
- 'lib/reactor/attributes_handlers.rb'
|
|
371
|
+
- 'lib/reactor/tools/migrator.rb'
|
|
372
|
+
- 'lib/reactor/tools/sower.rb'
|
|
373
|
+
- 'lib/reactor/tools/versioner.rb'
|
|
374
|
+
|
|
324
375
|
# Offense count: 3
|
|
325
376
|
# Cop supports --auto-correct.
|
|
326
377
|
# Configuration parameters: IgnoredMethods.
|
data/infopark_reactor.gemspec
CHANGED
|
@@ -7,10 +7,10 @@ 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
14
|
|
|
15
15
|
# s.rubyforge_project = "infopark_reactor"
|
|
16
16
|
|
|
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
|
20
20
|
s.require_paths = ["lib"]
|
|
21
21
|
|
|
22
|
-
s.add_dependency "infopark_fiona_connector", "~> 7.0.1.5.2.
|
|
22
|
+
s.add_dependency "infopark_fiona_connector", "~> 7.0.1.5.2.7.rc1"
|
|
23
23
|
s.add_dependency "nokogiri", "~> 1"
|
|
24
24
|
s.add_dependency "rails", "~> 5.0"
|
|
25
25
|
|
|
26
26
|
s.add_development_dependency "rspec", "~> 3"
|
|
27
|
-
s.add_development_dependency "rubocop", "~> 0.
|
|
27
|
+
s.add_development_dependency "rubocop", "~> 0.89.1"
|
|
28
28
|
s.add_development_dependency "rubocop-performance", "~> 1"
|
|
29
29
|
s.add_development_dependency "yard", ">= 0"
|
|
30
30
|
end
|
data/lib/reactor/validations.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
data/lib/reactor/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.28.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:
|
|
13
|
+
date: 2022-05-05 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.
|
|
21
|
+
version: 7.0.1.5.2.7.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.
|
|
28
|
+
version: 7.0.1.5.2.7.rc1
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: nokogiri
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -74,14 +74,14 @@ dependencies:
|
|
|
74
74
|
requirements:
|
|
75
75
|
- - "~>"
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: 0.
|
|
77
|
+
version: 0.89.1
|
|
78
78
|
type: :development
|
|
79
79
|
prerelease: false
|
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
|
82
82
|
- - "~>"
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 0.
|
|
84
|
+
version: 0.89.1
|
|
85
85
|
- !ruby/object:Gem::Dependency
|
|
86
86
|
name: rubocop-performance
|
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -241,11 +241,11 @@ files:
|
|
|
241
241
|
- lib/reactor/workflow/standard.rb
|
|
242
242
|
- lib/tasks/cm_migrate.rake
|
|
243
243
|
- lib/tasks/cm_seeds.rake
|
|
244
|
-
homepage:
|
|
244
|
+
homepage: https://www.justrelate.com/
|
|
245
245
|
licenses:
|
|
246
|
-
- LGPL-3
|
|
246
|
+
- LGPL-3.0
|
|
247
247
|
metadata: {}
|
|
248
|
-
post_install_message:
|
|
248
|
+
post_install_message:
|
|
249
249
|
rdoc_options: []
|
|
250
250
|
require_paths:
|
|
251
251
|
- lib
|
|
@@ -256,13 +256,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
256
256
|
version: '0'
|
|
257
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
258
|
requirements:
|
|
259
|
-
- - "
|
|
259
|
+
- - ">="
|
|
260
260
|
- !ruby/object:Gem::Version
|
|
261
|
-
version:
|
|
261
|
+
version: '0'
|
|
262
262
|
requirements: []
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
signing_key:
|
|
263
|
+
rubygems_version: 3.1.6
|
|
264
|
+
signing_key:
|
|
266
265
|
specification_version: 4
|
|
267
266
|
summary: Write into CM in familiar, Rails-like way
|
|
268
267
|
test_files: []
|