e-invoice-api 0.26.3 → 0.26.4

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: ed62418ed97c47a321bf9f4ea7dd00d908646d19d8cc28f77657335e82f33a8b
4
- data.tar.gz: a90427a28cbafc1d8df8001325657f97862aeebaa8d1041d06df7e59a64072d7
3
+ metadata.gz: 578c3a59e0349ed164cab7de8cb2aba01ec90f1d42b97b4bfb202fbe0dbc727b
4
+ data.tar.gz: 05c14fdb79d32927a05a0e101708de8fa85aa656a6447f5c5d893a0fd4d96a44
5
5
  SHA512:
6
- metadata.gz: a7eabdb33dec0e12ba0dcfca8d505c41696d3914043e4e86a74fdebd4fcf82779a5c35e6f45e5cc0c0281d1116e45f9f8478322e6b9fcfb6801ad0ce1e9eaa43
7
- data.tar.gz: 2d9bd76ecdaf1e86c10b4c399e4520ff405098b0c7ad7dcf2dc3125757b5f0fcdcda361a138f2518720b25955ae32a82651d7baa4df7aabd9edd8763aac8a68d
6
+ metadata.gz: f645ec9563dd8adcd348ed9bf5820ff672d9aabf06dcc7aaaa8ba5f9a9f638011480aa80b867023521339f1eae89f61fe6c145a9a01c8c09a399656b7c1fbf5a
7
+ data.tar.gz: 3fd14537d626916c42008cd72afb90c284378a02490bbfcc1b27050945a29d14254e9e1a7e01d69cd23625625707f8a6d6169ab1af31289c83e8fb7e0fdf584b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.26.4 (2026-04-09)
4
+
5
+ Full Changelog: [v0.26.3...v0.26.4](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.26.3...v0.26.4)
6
+
7
+ ### Bug Fixes
8
+
9
+ * multipart encoding for file arrays ([77874cb](https://github.com/e-invoice-be/e-invoice-rb/commit/77874cb9a28df936f4e019d601874c8f15108349))
10
+
3
11
  ## 0.26.3 (2026-04-01)
4
12
 
5
13
  Full Changelog: [v0.26.2...v0.26.3](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.26.2...v0.26.3)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "e-invoice-api", "~> 0.26.3"
29
+ gem "e-invoice-api", "~> 0.26.4"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -610,6 +610,7 @@ module EInvoiceAPI
610
610
  #
611
611
  # @return [Array(String, Enumerable<String>)]
612
612
  private def encode_multipart_streaming(body)
613
+ # rubocop:disable Style/CaseEquality
613
614
  # RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
614
615
  boundary = SecureRandom.urlsafe_base64(46)
615
616
 
@@ -619,7 +620,7 @@ module EInvoiceAPI
619
620
  in Hash
620
621
  body.each do |key, val|
621
622
  case val
622
- in Array if val.all? { primitive?(_1) }
623
+ in Array if val.all? { primitive?(_1) || EInvoiceAPI::Internal::Type::FileInput === _1 }
623
624
  val.each do |v|
624
625
  write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
625
626
  end
@@ -635,6 +636,7 @@ module EInvoiceAPI
635
636
 
636
637
  fused_io = fused_enum(strio) { closing.each(&:call) }
637
638
  [boundary, fused_io]
639
+ # rubocop:enable Style/CaseEquality
638
640
  end
639
641
 
640
642
  # @api private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.26.3"
4
+ VERSION = "0.26.4"
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.26.3
4
+ version: 0.26.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - e-invoice
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-01 00:00:00.000000000 Z
11
+ date: 2026-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi