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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60cabc56a3ce46d0538bb280fbfa8730d6eaf93ad9c8b52d8dbc1e01cc0a4d3
4
- data.tar.gz: c55ccb52a7b1f488075b68e427e198c9cc4773b2e7770a45faee2903aaa9f4bc
3
+ metadata.gz: c33d79de60a887d08da9a9a2a6e8b1609bfbd3c2f8b3f057ac54417a9091bf98
4
+ data.tar.gz: 43c0691b6ffd7ca83fbb5ba950ff727bdd1bcccb732268ae7de4031ee2961655
5
5
  SHA512:
6
- metadata.gz: c5218b7d860655677afc61890fb45aa7671a3c6805ac9ad4ce87026e93770836c112bf03560a270d0106aa92b0384ed5462a2bad227a3dbea06fe56c831e5452
7
- data.tar.gz: bac307b11b7aa5e65a8077713358ae89f8e5893234fbafd5878f1d7223e5cd698a2a78bb9c4bda4325fdda27d3bcb06e7cdc838e459c99fefccc70882139c02c
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.26] - 2026-01-15
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.26...HEAD
28
- [3.0.26]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.26
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (3.0.26)
4
+ factpulse (3.0.28)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -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['resultat'] || {} if data['statut'] == 'SUCCESS'
204
- if data['statut'] == 'FAILURE'
203
+ return data['result'] || {} if data['status'] == 'SUCCESS'
204
+ if data['status'] == 'FAILURE'
205
205
  # Format AFNOR: errorMessage, details
206
- r = data['resultat'] || {}
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['contenu_b64']
301
- return Base64.decode64(result['contenu_b64'])
302
- elsif result['contenu_xml']
303
- return result['contenu_xml']
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
@@ -11,5 +11,5 @@ Generator version: 7.19.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FactPulse
14
- VERSION = '3.0.26'
14
+ VERSION = '3.0.28'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factpulse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.26
4
+ version: 3.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator