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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.markdownlint.json +4 -0
  3. data/.rubocop.yml +54 -15
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +485 -373
  6. data/ecoportal-api-v2.gemspec +13 -12
  7. data/lib/ecoportal/api/common/concerns/benchmarkable.rb +47 -34
  8. data/lib/ecoportal/api/common/concerns/threadable.rb +41 -0
  9. data/lib/ecoportal/api/common/concerns.rb +1 -0
  10. data/lib/ecoportal/api/common/content/array_model.rb +85 -79
  11. data/lib/ecoportal/api/common/content/class_helpers.rb +34 -31
  12. data/lib/ecoportal/api/common/content/collection_model.rb +77 -65
  13. data/lib/ecoportal/api/common/content/double_model.rb +105 -87
  14. data/lib/ecoportal/api/common/content/wrapped_response.rb +11 -11
  15. data/lib/ecoportal/api/v2/page/component/reference_field.rb +17 -13
  16. data/lib/ecoportal/api/v2/page/component.rb +67 -68
  17. data/lib/ecoportal/api/v2/page/components.rb +9 -9
  18. data/lib/ecoportal/api/v2/page/force.rb +6 -7
  19. data/lib/ecoportal/api/v2/page/stages.rb +5 -6
  20. data/lib/ecoportal/api/v2/page.rb +35 -33
  21. data/lib/ecoportal/api/v2/pages/page_stage.rb +22 -20
  22. data/lib/ecoportal/api/v2/pages.rb +18 -14
  23. data/lib/ecoportal/api/v2/people.rb +2 -3
  24. data/lib/ecoportal/api/v2/registers.rb +28 -13
  25. data/lib/ecoportal/api/v2/s3/data.rb +27 -0
  26. data/lib/ecoportal/api/v2/s3/files/batch_upload.rb +110 -0
  27. data/lib/ecoportal/api/v2/s3/files/poll.rb +82 -0
  28. data/lib/ecoportal/api/v2/s3/files/poll_status.rb +52 -0
  29. data/lib/ecoportal/api/v2/s3/files.rb +132 -0
  30. data/lib/ecoportal/api/v2/s3/upload.rb +154 -0
  31. data/lib/ecoportal/api/v2/s3.rb +66 -0
  32. data/lib/ecoportal/api/v2.rb +10 -3
  33. data/lib/ecoportal/api/v2_version.rb +1 -1
  34. metadata +53 -54
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65194be30f026aa431874543d6905b5704ea081c6a3c9ef0bf9741142c4c4253
4
- data.tar.gz: 398eaeb83ea38386670715c0fa83144004abdbd8c7edfd8581ecb7b157c8d205
3
+ metadata.gz: ff49546bff744816505c3656a7549ade52395b0a8a57a419b2ec35add4c2d0f5
4
+ data.tar.gz: 031e3d3f89dd29c22994372fa32175572c1b1773e1ce1841a7904b52fe0bd22c
5
5
  SHA512:
6
- metadata.gz: 0761f2079d2493f6fef928f846daf4b6b0413838c4f1252c8cf31742284fc5bcfc0e8d6dbd635f2659b37a34a6b90c09ed42f7db781c868a635188354dbe4bbd
7
- data.tar.gz: c979ae5a583898d47c1b8501d19ea651f31013a78461008c4ed6eff69c6b1a271c2c812dbbc2a52bc82d90b7caf67e9a286e8d488639eb8bd5a8fd6678c91659
6
+ metadata.gz: 2e261c78abc998494c48c817e1910178483c7db5a5842c1a92010e097258551fe2ffbfa57201e339fa1600c2cdffb54babffd66a8807f7c5543ee7776064b11b
7
+ data.tar.gz: 7f347723b84099f93df288eddf643cb5967472e03bcec92e86613ef220c142e0d4978bd9c90a03d21dd461045da9efdb7b7114f33de24dbdec90aace3ef30718
@@ -0,0 +1,4 @@
1
+ {
2
+ "MD013": false,
3
+ "MD024": false
4
+ }
data/.rubocop.yml CHANGED
@@ -1,39 +1,70 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5.1
2
+ TargetRubyVersion: 3.2.2
3
3
  Exclude:
4
4
  - 'config/routes.rb'
5
+ NewCops: enable
5
6
 
6
- Metrics/LineLength:
7
- Enabled: false
8
- Metrics/BlockLength:
9
- ExcludedMethods: [context, describe]
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/StringLiterals:
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/CommentedKeyword:
36
+ Style/StringLiterals:
27
37
  Enabled: false
28
- Style/MultilineBlockChain:
38
+ Style/StringLiteralsInInterpolation:
29
39
  Enabled: false
30
40
  Style/Documentation:
31
41
  Enabled: false
32
- Style/StringLiteralsInInterpolation:
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/IndentHash:
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