ecoportal-api 0.9.7 → 0.10.1
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 +4 -4
- data/.markdownlint.json +4 -0
- data/.rubocop.yml +55 -15
- data/.ruby-version +1 -0
- data/CHANGELOG.md +224 -171
- data/Rakefile +18 -7
- data/ecoportal-api.gemspec +7 -7
- data/lib/ecoportal/api/common/base_model.rb +36 -25
- data/lib/ecoportal/api/common/batch_operation.rb +18 -15
- data/lib/ecoportal/api/common/batch_response.rb +2 -5
- data/lib/ecoportal/api/common/client.rb +57 -22
- data/lib/ecoportal/api/common/response.rb +6 -6
- data/lib/ecoportal/api/common/wrapped_response.rb +14 -19
- data/lib/ecoportal/api/internal/account.rb +11 -10
- data/lib/ecoportal/api/internal.rb +5 -5
- data/lib/ecoportal/api/logger.rb +11 -9
- data/lib/ecoportal/api/v1/people.rb +59 -21
- data/lib/ecoportal/api/v1/person.rb +16 -13
- data/lib/ecoportal/api/v1/person_details.rb +10 -9
- data/lib/ecoportal/api/v1/person_schema.rb +1 -1
- data/lib/ecoportal/api/v1/person_schemas.rb +0 -2
- data/lib/ecoportal/api/v1/schema_field.rb +4 -5
- data/lib/ecoportal/api/v1/schema_field_value.rb +23 -24
- data/lib/ecoportal/api/v1.rb +4 -3
- data/lib/ecoportal/api/version.rb +1 -1
- metadata +23 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84d530d29757e28159e985e70e8a0da65f16d831ea2658fcafbe94f42e98f882
|
4
|
+
data.tar.gz: a4778b377de727e3c648fa79d674b044b32d452c7cc4f024d5fbb383185a3097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb0dad40ddd3d5b0b621ff61b063bf2e92522b09156035009a15e782d946d43aa9db28c0066c3db1c805c78f29a2ee550fd7c358020b7216a776624c3d31f43e
|
7
|
+
data.tar.gz: c84332d17ddd19fbfbbd69f287c2110cad88064ebce801f232fcaeeccc5e6db5ec2c5ce359267d43df6bd8f4bf08238b0c242f30ef39789b92321030a914b09f
|
data/.markdownlint.json
ADDED
data/.rubocop.yml
CHANGED
@@ -1,39 +1,71 @@
|
|
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
|
+
AllowedPatterns: ['proc', 'new']
|
33
|
+
Style/ClassAndModuleChildren:
|
23
34
|
Enabled: false
|
24
35
|
Style/FrozenStringLiteralComment:
|
25
36
|
Enabled: false
|
26
|
-
Style/
|
37
|
+
Style/StringLiterals:
|
27
38
|
Enabled: false
|
28
|
-
Style/
|
39
|
+
Style/StringLiteralsInInterpolation:
|
29
40
|
Enabled: false
|
30
41
|
Style/Documentation:
|
31
42
|
Enabled: false
|
32
|
-
Style/
|
43
|
+
Style/CommentedKeyword:
|
44
|
+
Enabled: false
|
45
|
+
Style/MultilineBlockChain:
|
33
46
|
Enabled: false
|
34
47
|
Style/AndOr:
|
35
48
|
Enabled: false
|
49
|
+
Style/Alias:
|
50
|
+
EnforcedStyle: prefer_alias_method
|
51
|
+
Style/FetchEnvVar:
|
52
|
+
Enabled: false
|
53
|
+
Style/RegexpLiteral:
|
54
|
+
EnforcedStyle: mixed
|
55
|
+
AllowInnerSlashes: true
|
36
56
|
|
57
|
+
Layout/HashAlignment:
|
58
|
+
EnforcedColonStyle: table
|
59
|
+
EnforcedHashRocketStyle: table
|
60
|
+
Layout/LeadingCommentSpace:
|
61
|
+
Enabled: false
|
62
|
+
AllowGemfileRubyComment: true
|
63
|
+
Layout/ParameterAlignment:
|
64
|
+
Enabled: false
|
65
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
66
|
+
EnforcedStyle: symmetrical
|
67
|
+
Layout/LineLength:
|
68
|
+
Enabled: true
|
37
69
|
Layout/SpaceInsideHashLiteralBraces:
|
38
70
|
Enabled: false
|
39
71
|
Layout/SpaceInsideBlockBraces:
|
@@ -42,14 +74,22 @@ Layout/SpaceAroundOperators:
|
|
42
74
|
Enabled: false
|
43
75
|
Layout/ExtraSpacing:
|
44
76
|
AllowForAlignment: true
|
77
|
+
AllowBeforeTrailingComments: true
|
45
78
|
Layout/AccessModifierIndentation:
|
46
79
|
EnforcedStyle: indent
|
47
80
|
Layout/DotPosition:
|
48
81
|
EnforcedStyle: trailing
|
49
82
|
Layout/MultilineMethodCallIndentation:
|
50
83
|
EnforcedStyle: indented
|
51
|
-
Layout/
|
84
|
+
Layout/FirstHashElementIndentation:
|
85
|
+
Enabled: false
|
86
|
+
Layout/EmptyLineAfterGuardClause:
|
52
87
|
Enabled: false
|
53
88
|
|
54
89
|
Naming/VariableNumber:
|
55
90
|
EnforcedStyle: snake_case
|
91
|
+
CheckSymbols: false
|
92
|
+
Naming/MethodParameterName:
|
93
|
+
AllowedNames: ['x', 'y', 'i', 'j', 'id', 'io', 'to']
|
94
|
+
Naming/RescuedExceptionsVariableName:
|
95
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|