ecoportal-api 0.9.8 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d89b2ca34f7a85f9cbeaf61331b155fb83b4f80ee8ff9d57133837d4f87bf03f
4
- data.tar.gz: 93e71b77a46c283f01708f94099580774cf5d72b49df2041e15688f9622dfe08
3
+ metadata.gz: 84d530d29757e28159e985e70e8a0da65f16d831ea2658fcafbe94f42e98f882
4
+ data.tar.gz: a4778b377de727e3c648fa79d674b044b32d452c7cc4f024d5fbb383185a3097
5
5
  SHA512:
6
- metadata.gz: c2f5a46fb757bebae8ac0727ce9ea89d801e5fb3b91aac3146b2117c43f852682ed7bbd3ca7020b43ddde5b1ccdd4c4297bf52afa0fa5a859def1701844caedc
7
- data.tar.gz: 4b1fc568bae19759bac6d62badf06a9a949988b7667e87e8b2ec0ab90b5604d67e33ea695117d43bfa329d1706c81bf8fa7244323264052205b49b01bd38c233
6
+ metadata.gz: cb0dad40ddd3d5b0b621ff61b063bf2e92522b09156035009a15e782d946d43aa9db28c0066c3db1c805c78f29a2ee550fd7c358020b7216a776624c3d31f43e
7
+ data.tar.gz: c84332d17ddd19fbfbbd69f287c2110cad88064ebce801f232fcaeeccc5e6db5ec2c5ce359267d43df6bd8f4bf08238b0c242f30ef39789b92321030a914b09f
@@ -0,0 +1,4 @@
1
+ {
2
+ "MD013": false,
3
+ "MD024": false
4
+ }
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7.8
2
+ TargetRubyVersion: 3.2.2
3
3
  Exclude:
4
4
  - 'config/routes.rb'
5
5
  NewCops: enable
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.2
data/CHANGELOG.md CHANGED
@@ -1,304 +1,348 @@
1
1
  # Change Log
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
5
+ ## [0.10.1] - 2024-08-01
6
+
7
+ ### Added
8
+
9
+ - `Ecoportal::V1::Person#brand_id`
10
+ - `Ecoportal::V1::Person#archived`
11
+
12
+ ### Changed
13
+
14
+ - require `ruby 3`
15
+
16
+ ### Fixed
17
+
4
18
  ## [0.9.8] - 2024-05-15
5
19
 
6
20
  ### Added
7
- - `rubocop`
21
+
22
+ - `rubocop`
8
23
 
9
24
  ### Changed
10
- - `Ecoportal::API::Common::Client#with_retry`
11
- - Make resilient (**re-try**) to recent silent server errors where the body doesn't parse as JSON.
25
+
26
+ - `Ecoportal::API::Common::Client#with_retry`
27
+ - Make resilient (**re-try**) to recent silent server errors where the body doesn't parse as JSON.
12
28
 
13
29
  ### Fixed
14
30
 
15
31
  ## [0.9.7] - 2024-02-03
16
32
 
17
- ### Added
18
33
  ### Changed
19
- - `Ecoportal::API::V1::Person`
20
- - **removed** property `subordinates`
34
+
35
+ - `Ecoportal::API::V1::Person`
36
+ - **removed** property `subordinates`
21
37
 
22
38
  ## [0.9.6] - 2024-02-03
23
39
 
24
40
  ### Changed
25
- - upgraded some gems
41
+
42
+ - upgraded some gems
26
43
 
27
44
  ### Fixed
28
- - Compatibility with `ruby 3`
29
- - replaced `Proc.new` (with no block) by `block` in methods
45
+
46
+ - Compatibility with `ruby 3`
47
+ - replaced `Proc.new` (with no block) by `block` in methods
30
48
 
31
49
  ## [0.9.5] - 2023-09-05
32
50
 
33
51
  ### Fixed
34
- - `Ecoportal::API::V1::Person#as_update` missing parameter on `super` call.
52
+
53
+ - `Ecoportal::API::V1::Person#as_update` missing parameter on `super` call.
35
54
 
36
55
  ## [0.9.4] - 2023-04-17
37
56
 
38
57
  ### Changed
