ecoportal-api-v2 0.8.23 → 0.8.24
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 +9 -3
- data/lib/ecoportal/api/v2/page.rb +1 -1
- data/lib/ecoportal/api/v2/registers.rb +4 -3
- data/lib/ecoportal/api/v2_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb1c34f7a92da53d66d3274e36401d853d62054e53706515dcc62d4f5a5447e7
|
|
4
|
+
data.tar.gz: 6443519538afe51f6e41544ad4be7ca652379fb1b812add8a45655e00467b853
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e55afda3b52bc454997937bb18a523a993069497df4aa2104d434bf345f992e2ea0a08ecc06db0911427ccc634d79cbeddc1f2c7b6ef6bd929868807d06ebec8
|
|
7
|
+
data.tar.gz: 143157a46e72041e54aace3f0c28a9f056295c2ddd41e3358a3472a4e6b447faa2486a8782fe3961b42e7f93627d88749af68da1c3d753ca1bc85273a87b2abc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## [0.8.
|
|
4
|
+
## [0.8.24] - 2022-01-05
|
|
5
5
|
|
|
6
6
|
### Added
|
|
7
|
-
- `Ecoportal::API::V2::Registers#search` added more feedback on what is going on
|
|
8
|
-
|
|
9
7
|
### Changed
|
|
8
|
+
|
|
10
9
|
### Fixed
|
|
10
|
+
- `Ecoportal::API::V2::Page#stages?` do not generate an object to this purpose
|
|
11
|
+
- `Ecoportal::API::V2::Registers#search` fix typo in print feedback
|
|
12
|
+
|
|
13
|
+
## [0.8.23] - 2021-12-24
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- `Ecoportal::API::V2::Registers#search` added more feedback on what is going on
|
|
11
17
|
|
|
12
18
|
## [0.8.22] - 2021-12-23
|
|
13
19
|
|
|
@@ -62,7 +62,7 @@ module Ecoportal
|
|
|
62
62
|
total ||= data["total"]
|
|
63
63
|
if total != data["total"]
|
|
64
64
|
msg = "Change of total in search results. Probably due to changes that affect the filter (register: #{register_id}):"
|
|
65
|
-
print_search_status(msg, total, results, cursor_id, data)
|
|
65
|
+
print_search_status(msg, total, results, cursor_id, data, options)
|
|
66
66
|
#total = data["total"]
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -79,7 +79,7 @@ module Ecoportal
|
|
|
79
79
|
break if total <= results
|
|
80
80
|
unless data["cursor_id"]
|
|
81
81
|
msg = "Possible error... finishing search for lack of cursor_id in response:"
|
|
82
|
-
print_search_status(msg, total, results, cursor_id, data)
|
|
82
|
+
print_search_status(msg, total, results, cursor_id, data, options)
|
|
83
83
|
end
|
|
84
84
|
break unless (cursor_id = data["cursor_id"])
|
|
85
85
|
end
|
|
@@ -103,9 +103,10 @@ module Ecoportal
|
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
def print_search_status(msg, total, results, cursor_id, data)
|
|
106
|
+
def print_search_status(msg, total, results, cursor_id, data, options)
|
|
107
107
|
msg += "\n"
|
|
108
108
|
msg += " • Original total: #{total}\n"
|
|
109
|
+
msg += " • Current total: #{data&.dig("total")}\n"
|
|
109
110
|
msg += " • Total results retrieved: #{results}\n"
|
|
110
111
|
msg += " • Cursor id: #{cursor_id} (#{Base64.decode64(cursor_id)})\n"
|
|
111
112
|
msg += " • Current cursor results: #{data["results"]&.length}\n"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ecoportal-api-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oscar Segura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|