ecoportal-api 0.10.6 → 0.10.7
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/CHANGELOG.md +13 -1
- data/lib/ecoportal/api/common/client/elastic_apm_integration.rb +4 -4
- data/lib/ecoportal/api/common/client/error/checks.rb +1 -1
- data/lib/ecoportal/api/common/client/with_retry.rb +1 -1
- data/lib/ecoportal/api/common/client.rb +3 -1
- data/lib/ecoportal/api/common/doc_helpers.rb +0 -1
- data/lib/ecoportal/api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7d949e504087bf41e30ba17c20425eea599e744aae98456ba943f4433dd819e
|
4
|
+
data.tar.gz: c382957de25cce7270caf6fa2615e731fc0aea94f67f43854ef339e97299461d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0a7e3401365dff83f9b40aa6e11a812540748075dbce2592feac30c656096baa331817ba70b010cce951b5ca22f0abc12832192a144deff41ddc5f1cd1fc8cc
|
7
|
+
data.tar.gz: 6ac12ae619ce68ea87819b020b2745f9de443abc90b3985f68123291e419d18e4286a6a3ba41debbe2586856fea1eab46aac572e835bc38e4a14e9bbd1813b7a
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
## [0.10.
|
5
|
+
## [0.10.8] - 2024-11-xx
|
6
6
|
|
7
7
|
### Added
|
8
8
|
|
@@ -10,6 +10,18 @@ All notable changes to this project will be documented in this file.
|
|
10
10
|
|
11
11
|
### Fixed
|
12
12
|
|
13
|
+
## [0.10.7] - 2024-11-21
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
|
17
|
+
- Remove unused code
|
18
|
+
- `Ecoportal::API::Common::Client.new` the `version` argument doesn't default to `v1` but to `nil`.
|
19
|
+
|
20
|
+
### Fixed
|
21
|
+
|
22
|
+
- A couple of errors
|
23
|
+
- Remove missing api key error log when no client `version` is specified.
|
24
|
+
|
13
25
|
## [0.10.6] - 2024-10-28
|
14
26
|
|
15
27
|
### Added
|
@@ -61,10 +61,10 @@ module Ecoportal
|
|
61
61
|
}.tap do |options|
|
62
62
|
# next unless false
|
63
63
|
|
64
|
-
options.merge!({
|
65
|
-
|
66
|
-
|
67
|
-
})
|
64
|
+
# options.merge!({
|
65
|
+
# log_level: ::Logger::DEBUG,
|
66
|
+
# log_path: File.join('log', "elastic_apm.log")
|
67
|
+
# })
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -47,7 +47,7 @@ module Ecoportal
|
|
47
47
|
log_unexpected_server_error(response)
|
48
48
|
|
49
49
|
msg = "Got server error (#{response.status}): #{response.body}\n"
|
50
|
-
msg << "Going to retry (##{i} of #{attempts})"
|
50
|
+
msg << "Going to retry (##{i + 1} of #{attempts})"
|
51
51
|
log(:debug) { msg }
|
52
52
|
|
53
53
|
sleep(delay) if i < attempts
|
@@ -39,7 +39,7 @@ module Ecoportal
|
|
39
39
|
# @param logger [Logger] an object with `Logger` interface to generate logs.
|
40
40
|
# @param deep_logging [Boolean] whether or not batch responses should be logged
|
41
41
|
# @return [Client] an object that holds the configuration of the api connection.
|
42
|
-
def initialize(api_key:, version:
|
42
|
+
def initialize(api_key:, version: nil, host: DEFAULT_HOST, logger: nil, deep_logging: false)
|
43
43
|
@version = version
|
44
44
|
@api_key = api_key
|
45
45
|
@logger = logger
|
@@ -59,7 +59,9 @@ module Ecoportal
|
|
59
59
|
end
|
60
60
|
|
61
61
|
return unless @api_key.nil? || @api_key.match(/\A\W*\z/)
|
62
|
+
return unless version
|
62
63
|
|
64
|
+
byebug
|
63
65
|
log(:error) { "Api-key missing!" }
|
64
66
|
end
|
65
67
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecoportal-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tapio Saarinen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -289,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
289
|
- !ruby/object:Gem::Version
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
|
-
rubygems_version: 3.5.
|
292
|
+
rubygems_version: 3.5.23
|
293
293
|
signing_key:
|
294
294
|
specification_version: 4
|
295
295
|
summary: A collection of helpers for interacting with the ecoPortal MS's various APIs
|