factpulse 3.0.26 → 3.0.28
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 +3 -3
- data/Gemfile.lock +1 -1
- data/lib/factpulse/helpers/client.rb +7 -7
- data/lib/factpulse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c33d79de60a887d08da9a9a2a6e8b1609bfbd3c2f8b3f057ac54417a9091bf98
|
|
4
|
+
data.tar.gz: 43c0691b6ffd7ca83fbb5ba950ff727bdd1bcccb732268ae7de4031ee2961655
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bfa323caf79dd13aefaf1079097a259e93f389c28a472e04a0d22bd28f58d1ef2ba3dd95e0158109327bff513d48f49adcd63756ab431754d0718d9d0b80be8
|
|
7
|
+
data.tar.gz: e1e4b3064b6745f5f790793d35474685e8e492f94fc121a845a38c0114ee730798b9bfbd5725f2cd0ad7e014f4dabe3f1073051a40093d3cdd3b41016096f94c
|
data/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [3.0.
|
|
10
|
+
## [3.0.28] - 2026-01-15
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
- Version initiale du SDK ruby
|
|
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
24
24
|
- Guide d'authentification JWT
|
|
25
25
|
- Configuration avancée (timeout, proxy, debug)
|
|
26
26
|
|
|
27
|
-
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.
|
|
28
|
-
[3.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.28...HEAD
|
|
28
|
+
[3.0.28]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.28
|
data/Gemfile.lock
CHANGED
|
@@ -200,10 +200,10 @@ module FactPulse
|
|
|
200
200
|
ensure_authenticated; response = http_get(URI("#{@api_url}/api/v1/processing/tasks/#{task_id}/status"))
|
|
201
201
|
reset_auth and next if response.code == '401'
|
|
202
202
|
data = JSON.parse(response.body)
|
|
203
|
-
return data['
|
|
204
|
-
if data['
|
|
203
|
+
return data['result'] || {} if data['status'] == 'SUCCESS'
|
|
204
|
+
if data['status'] == 'FAILURE'
|
|
205
205
|
# Format AFNOR: errorMessage, details
|
|
206
|
-
r = data['
|
|
206
|
+
r = data['result'] || {}
|
|
207
207
|
raise FactPulseValidationError.new("Task #{task_id} failed: #{r['errorMessage'] || '?'}", (r['details'] || []).map { |e| ValidationErrorDetail.from_hash(e) })
|
|
208
208
|
end
|
|
209
209
|
sleep(current_interval / 1000.0); current_interval = [current_interval * 1.5, 10000].min
|
|
@@ -297,10 +297,10 @@ module FactPulse
|
|
|
297
297
|
|
|
298
298
|
if sync && data['taskId']
|
|
299
299
|
result = poll_task(data['taskId'], timeout: timeout)
|
|
300
|
-
if result['
|
|
301
|
-
return Base64.decode64(result['
|
|
302
|
-
elsif result['
|
|
303
|
-
return result['
|
|
300
|
+
if result['content_b64']
|
|
301
|
+
return Base64.decode64(result['content_b64'])
|
|
302
|
+
elsif result['content_xml']
|
|
303
|
+
return result['content_xml']
|
|
304
304
|
end
|
|
305
305
|
raise FactPulseValidationError.new("Unexpected result: #{result.keys.join(', ')}")
|
|
306
306
|
end
|
data/lib/factpulse/version.rb
CHANGED