ecoportal-api-v2 1.1.8 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.markdownlint.json +4 -0
  3. data/.rubocop.yml +1 -1
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +501 -374
  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 +6 -3
  11. data/lib/ecoportal/api/common/content/class_helpers.rb +12 -8
  12. data/lib/ecoportal/api/common/content/collection_model.rb +7 -7
  13. data/lib/ecoportal/api/common/content/wrapped_response.rb +11 -11
  14. data/lib/ecoportal/api/v2/page/component/reference_field.rb +17 -13
  15. data/lib/ecoportal/api/v2/page/component.rb +7 -4
  16. data/lib/ecoportal/api/v2/page/force.rb +1 -1
  17. data/lib/ecoportal/api/v2/page/stages.rb +5 -6
  18. data/lib/ecoportal/api/v2/page.rb +26 -22
  19. data/lib/ecoportal/api/v2/pages/page_stage/task.rb +63 -0
  20. data/lib/ecoportal/api/v2/pages/page_stage/tasks.rb +69 -0
  21. data/lib/ecoportal/api/v2/pages/page_stage.rb +30 -22
  22. data/lib/ecoportal/api/v2/pages/stages.rb +3 -4
  23. data/lib/ecoportal/api/v2/pages.rb +24 -14
  24. data/lib/ecoportal/api/v2/people.rb +2 -3
  25. data/lib/ecoportal/api/v2/registers.rb +28 -13
  26. data/lib/ecoportal/api/v2/s3/data.rb +27 -0
  27. data/lib/ecoportal/api/v2/s3/files/batch_upload.rb +110 -0
  28. data/lib/ecoportal/api/v2/s3/files/poll.rb +82 -0
  29. data/lib/ecoportal/api/v2/s3/files/poll_status.rb +52 -0
  30. data/lib/ecoportal/api/v2/s3/files.rb +132 -0
  31. data/lib/ecoportal/api/v2/s3/upload.rb +154 -0
  32. data/lib/ecoportal/api/v2/s3.rb +66 -0
  33. data/lib/ecoportal/api/v2.rb +10 -3
  34. data/lib/ecoportal/api/v2_version.rb +1 -1
  35. metadata +55 -54
metadata CHANGED
@@ -1,55 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 2.4.12
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '3'
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 2.4.12
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '3'
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
14
+ name: pry
35
15
  requirement: !ruby/object:Gem::Requirement
36
16
  requirements:
37
17
  - - ">="
38
18
  - !ruby/object:Gem::Version
39
- version: 3.12.0
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '4'
19
+ version: '0.14'
43
20
  type: :development
44
21
  prerelease: false
45
22
  version_requirements: !ruby/object:Gem::Requirement
46
23
  requirements:
47
24
  - - ">="
48
25
  - !ruby/object:Gem::Version
49
- version: 3.12.0
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '4'
26
+ version: '0.14'
53
27
  - !ruby/object:Gem::Dependency
54
28
  name: rake
55
29
  requirement: !ruby/object:Gem::Requirement
@@ -71,32 +45,32 @@ dependencies:
71
45
  - !ruby/object:Gem::Version
72
46
  version: '14'
73
47
  - !ruby/object:Gem::Dependency
74
- name: yard
48
+ name: redcarpet
75
49
  requirement: !ruby/object:Gem::Requirement
76
50
  requirements:
77
51
  - - ">="
78
52
  - !ruby/object:Gem::Version
79
- version: 0.9.34
53
+ version: 3.6.0
80
54
  - - "<"
81
55
  - !ruby/object:Gem::Version
82
- version: '1'
56
+ version: '4'
83
57
  type: :development
84
58
  prerelease: false
85
59
  version_requirements: !ruby/object:Gem::Requirement
86
60
  requirements:
87
61
  - - ">="
88
62
  - !ruby/object:Gem::Version
89
- version: 0.9.34
63
+ version: 3.6.0
90
64
  - - "<"
91
65
  - !ruby/object:Gem::Version
92
- version: '1'
66
+ version: '4'
93
67
  - !ruby/object:Gem::Dependency
94
- name: redcarpet
68
+ name: rspec
95
69
  requirement: !ruby/object:Gem::Requirement
96
70
  requirements:
97
71
  - - ">="
98
72
  - !ruby/object:Gem::Version
99
- version: 3.6.0
73
+ version: 3.12.0
100
74
  - - "<"
101
75
  - !ruby/object:Gem::Version
102
76
  version: '4'
@@ -106,44 +80,58 @@ dependencies:
106
80
  requirements:
107
81
  - - ">="
108
82
  - !ruby/object:Gem::Version
109
- version: 3.6.0
83
+ version: 3.12.0
110
84
  - - "<"
111
85
  - !ruby/object:Gem::Version
112
86
  version: '4'
113
87
  - !ruby/object:Gem::Dependency
114
- name: pry
88
+ name: yard
115
89
  requirement: !ruby/object:Gem::Requirement