39
- - Softened max version of **gem** dependencies
40
- - Upgraded required ruby version
58
+
59
+ - Softened max version of **gem** dependencies
60
+ - Upgraded required ruby version
41
61
 
42
62
  ### Fixed
43
- - `Ecoportal::API::Common::BaseModel` should make a copy of `doc` on `initialize`
44
- - This was affecting `reset!` as `doc` was being changed
63
+
64
+ - `Ecoportal::API::Common::BaseModel` should make a copy of `doc` on `initialize`
65
+ - This was affecting `reset!` as `doc` was being changed
45
66
 
46
67
  ## [0.9.3] - 2023-03-16
47
68
 
48
69
  ### Added
49
- - `Ecoportal::API::V1::SchemaFieldValue#clear` helper to clear the value
70
+
71
+ - `Ecoportal::API::V1::SchemaFieldValue#clear` helper to clear the value
50
72
 
51
73
  ## [0.9.1] - 2023-03-09
52
74
 
53
75
  ### Added
54
- - `Ecoportal::API::V1::Person#contractor_organization_id` support for contractor management
55
- - `Ecoportal::API::Common::BaseModel` **added** `doc` helper methods:
56
- - `replace_doc!` and `#replace_original_doc!`
57
- - `Ecoportal::API::Internal::Person` **added** methods
58
- - **breaking change**, they default to compare with `original_doc`, while they did it with `initial_doc`)
59
- - `#new?` => to know if this person is being created now (it doesn't exist on **server side**).
60
- - `#account_added?` => to know if this person is getting the account added.
61
- - `#account_removed?` => to know if this person is getting their account removed.
62
- - `Ecoportal::API::Common::Client#host` expose
63
- - `Ecoportal::API::Internal::Permissions` added abilities
64
- - `contractor_management`
76
+
77
+ - `Ecoportal::API::V1::Person#contractor_organization_id` support for contractor management
78
+ - `Ecoportal::API::Common::BaseModel` **added** `doc` helper methods:
79
+ - `replace_doc!` and `#replace_original_doc!`
80
+ - `Ecoportal::API::Internal::Person` **added** methods
81
+ - **breaking change**, they default to compare with `original_doc`, while they did it with `initial_doc`)
82
+ - `#new?` => to know if this person is being created now (it doesn't exist on **server side**).
83
+ - `#account_added?` => to know if this person is getting the account added.
84
+ - `#account_removed?` => to know if this person is getting their account removed.
85
+ - `Ecoportal::API::Common::Client#host` expose
86
+ - `Ecoportal::API::Internal::Permissions` added abilities
87
+ - `contractor_management`
65
88
 
66
89
  ### Fixed
67
- - `Ecoportal::API::V1::PersonDetails.key?` should index first.
90
+
91
+ - `Ecoportal::API::V1::PersonDetails.key?` should index first.
68
92
 
69
93
  ### Changed
70
- - `Ecoportal::API::V1::Person::VALID_TAG_REGEX` allow dot `.` in tags.
94
+
95
+ - `Ecoportal::API::V1::Person::VALID_TAG_REGEX` allow dot `.` in tags.
71
96
 
72
97
  ## [0.8.5] - 2022-02-28
73
98
 
74
99
  ### Added
75
- - `Ecoportal::API::V1::PersonDetails#[]` to raise a specific error type to allow handling
76
- - `Ecoportal::API::V1::PersonDetails.key?` to allow to check if a field exists
77
- - `Ecoportal::API::Internal::Account#force_send_invites` support for back-end new method
100
+
101
+ - `Ecoportal::API::V1::PersonDetails#[]` to raise a specific error type to allow handling
102
+ - `Ecoportal::API::V1::PersonDetails.key?` to allow to check if a field exists
103
+ - `Ecoportal::API::Internal::Account#force_send_invites` support for back-end new method
78
104
 
79
105
  ### Fixed
80
- - `Ecoportal::API::V1::People#get` fixed typo
81
- - `Ecoportal::API::Common::BaseModel` `#original_doc` and `#initial_doc` maybe empty for the parent object
106
+
107
+ - `Ecoportal::API::V1::People#get` fixed typo
108
+ - `Ecoportal::API::Common::BaseModel` `#original_doc` and `#initial_doc` maybe empty for the parent object
82
109
 
83
110
  ### Changed
84
- - `Ecoportal::API::V1::People#each` limited the `GET` retries to `5`
85
- - `Ecoportal::API::Internal::Account#default_tag=`
86
- - Controls input type to be `String` or `nil`
87
- - Inherent `upcase`
111
+
112
+ - `Ecoportal::API::V1::People#each` limited the `GET` retries to `5`
113
+ - `Ecoportal::API::Internal::Account#default_tag=`
114
+ - Controls input type to be `String` or `nil`
115
+ - Inherent `upcase`
88
116
 
89
117
  ## [0.8.4] - 2021-11-05
90
118
 
91
119
  ### Added
92
- - `Ecoportal::API::Internal::Permissions` added abilities
93
- - `visitor_management`, `cross_register_reporting` and `broadcast_notifications`
94
- - Some yardocs too
95
- - Some callbacks are done in a non-obvious way and the returned object type was not documented
96
- - For this reason, some yardocs have been added to some of the parts that have been worked on.
120
+
121
+ - `Ecoportal::API::Internal::Permissions` added abilities
122
+ - `visitor_management`, `cross_register_reporting` and `broadcast_notifications`
123
+ - Some yardocs too
124
+ - Some callbacks are done in a non-obvious way and the returned object type was not documented
125
+ - For this reason, some yardocs have been added to some of the parts that have been worked on.
97
126
 
98
127
  ### Fixed
99
- - `Ecoportal::API::V1::People#create_job`
100
- - **Removed** call to `BatchOperation#process_response`
101
- - The method was is already called by `job_result`
102
- - As a consequence there was a double up of `callbacks`
103
- - **Fixed** line in wrong position
104
- - `Ecoportal::API::V1::People#batch`
105
- - `Ecoportal::API::Common::ElasticApmIntegration#unexpected_server_error?`
106
- - No code or code lesser than 100 is a server error as well
128
+
129
+ - `Ecoportal::API::V1::People#create_job`
130
+ - **Removed** call to `BatchOperation#process_response`
131
+ - The method was is already called by `job_result`
132
+ - As a consequence there was a double up of `callbacks`
133
+ - **Fixed** line in wrong position
134
+ - `Ecoportal::API::V1::People#batch`
135
+ - `Ecoportal::API::Common::ElasticApmIntegration#unexpected_server_error?`
136
+ - No code or code lesser than 100 is a server error as well
107
137
 
108
138
  ### Changed
109
- - `Ecoportal::API::Common::Client`: changed
110
- - Logging the **response** of batches or batch jobs can be handy when debugging the back-end
111
- - **removed** method `#without_response_logging`
112
- - This change entailed to remove dependencies in `Ecoportal::API::V1::People`
113
- - Specifically in methods `#batch`, `#job_result` and `#create_job`
114
- - `@response_logging_enabled` to be set in initialization stage (added parameter for `.new`)
139
+
140
+ - `Ecoportal::API::Common::Client`: changed
141
+ - Logging the **response** of batches or batch jobs can be handy when debugging the back-end
142
+ - **removed** method `#without_response_logging`
143
+ - This change entailed to remove dependencies in `Ecoportal::API::V1::People`
144
+ - Specifically in methods `#batch`, `#job_result` and `#create_job`
145
+ - `@response_logging_enabled` to be set in initialization stage (added parameter for `.new`)
115
146
 
116
147
  ## [0.8.3] - 2021-05-24
117
148
 
118
149
  ### Added
119
- - `Ecoportal::API::Errors` namespace
120
- - `Ecoportal::API::Errors::Base` base error class.
121
- - `Ecoportal::API::Errors::TimeOut` error when an api request fails with time out.
122
- - This serves the purpose to allow a client script to re-start the process where it stopped by capturing this specific Error
123
- - `Ecoportal::API::Common::BaseModel::UnlinkedModel` added more description to track down the source of the error.
124
- - `Ecoportal::API::Common::BaseModel#reset!` added parameter `key`, which should try to recover `doc[key]` from `original_doc[key]`
125
- - Thanks to this, you are supposed to be able to do things like:
126
- - `person.account = nil && person.reset!("account")`
127
- - `person.name = nil && person.reset!("name")`
128
- - `Ecoportal::API::V1::People#job` methods to provide more information on failure.
129
- - Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
130
- - `Ecoportal::API::Internal::Account#permissions_merged`
131
- - `Ecoportal::API::Internal::Permissions#person_abilities` (new ability)
132
- - `Ecoportal::API::Internal::Account#user_id`
150
+
151
+ - `Ecoportal::API::Errors` namespace
152
+ - `Ecoportal::API::Errors::Base` base error class.
153
+ - `Ecoportal::API::Errors::TimeOut` error when an api request fails with time out.
154
+ - This serves the purpose to allow a client script to re-start the process where it stopped by capturing this specific Error
155
+ - `Ecoportal::API::Common::BaseModel::UnlinkedModel` added more description to track down the source of the error.
156
+ - `Ecoportal::API::Common::BaseModel#reset!` added parameter `key`, which should try to recover `doc[key]` from `original_doc[key]`
157
+ - Thanks to this, you are supposed to be able to do things like:
158
+ - `person.account = nil && person.reset!("account")`
159
+ - `person.name = nil && person.reset!("name")`
160
+ - `Ecoportal::API::V1::People#job` methods to provide more information on failure.
161
+ - Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
162
+ - `Ecoportal::API::Internal::Account#permissions_merged`
163
+ - `Ecoportal::API::Internal::Permissions#person_abilities` (new ability)
164
+ - `Ecoportal::API::Internal::Account#user_id`
133
165
 
134
166
  ### Fixed
135
- - `Ecoportal::API::Internal::Account`: consistency in setting arrays (`uniq!` & `compact`)
136
- - `#policy_group_ids=`, `#login_provider_ids=`, `#starred_ids=`
137
- - `Ecoportal::API::Common::HashDiff.diff` was including empty `{}` objects
138
- - This change sacrifices the case `account: {}` (which will be also removed from `as_update`), but it should be fine.
167
+
168
+ - `Ecoportal::API::Internal::Account`: consistency in setting arrays (`uniq!` & `compact`)
169
+ - `#policy_group_ids=`, `#login_provider_ids=`, `#starred_ids=`
170
+ - `Ecoportal::API::Common::HashDiff.diff` was including empty `{}` objects
171
+ - This change sacrifices the case `account: {}` (which will be also removed from `as_update`), but it should be fine.
139
172
 
140
173
  ### Changed
141
- - `Ecoportal::API::V1::People#job` to raise specific error on time out `API::Errors::TimeOut`
142
- - Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
143
- - `Ecoportal::API::Internal::Account` **removed** methods: `#permissions_preset`, `#preset` and `#preset=`
144
- - `Ecoportal::API::Internal::Person#account=` added support for `user_id` which should remain unchanged when existing
145
- - **remove** from `as_update` **read-only** data
146
- - `Ecoportal::API::Common::HashDiff.diff` added parameter `:ignore` (`Array`)
147
- - `Ecoportal::API::Common::BaseModel#as_update` added parameter `:ignore`
148
- - `Ecoportal::API::V1::Person#as_update` added method, which ignores `subordinates`
149
- - `Ecoportal::API::Internal::Person#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
150
- - `Ecoportal::API::Internal::Account#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
151
- - `Ecoportal::API::Common::Client` native support for `elastic-apm`
152
- - Via new module `Ecoportal::API::Common::ElasticApmIntegration` with method `log_unexpected_server_error`, which will only log an `UnexpectedServerError` to _ElasticAPM_ if
153
- 1. There's a correct configuration: environmental variables `ELASTIC_APM_KEY` and `ELASTIC_APM_ACCOUNT_ID` are defined
154
- 2. The `Response` from the server gave `code` in the range `5xx` (which are those under server responsibility)
155
- - `Ecoportal::API::Common::Client` added retry logics when `response.status == 5xx`
156
174
 
157
- ## [0.8.2] - 2021-02-24
175
+ - `Ecoportal::API::V1::People#job` to raise specific error on time out `API::Errors::TimeOut`
176
+ - Specific changes due to eP **release `1.5.9.70`** (_Policy Group Abilities_)
177
+ - `Ecoportal::API::Internal::Account` **removed** methods: `#permissions_preset`, `#preset` and `#preset=`
178
+ - `Ecoportal::API::Internal::Person#account=` added support for `user_id` which should remain unchanged when existing
179
+ - **remove** from `as_update` **read-only** data
180
+ - `Ecoportal::API::Common::HashDiff.diff` added parameter `:ignore` (`Array`)
181
+ - `Ecoportal::API::Common::BaseModel#as_update` added parameter `:ignore`
182
+ - `Ecoportal::API::V1::Person#as_update` added method, which ignores `subordinates`
183
+ - `Ecoportal::API::Internal::Person#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
184
+ - `Ecoportal::API::Internal::Account#as_update` added method, which ignores `user_id`, `permissions_merged` and `prefilter`
185
+ - `Ecoportal::API::Common::Client` native support for `elastic-apm`
186
+ - Via new module `Ecoportal::API::Common::ElasticApmIntegration` with method `log_unexpected_server_error`, which will only log an `UnexpectedServerError` to _ElasticAPM_ if
187
+ 1. There's a correct configuration: environmental variables `ELASTIC_APM_KEY` and `ELASTIC_APM_ACCOUNT_ID` are defined
188
+ 2. The `Response` from the server gave `code` in the range `5xx` (which are those under server responsibility)
189
+ - `Ecoportal::API::Common::Client` added retry logics when `response.status == 5xx`
158
190
 
159
- ### Added
191
+ ## [0.8.2] - 2021-02-24
160
192
 
161
193
  ### Fixed
162
- - `Ecoportal::API::V1::Person#filter_tags=` should ignore `nil` values
194
+
195
+ - `Ecoportal::API::V1::Person#filter_tags=` should ignore `nil` values
163
196
 
164
197
  ### Changed
165
- - removed all the namespace under `Ecoportal::API::V2` as that is managed by `ecoportal-api-oozes` gem
166
- - url: https://rubygems.org/gems/ecoportal-api-oozes
167
- - `Ecoportal::API::V1::People.get` should return a `Person` object
168
- - observe that it was returning the `WrappedResponse` (an `Enumerable` helper that works better when getting multiple people).
169
198
 
170
- ## [0.7.5] - 2021-02-12
199
+ - removed all the namespace under `Ecoportal::API::V2` as that is managed by `ecoportal-api-oozes` gem
200
+ - url: <https://rubygems.org/gems/ecoportal-api-oozes>
201
+ - `Ecoportal::API::V1::People.get` should return a `Person` object
202
+ - observe that it was returning the `WrappedResponse` (an `Enumerable` helper that works better when getting multiple people).
171
203
 
172
- ### Added
204
+ ## [0.7.5] - 2021-02-12
173
205
 
174
206
  ### Fixed
175
- - `pretty_print` method was colliding with `pp` module:
176
- - renamed to `Ecoportal::API::Common::BaseModel#print_pretty`
177
- - renamed to `Ecoportal::API::Common::BatchReponse#print_pretty`
178
- - renamed to `Ecoportal::API::Common::Reponse#print_pretty`
179
- - renamed to `Ecoportal::API::Common::WrappedResponse#print_pretty`
207
+
208
+ - `pretty_print` method was colliding with `pp` module:
209
+ - renamed to `Ecoportal::API::Common::BaseModel#print_pretty`
210
+ - renamed to `Ecoportal::API::Common::BatchReponse#print_pretty`
211
+ - renamed to `Ecoportal::API::Common::Reponse#print_pretty`
212
+ - renamed to `Ecoportal::API::Common::WrappedResponse#print_pretty`
180
213
 
181
214
  ### Changed
182
- - forgot to change `Ecoportal::API::VERSION` during last release
183
215
 
184
- ## [0.7.4] - 2021-01-2
216
+ - forgot to change `Ecoportal::API::VERSION` during last release
185
217
 
186
- ### Added
218
+ ## [0.7.4] - 2021-01-2
187
219
 
188
220
  ### Fixed
189
- - changed `compact` to `compact!`:
190
- - `Ecoportal::API::V1::Person#filter_tags=`
191
- - `Ecoportal::API::Internal::Account#policy_group_ids=`
192
- - `Ecoportal::API::Internal::Account#login_provider_ids=`
193
- - `Ecoportal::API::Internal::Account#starred_ids=`
194
221
 
195
- ### Changed
222
+ - changed `compact` to `compact!`:
223
+ - `Ecoportal::API::V1::Person#filter_tags=`
224
+ - `Ecoportal::API::Internal::Account#policy_group_ids=`
225
+ - `Ecoportal::API::Internal::Account#login_provider_ids=`
226
+ - `Ecoportal::API::Internal::Account#starred_ids=`
196
227
 
197
- ## [0.7.3] - 2020-11-30
228
+ ### Changed
198
229
 
199
230
  ### Added
200
231
 
201
232
  ### Fixed
202
- - `Ecoportal::API::V1::Person#email=`: was not showing the incorrect value in the error message
203
- - added `compact` to remove `null` values on:
204
- - `Ecoportal::API::V1::Person#filter_tags=`
205
- - `Ecoportal::API::Internal::Account#policy_group_ids=`
206
- - `Ecoportal::API::Internal::Account#login_provider_ids=`
207
- - `Ecoportal::API::Internal::Account#starred_ids=`
208
-
209
- ### Changed
210
233
 
234
+ - `Ecoportal::API::V1::Person#email=`: was not showing the incorrect value in the error message
235
+ - added `compact` to remove `null` values on:
236
+ - `Ecoportal::API::V1::Person#filter_tags=`
237
+ - `Ecoportal::API::Internal::Account#policy_group_ids=`
238
+ - `Ecoportal::API::Internal::Account#login_provider_ids=`
239
+ - `Ecoportal::API::Internal::Account#starred_ids=`
211
240
 
212
241
  ## [0.7.2] - 2020-10-19
213
242
 
214
243
  ### Added
215
- - `Ecoportal::API::V1::Person#email=`:
216
- - do a minimum validation (no blanks in the email)
217
- - set in lower case (as this is how it's in the server)
244
+
245
+ - `Ecoportal::API::V1::Person#email=`:
246
+ - do a minimum validation (no blanks in the email)
247
+ - set in lower case (as this is how it's in the server)
248
+
218
249
  ### Fixed
219
- - `Ecoportal::API::V1::People#each`: when `silent` it shouldn't print a blank line
220
- - fixed so they return empty array `[]` when `nil`:
221
- - `Ecoportal::API::V1::Person#filter_tags`
222
- - `Ecoportal::API::Internal::Account#policy_group_ids`
223
- - `Ecoportal::API::Internal::Account#login_provider_ids`
224
- - `Ecoportal::API::Internal::Account#starred_ids`
250
+
251
+ - `Ecoportal::API::V1::People#each`: when `silent` it shouldn't print a blank line
252
+ - fixed so they return empty array `[]` when `nil`:
253
+ - `Ecoportal::API::V1::Person#filter_tags`
254
+ - `Ecoportal::API::Internal::Account#policy_group_ids`
255
+ - `Ecoportal::API::Internal::Account#login_provider_ids`
256
+ - `Ecoportal::API::Internal::Account#starred_ids`
257
+
225
258
  ### Changed
226
- - made it so some methods the `Array` with `uniq` values:
227
- - `Ecoportal::API::V1::Person#filter_tags=`
228
- - `Ecoportal::API::Internal::Account#policy_group_ids=`
229
- - made it so it only updates the keys defined in the `Hash` passed to the setter:
230
- - `Ecoportal::API::Internal::Account#permissions_custom=`
231
- - `Ecoportal::API::Internal::Account#preferences=`
232
259
 
260
+ - made it so some methods the `Array` with `uniq` values:
261
+ - `Ecoportal::API::V1::Person#filter_tags=`
262
+ - `Ecoportal::API::Internal::Account#policy_group_ids=`
263
+ - made it so it only updates the keys defined in the `Hash` passed to the setter:
264
+ - `Ecoportal::API::Internal::Account#permissions_custom=`
265
+ - `Ecoportal::API::Internal::Account#preferences=`
233
266
 
234
267
  ## [0.7.1] - 2020-09-30
235
268
 
236
269
  ### Added
237
- - `Ecoportal::API::Internal::Permissions`: **update for new ability `tasks` of ecoPortal release `1.5.3`**
238
- - `Ecoportal::API::V1::People#each`: added keyword argument `silent:` to display download progress
270
+
271
+ - `Ecoportal::API::Internal::Permissions`: **update for new ability `tasks` of ecoPortal release `1.5.3`**
272
+ - `Ecoportal::API::V1::People#each`: added keyword argument `silent:` to display download progress
273
+
239
274
  ### Fixed
240
- - `Ecoportal::API::V1::People#each`: when no block provided, it was creating an `Enumarator` without preserving the parameters (i.e. `:q` or `per_page` were lost)
275
+
276
+ - `Ecoportal::API::V1::People#each`: when no block provided, it was creating an `Enumarator` without preserving the parameters (i.e. `:q` or `per_page` were lost)
241
277
 
242
278
  ## [0.7.0] - 2020-09-11
243
279
 
244
280
  ### Added
245
- - added hook, **private** method `body_data` for child classes to define behaviour on `response.body` to
246
- - `Ecoportal::API::V1::People`
247
- - `Ecoportal::API::Common::BatchOperation`
281
+
282
+ - added hook, **private** method `body_data` for child classes to define behaviour on `response.body` to
283
+ - `Ecoportal::API::V1::People`
284
+ - `Ecoportal::API::Common::BatchOperation`
248
285
 
249
286
  ### Changed
250
- - `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.2`**
251
- - decoupled abilities: `person_core` into `person_core_create`, `person_core_edit`
252
- ### Fixed
253
287
 
288
+ - `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.2`**
289
+ - decoupled abilities: `person_core` into `person_core_create`, `person_core_edit`
254
290
 
255
291
  ## [0.6.0] - 2020-07-14
256
292
 
257
293
  ### Added
258
- - `Ecoportal::API::Common::BaseModel#initial_doc`: `#consolidate!` modifies `original_doc`
259
- - this helper allows to know what was the initial document the object was created with
260
- - `Ecoportal::API::Common::BaseModel#as_update`: added parameter (default: `:last` => compare with `original_doc`)
261
- - calling it with `:total` will compare the current `doc` with the `initial_doc`
294
+
295
+ - `Ecoportal::API::Common::BaseModel#initial_doc`: `#consolidate!` modifies `original_doc`
296
+ - this helper allows to know what was the initial document the object was created with
297
+ - `Ecoportal::API::Common::BaseModel#as_update`: added parameter (default: `:last` => compare with `original_doc`)
298
+ - calling it with `:total` will compare the current `doc` with the `initial_doc`
299
+
262
300
  ### Changed
263
- - `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.0`**
264
- - added abilities: `person_core`, `person_account`, `person_details`
265
- - removed ability: `people`
266
- - renamed `print` to `pretty_print` to avoid overriding `$stdout.print`, on:
267
- - `Ecoportal::API::Common::BaseModel`
268
- - `Ecoportal::API::Common::BatchReponse`
269
- - `Ecoportal::API::Common::Response`
270
- - `Ecoportal::API::Common::WrappedResponse`
301
+
302
+ - `Ecoportal::API::Internal::Permissions`: **update for new abilities of ecoPortal release `1.5.0`**
303
+ - added abilities: `person_core`, `person_account`, `person_details`
304
+ - removed ability: `people`
305
+ - renamed `print` to `pretty_print` to avoid overriding `$stdout.print`, on:
306
+ - `Ecoportal::API::Common::BaseModel`
307
+ - `Ecoportal::API::Common::BatchReponse`
308
+ - `Ecoportal::API::Common::Response`
309
+ - `Ecoportal::API::Common::WrappedResponse`
310
+
271
311
  ### Fixed
272
- - `Ecoportal::API::Internal::Preferences`: **kiosk** settings should default to `false` (`nil`)
312
+
313
+ - `Ecoportal::API::Internal::Preferences`: **kiosk** settings should default to `false` (`nil`)
273
314
 
274
315
  ## [0.5.8] - 2020-06-23
275
316
 
276
- ### Added
277
- ### Changed
278
317
  ### Fixed
279
- - `Ecoportal::API::V1::Person#filter_tags=`: `original_doc["filter_tags"]` is `nil` when creating a person
280
- - `Ecoportal::API::Internal::Account#policy_group_ids=`: `original_doc["account"]` is `nil` when creating a person
281
318
 
319
+ - `Ecoportal::API::V1::Person#filter_tags=`: `original_doc["filter_tags"]` is `nil` when creating a person
320
+ - `Ecoportal::API::Internal::Account#policy_group_ids=`: `original_doc["account"]` is `nil` when creating a person
282
321
 
283
322
  ## [0.5.7] - 2020-06-22
284
323
 
285
324
  ### Added
286
- - `Ecoportal::API::V1::PersonSchema`: added `enable_tags` & `tags` properties
287
- - `Ecoportal::API::Internal::Preferences`: added missing fields for **kiosk**
325
+
326
+ - `Ecoportal::API::V1::PersonSchema`: added `enable_tags` & `tags` properties
327
+ - `Ecoportal::API::Internal::Preferences`: added missing fields for **kiosk**
328
+
288
329
  ### Changed
289
- - `Ecoportal::API::V1::People::JOB_TIMEOUT`: from 1 minute to 3 minutes
290
- - `Ecoportal::API::V1::Person#filter_tags=`: will preserve the original order of the matching tags
291
- * this change is to prevent `as_update` to generate false update positives
292
- - `Ecoportal::API::Internal::Account#policy_group_ids=`: will preserve the original order of the matching ids
293
- * this change is to prevent `as_update` to generate false update positives
330
+
331
+ - `Ecoportal::API::V1::People::JOB_TIMEOUT`: from 1 minute to 3 minutes
332
+ - `Ecoportal::API::V1::Person#filter_tags=`: will preserve the original order of the matching tags
333
+ - this change is to prevent `as_update` to generate false update positives
334
+ - `Ecoportal::API::Internal::Account#policy_group_ids=`: will preserve the original order of the matching ids
335
+ - this change is to prevent `as_update` to generate false update positives
336
+
294
337
  ### Fixed
295
- - `Ecoportal::API::Internal::Preferences`: access `doc` using string keys (not with `symbol` keys)
296
338
 
339
+ - `Ecoportal::API::Internal::Preferences`: access `doc` using string keys (not with `symbol` keys)
297
340
 
298
341
  ## [0.5.6] - 2020-06-08
299
342
 
300
343
  ### Added
301
- - this `CHANGELOG.md` file
302
- - person model: `freemium` core property
303
- ### Changed
304
- ### Fixed
344
+
345
+ - this `CHANGELOG.md` file
346
+ - person model: `freemium` core property
347
+
348
+
@@ -1,5 +1,4 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "ecoportal/api/version"
5
4
 
@@ -13,23 +12,24 @@ Gem::Specification.new do |spec|
13
12
  spec.homepage = "https://www.ecoportal.com"
14
13
  spec.licenses = %w[MIT]
15
14
 
16
- spec.required_ruby_version = '>= 2.7.2'
15
+ spec.metadata['rubygems_mfa_required'] = 'true'
16
+
17
+ spec.required_ruby_version = '>= 3.2.2'
17
18
 
18
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
20
  f.match(%r{^(test|spec|features)/})
20
21
  end
21
22
  spec.bindir = "exe"
22
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
24
  spec.require_paths = ["lib"]
24
25
 
25
- spec.add_development_dependency "bundler", ">= 2.4.12", "< 3"
26
26
  spec.add_development_dependency "rspec", ">= 3.12.0", "< 4"
27
27
  spec.add_development_dependency "rake", ">= 13.1.0", "< 14"
28
28
  spec.add_development_dependency "yard", ">= 0.9.34", "< 1"
29
29
  spec.add_development_dependency "redcarpet", ">= 3.6.0", "< 4"
30
30
  spec.add_development_dependency "pry" , "~> 0.14"
31
31
 
32
- spec.add_dependency 'http', '~> 5.1', "< 6"
33
- spec.add_dependency 'dotenv', '>= 2.8', "< 3"
32
+ spec.add_dependency 'dotenv', '~> 3'
34
33
  spec.add_dependency 'elastic-apm', '>= 4.7', "< 5"
34
+ spec.add_dependency 'http', '~> 5.1', "< 6"
35
35
  end