ecoportal-api-v2 1.1.7 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.markdownlint.json +4 -0
- data/.rubocop.yml +54 -15
- data/.ruby-version +1 -0
- data/CHANGELOG.md +485 -373
- data/ecoportal-api-v2.gemspec +13 -12
- data/lib/ecoportal/api/common/concerns/benchmarkable.rb +47 -34
- data/lib/ecoportal/api/common/concerns/threadable.rb +41 -0
- data/lib/ecoportal/api/common/concerns.rb +1 -0
- data/lib/ecoportal/api/common/content/array_model.rb +85 -79
- data/lib/ecoportal/api/common/content/class_helpers.rb +34 -31
- data/lib/ecoportal/api/common/content/collection_model.rb +77 -65
- data/lib/ecoportal/api/common/content/double_model.rb +105 -87
- data/lib/ecoportal/api/common/content/wrapped_response.rb +11 -11
- data/lib/ecoportal/api/v2/page/component/reference_field.rb +17 -13
- data/lib/ecoportal/api/v2/page/component.rb +67 -68
- data/lib/ecoportal/api/v2/page/components.rb +9 -9
- data/lib/ecoportal/api/v2/page/force.rb +6 -7
- data/lib/ecoportal/api/v2/page/stages.rb +5 -6
- data/lib/ecoportal/api/v2/page.rb +35 -33
- data/lib/ecoportal/api/v2/pages/page_stage.rb +22 -20
- data/lib/ecoportal/api/v2/pages.rb +18 -14
- data/lib/ecoportal/api/v2/people.rb +2 -3
- data/lib/ecoportal/api/v2/registers.rb +28 -13
- data/lib/ecoportal/api/v2/s3/data.rb +27 -0
- data/lib/ecoportal/api/v2/s3/files/batch_upload.rb +110 -0
- data/lib/ecoportal/api/v2/s3/files/poll.rb +82 -0
- data/lib/ecoportal/api/v2/s3/files/poll_status.rb +52 -0
- data/lib/ecoportal/api/v2/s3/files.rb +132 -0
- data/lib/ecoportal/api/v2/s3/upload.rb +154 -0
- data/lib/ecoportal/api/v2/s3.rb +66 -0
- data/lib/ecoportal/api/v2.rb +10 -3
- data/lib/ecoportal/api/v2_version.rb +1 -1
- metadata +53 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff49546bff744816505c3656a7549ade52395b0a8a57a419b2ec35add4c2d0f5
|
4
|
+
data.tar.gz: 031e3d3f89dd29c22994372fa32175572c1b1773e1ce1841a7904b52fe0bd22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e261c78abc998494c48c817e1910178483c7db5a5842c1a92010e097258551fe2ffbfa57201e339fa1600c2cdffb54babffd66a8807f7c5543ee7776064b11b
|
7
|
+
data.tar.gz: 7f347723b84099f93df288eddf643cb5967472e03bcec92e86613ef220c142e0d4978bd9c90a03d21dd461045da9efdb7b7114f33de24dbdec90aace3ef30718
|
data/.markdownlint.json
ADDED
data/.rubocop.yml
CHANGED
@@ -1,39 +1,70 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 3.2.2
|
3
3
|
Exclude:
|
4
4
|
- 'config/routes.rb'
|
5
|
+
NewCops: enable
|
5
6
|
|
6
|
-
Metrics/
|
7
|
-
|
8
|
-
Metrics/
|
9
|
-
|
10
|
-
Max: 50
|
7
|
+
Metrics/ClassLength:
|
8
|
+
Max: 500
|
9
|
+
Metrics/ModuleLength:
|
10
|
+
Max: 300
|
11
11
|
Metrics/MethodLength:
|
12
12
|
Max: 50
|
13
|
-
Metrics/ClassLength:
|
14
|
-
Max: 200
|
15
13
|
Metrics/AbcSize:
|
16
14
|
Max: 30
|
17
|
-
|
18
|
-
ParameterLists:
|
15
|
+
Metrics/ParameterLists:
|
19
16
|
Max: 5
|
20
17
|
CountKeywordArgs: false
|
18
|
+
Metrics/BlockLength:
|
19
|
+
CountAsOne: ['array', 'heredoc', 'method_call']
|
20
|
+
Max: 50
|
21
|
+
Metrics/CyclomaticComplexity:
|
22
|
+
Max: 30
|
23
|
+
Metrics/PerceivedComplexity:
|
24
|
+
Max: 30
|
21
25
|
|
22
|
-
Style/
|
26
|
+
Style/AccessorGrouping:
|
27
|
+
Enabled: false
|
28
|
+
Style/ConditionalAssignment:
|
29
|
+
Enabled: false
|
30
|
+
Style/BlockDelimiters:
|
31
|
+
BracesRequiredMethods: ['log']
|
32
|
+
Style/ClassAndModuleChildren:
|
23
33
|
Enabled: false
|
24
34
|
Style/FrozenStringLiteralComment:
|
25
35
|
Enabled: false
|
26
|
-
Style/
|
36
|
+
Style/StringLiterals:
|
27
37
|
Enabled: false
|
28
|
-
Style/
|
38
|
+
Style/StringLiteralsInInterpolation:
|
29
39
|
Enabled: false
|
30
40
|
Style/Documentation:
|
31
41
|
Enabled: false
|
32
|
-
Style/
|
42
|
+
Style/CommentedKeyword:
|
43
|
+
Enabled: false
|
44
|
+
Style/MultilineBlockChain:
|
33
45
|
Enabled: false
|
34
46
|
Style/AndOr:
|
35
47
|
Enabled: false
|
48
|
+
Style/Alias:
|
49
|
+
EnforcedStyle: prefer_alias_method
|
50
|
+
Style/FetchEnvVar:
|
51
|
+
Enabled: false
|
52
|
+
Style/RegexpLiteral:
|
53
|
+
EnforcedStyle: mixed
|
54
|
+
AllowInnerSlashes: true
|
36
55
|
|
56
|
+
Layout/HashAlignment:
|
57
|
+
EnforcedColonStyle: table
|
58
|
+
EnforcedHashRocketStyle: table
|
59
|
+
Layout/LeadingCommentSpace:
|
60
|
+
Enabled: false
|
61
|
+
AllowGemfileRubyComment: true
|
62
|
+
Layout/ParameterAlignment:
|
63
|
+
Enabled: false
|
64
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
65
|
+
EnforcedStyle: symmetrical
|
66
|
+
Layout/LineLength:
|
67
|
+
Enabled: true
|
37
68
|
Layout/SpaceInsideHashLiteralBraces:
|
38
69
|
Enabled: false
|
39
70
|
Layout/SpaceInsideBlockBraces:
|
@@ -42,14 +73,22 @@ Layout/SpaceAroundOperators:
|
|
42
73
|
Enabled: false
|
43
74
|
Layout/ExtraSpacing:
|
44
75
|
AllowForAlignment: true
|
76
|
+
AllowBeforeTrailingComments: true
|
45
77
|
Layout/AccessModifierIndentation:
|
46
78
|
EnforcedStyle: indent
|
47
79
|
Layout/DotPosition:
|
48
80
|
EnforcedStyle: trailing
|
49
81
|
Layout/MultilineMethodCallIndentation:
|
50
82
|
EnforcedStyle: indented
|
51
|
-
Layout/
|
83
|
+
Layout/FirstHashElementIndentation:
|
84
|
+
Enabled: false
|
85
|
+
Layout/EmptyLineAfterGuardClause:
|
52
86
|
Enabled: false
|
53
87
|
|
54
88
|
Naming/VariableNumber:
|
55
89
|
EnforcedStyle: snake_case
|
90
|
+
CheckSymbols: false
|
91
|
+
Naming/MethodParameterName:
|
92
|
+
AllowedNames: ['x', 'y', 'i', 'j', 'id', 'io']
|
93
|
+
Naming/RescuedExceptionsVariableName:
|
94
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|