116
90
  requirements:
117
- - - ">="
91
+ - - "~>"
118
92
  - !ruby/object:Gem::Version
119
- version: '0.14'
93
+ version: 0.9.34
120
94
  type: :development
121
95
  prerelease: false
122
96
  version_requirements: !ruby/object:Gem::Requirement
123
97
  requirements:
124
- - - ">="
98
+ - - "~>"
125
99
  - !ruby/object:Gem::Version
126
- version: '0.14'
100
+ version: 0.9.34
127
101
  - !ruby/object:Gem::Dependency
128
102
  name: ecoportal-api
129
103
  requirement: !ruby/object:Gem::Requirement
130
104
  requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: 0.9.6
134
- - - "<"
105
+ - - "~>"
135
106
  - !ruby/object:Gem::Version
136
107
  version: '0.10'
137
108
  type: :runtime
138
109
  prerelease: false
139
110
  version_requirements: !ruby/object:Gem::Requirement
140
111
  requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '0.10'
115
+ - !ruby/object:Gem::Dependency
116
+ name: mime-types
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '3.5'
141
122
  - - ">="
142
123
  - !ruby/object:Gem::Version
143
- version: 0.9.6
144
- - - "<"
124
+ version: 3.5.2
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
145
130
  - !ruby/object:Gem::Version
146
- version: '0.10'
131
+ version: '3.5'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 3.5.2
147
135
  description:
148
136
  email:
149
137
  - rien@ecoportal.co.nz
@@ -154,8 +142,10 @@ extensions: []
154
142
  extra_rdoc_files: []
155
143
  files:
156
144
  - ".gitignore"
145
+ - ".markdownlint.json"
157
146
  - ".rspec"
158
147
  - ".rubocop.yml"
148
+ - ".ruby-version"
159
149
  - ".yardopts"
160
150
  - CHANGELOG.md
161
151
  - Gemfile
@@ -169,6 +159,7 @@ files:
169
159
  - lib/ecoportal/api/common.v2.rb
170
160
  - lib/ecoportal/api/common/concerns.rb
171
161
  - lib/ecoportal/api/common/concerns/benchmarkable.rb
162
+ - lib/ecoportal/api/common/concerns/threadable.rb
172
163
  - lib/ecoportal/api/common/content.rb
173
164
  - lib/ecoportal/api/common/content/array_model.rb
174
165
  - lib/ecoportal/api/common/content/class_helpers.rb
@@ -239,6 +230,8 @@ files:
239
230
  - lib/ecoportal/api/v2/pages.rb
240
231
  - lib/ecoportal/api/v2/pages/page_create_response.rb
241
232
  - lib/ecoportal/api/v2/pages/page_stage.rb
233
+ - lib/ecoportal/api/v2/pages/page_stage/task.rb
234
+ - lib/ecoportal/api/v2/pages/page_stage/tasks.rb
242
235
  - lib/ecoportal/api/v2/pages/stages.rb
243
236
  - lib/ecoportal/api/v2/people.rb
244
237
  - lib/ecoportal/api/v2/registers.rb
@@ -249,11 +242,19 @@ files:
249
242
  - lib/ecoportal/api/v2/registers/stage_result.rb
250
243
  - lib/ecoportal/api/v2/registers/stages_result.rb
251
244
  - lib/ecoportal/api/v2/registers/template.rb
245
+ - lib/ecoportal/api/v2/s3.rb
246
+ - lib/ecoportal/api/v2/s3/data.rb
247
+ - lib/ecoportal/api/v2/s3/files.rb
248
+ - lib/ecoportal/api/v2/s3/files/batch_upload.rb
249
+ - lib/ecoportal/api/v2/s3/files/poll.rb
250
+ - lib/ecoportal/api/v2/s3/files/poll_status.rb
251
+ - lib/ecoportal/api/v2/s3/upload.rb
252
252
  - lib/ecoportal/api/v2_version.rb
253
253
  homepage: https://www.ecoportal.com
254
254
  licenses:
255
255
  - MIT
256
- metadata: {}
256
+ metadata:
257
+ rubygems_mfa_required: 'true'
257
258
  post_install_message:
258
259
  rdoc_options: []
259
260
  require_paths:
@@ -262,14 +263,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
262
263
  requirements:
263
264
  - - ">="
264
265
  - !ruby/object:Gem::Version
265
- version: 2.7.2
266
+ version: 3.2.2
266
267
  required_rubygems_version: !ruby/object:Gem::Requirement
267
268
  requirements:
268
269
  - - ">="
269
270
  - !ruby/object:Gem::Version
270
271
  version: '0'
271
272
  requirements: []
272
- rubygems_version: 3.4.12
273
+ rubygems_version: 3.5.6
273
274
  signing_key:
274
275
  specification_version: 4
275
276
  summary: A collection of helpers for interacting with the ecoPortal MS's V2 API