e-invoice-api 0.16.1 → 0.16.2

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: 2ffe13f56327881976bc84702f3ef295e0bfb69448b55830f5456c0bc96a08cd
4
- data.tar.gz: 1c8e291c0a59be982ef4b710136a8d3c665e4bae2712ca52e705ac79cc3352ec
3
+ metadata.gz: 5b406f6e08449a83aa5dbd3ce27916d318ebfd258f5dd7d6c2108263f582d6d9
4
+ data.tar.gz: c18599bc9a690f2b88c341792026ae1ec76d85397f0ccf74b608672e1e7e62f4
5
5
  SHA512:
6
- metadata.gz: 77e4501f640d05c577072df968df337a9c15787c126447550300cb3d4fa66eeec9a2b4259d4087c6a76d8e25da18e5c973833ae1988a1297495730377444b9ce
7
- data.tar.gz: 70e3b8fdf20a4f64c8ac1a9073d6ebb7c4fcd3a35e3d68150602c12e3629b363451f41a58007479c391a9e5e8662cbc93c5bc77613e750ad96fbb595e4f833d8
6
+ metadata.gz: afd59dbb0ee0fac8fa5ba8db1f64ace3b4aec5b845c97ce10ddd8a7db76d942f95c6f128fda9f7395056e1561fb34ca1a86e34fb59d46d1500fb35d1c7bd6a99
7
+ data.tar.gz: 671edc1b1c9377a3aa30de0afc04a547c01672c645e54f06238692119c3dc5487691abcd2a920fde691ef44f88784252643fd65b5e2be94e66c7ed0d2bb4263f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.2 (2025-12-19)
4
+
5
+ Full Changelog: [v0.16.1...v0.16.2](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.16.1...v0.16.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * issue where json.parse errors when receiving HTTP 204 with nobody ([54c9e10](https://github.com/e-invoice-be/e-invoice-rb/commit/54c9e102d0dc79a9d37d21687675fcbe71b1a2c8))
10
+
3
11
  ## 0.16.1 (2025-12-17)
4
12
 
5
13
  Full Changelog: [v0.16.0...v0.16.1](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.16.0...v0.16.1)
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 "e-invoice-api", "~> 0.16.1"
20
+ gem "e-invoice-api", "~> 0.16.2"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -657,7 +657,8 @@ module EInvoiceAPI
657
657
  def decode_content(headers, stream:, suppress_error: false)
658
658
  case (content_type = headers["content-type"])
659
659
  in EInvoiceAPI::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 EInvoiceAPI
667
668
  in EInvoiceAPI::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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.16.1"
4
+ VERSION = "0.16.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e-invoice-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - e-invoice
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-17 00:00:00.000000000 Z
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool