dataleon 0.1.0.pre.alpha.10 → 0.1.0.pre.alpha.12

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: a2795d85c7303758b4e1d12cec0605a0063f19b2879ef69d75c422f6b56d43cf
4
- data.tar.gz: b9b388c3cfa76978879e48cd6232ed31215ea089720c20176b594d93e094d24f
3
+ metadata.gz: 0b7f9c3da812ce58e4ea5e69f55c31196be4358fccc6eae737f1456fde6233a9
4
+ data.tar.gz: f4cbc2604121a18ea2da6a03916ccc2bf9111473c87dc11981cf8aa735d6d5b4
5
5
  SHA512:
6
- metadata.gz: 2c98d4cd07d3634aee0a82e1b06c2446c597ca31b464c9f0226a270f2ed4a34903acb6b2dc4f2b80bf4c62c333831d55582968fc0cc787511721cc10334ab574
7
- data.tar.gz: a2c53170a2d87b5ef3d3fa3024ff5915d5c91d60246a1211f84aad48f470b7c93b24d2304afbf74b8b3d15cf5e29aa10993e3ed028fa7282fa4d798a864f92a4
6
+ metadata.gz: e72a284f717643322f28147a93a8684ddf63d7883d638e13cb9b47aff6f19ef8a8530fbf38c3629c31f26985c43d1380a8697acdddb880334e3b7c69cad41ced
7
+ data.tar.gz: d7da3645aff74cb4d5b9b86b3faed27a1fbeeb6ee476cee1f25b0eb9698ed303b9dede6134b918890050cc472e54399df678c9823138dd0a61f00ef3bd003e68
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.12 (2026-01-05)
4
+
5
+ Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/dataleonlabs/dataleon-ruby/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b65ff9a](https://github.com/dataleonlabs/dataleon-ruby/commit/b65ff9aa826ee0ecf791c317c9db158b50ad6c4d))
10
+
11
+ ## 0.1.0-alpha.11 (2025-12-19)
12
+
13
+ Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/dataleonlabs/dataleon-ruby/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
14
+
15
+ ### Bug Fixes
16
+
17
+ * issue where json.parse errors when receiving HTTP 204 with nobody ([2bb84e5](https://github.com/dataleonlabs/dataleon-ruby/commit/2bb84e59e28fb9af2bbbde1fa782a46125598c8e))
18
+
3
19
  ## 0.1.0-alpha.10 (2025-12-17)
4
20
 
5
21
  Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/dataleonlabs/dataleon-ruby/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "dataleon", "~> 0.1.0.pre.alpha.10"
20
+ gem "dataleon", "~> 0.1.0.pre.alpha.12"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -657,7 +657,8 @@ module Dataleon
657
657
  def decode_content(headers, stream:, suppress_error: false)
658
658
  case (content_type = headers["content-type"])
659
659
  in Dataleon::Internal::Util::JSON_CONTENT
660
- json = stream.to_a.join
660
+ return nil if (json = stream.to_a.join).empty?
661
+
661
662
  begin
662
663
  JSON.parse(json, symbolize_names: true)
663
664
  rescue JSON::ParserError => e
@@ -667,7 +668,11 @@ module Dataleon
667
668
  in Dataleon::Internal::Util::JSONL_CONTENT
668
669
  lines = decode_lines(stream)
669
670
  chain_fused(lines) do |y|
670
- lines.each { y << JSON.parse(_1, symbolize_names: true) }
671
+ lines.each do
672
+ next if _1.empty?
673
+
674
+ y << JSON.parse(_1, symbolize_names: true)
675
+ end
671
676
  end
672
677
  in %r{^text/event-stream}
673
678
  lines = decode_lines(stream)
@@ -353,6 +353,12 @@ module Dataleon
353
353
  # @return [String, nil]
354
354
  optional :country, String
355
355
 
356
+ # @!attribute entitlement_date
357
+ # Date of entitlement or validity start date, in YYYY-MM-DD format.
358
+ #
359
+ # @return [String, nil]
360
+ optional :entitlement_date, String
361
+
356
362
  # @!attribute expiration_date
357
363
  # Expiration date of the document, in YYYY-MM-DD format.
358
364
  #
@@ -413,7 +419,7 @@ module Dataleon
413
419
  # @return [String, nil]
414
420
  optional :type, String
415
421
 
416
- # @!method initialize(id: nil, back_document_signed_url: nil, birth_place: nil, birthday: nil, country: nil, expiration_date: nil, first_name: nil, front_document_signed_url: nil, gender: nil, issue_date: nil, last_name: nil, mrz_line_1: nil, mrz_line_2: nil, mrz_line_3: nil, type: nil)
422
+ # @!method initialize(id: nil, back_document_signed_url: nil, birth_place: nil, birthday: nil, country: nil, entitlement_date: nil, expiration_date: nil, first_name: nil, front_document_signed_url: nil, gender: nil, issue_date: nil, last_name: nil, mrz_line_1: nil, mrz_line_2: nil, mrz_line_3: nil, type: nil)
417
423
  # Reference to the individual's identity document.
418
424
  #
419
425
  # @param id [String] Unique identifier for the document.
@@ -426,6 +432,8 @@ module Dataleon
426
432
  #
427
433
  # @param country [String] Country code issuing the document (ISO 3166-1 alpha-2).
428
434
  #
435
+ # @param entitlement_date [String] Date of entitlement or validity start date, in YYYY-MM-DD format.
436
+ #
429
437
  # @param expiration_date [String] Expiration date of the document, in YYYY-MM-DD format.
430
438
  #
431
439
  # @param first_name [String] First name as shown on the document.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dataleon
4
- VERSION = "0.1.0.pre.alpha.10"
4
+ VERSION = "0.1.0.pre.alpha.12"
5
5
  end
@@ -593,6 +593,13 @@ module Dataleon
593
593
  sig { params(country: String).void }
594
594
  attr_writer :country
595
595
 
596
+ # Date of entitlement or validity start date, in YYYY-MM-DD format.
597
+ sig { returns(T.nilable(String)) }
598
+ attr_reader :entitlement_date
599
+
600
+ sig { params(entitlement_date: String).void }
601
+ attr_writer :entitlement_date
602
+
596
603
  # Expiration date of the document, in YYYY-MM-DD format.
597
604
  sig { returns(T.nilable(String)) }
598
605
  attr_reader :expiration_date
@@ -668,6 +675,7 @@ module Dataleon
668
675
  birth_place: String,
669
676
  birthday: String,
670
677
  country: String,
678
+ entitlement_date: String,
671
679
  expiration_date: String,
672
680
  first_name: String,
673
681
  front_document_signed_url: String,
@@ -691,6 +699,8 @@ module Dataleon
691
699
  birthday: nil,
692
700
  # Country code issuing the document (ISO 3166-1 alpha-2).
693
701
  country: nil,
702
+ # Date of entitlement or validity start date, in YYYY-MM-DD format.
703
+ entitlement_date: nil,
694
704
  # Expiration date of the document, in YYYY-MM-DD format.
695
705
  expiration_date: nil,
696
706
  # First name as shown on the document.
@@ -722,6 +732,7 @@ module Dataleon
722
732
  birth_place: String,
723
733
  birthday: String,
724
734
  country: String,
735
+ entitlement_date: String,
725
736
  expiration_date: String,
726
737
  first_name: String,
727
738
  front_document_signed_url: String,
@@ -303,6 +303,7 @@ module Dataleon
303
303
  birth_place: String,
304
304
  birthday: String,
305
305
  country: String,
306
+ entitlement_date: String,
306
307
  expiration_date: String,
307
308
  first_name: String,
308
309
  front_document_signed_url: String,
@@ -336,6 +337,10 @@ module Dataleon
336
337
 
337
338
  def country=: (String) -> String
338
339
 
340
+ attr_reader entitlement_date: String?
341
+
342
+ def entitlement_date=: (String) -> String
343
+
339
344
  attr_reader expiration_date: String?
340
345
 
341
346
  def expiration_date=: (String) -> String
@@ -380,6 +385,7 @@ module Dataleon
380
385
  ?birth_place: String,
381
386
  ?birthday: String,
382
387
  ?country: String,
388
+ ?entitlement_date: String,
383
389
  ?expiration_date: String,
384
390
  ?first_name: String,
385
391
  ?front_document_signed_url: String,
@@ -398,6 +404,7 @@ module Dataleon
398
404
  birth_place: String,
399
405
  birthday: String,
400
406
  country: String,
407
+ entitlement_date: String,
401
408
  expiration_date: String,
402
409
  first_name: String,
403
410
  front_document_signed_url: String,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dataleon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.10
4
+ version: 0.1.0.pre.alpha.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dataleon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-17 00:00:00.000000000 Z
11
+ date: 2026-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool