e-invoice-api 0.1.1 → 0.1.3

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: 54b2be0655bb9ebad70e25f972237972451786331002a2a2ccf475d638cc27a7
4
- data.tar.gz: a17784f89dddcc2ad449c6f40a165202725e0a0234d092ec719e33c753e81d32
3
+ metadata.gz: 97cf9266ef511ea8793fef1083f86c57456fdea1d6f6cf4308a4aafda12179ee
4
+ data.tar.gz: 54d81218c99d17691c4bb58ff84bca5c8f1c26953028b11d68aa6b45f176aa8f
5
5
  SHA512:
6
- metadata.gz: 1d4ca19a9ebfe1ac52ff523c0a975e55080156a35374233b1e69e2fbd1fbf3079452ec60a6a255497e28d65f5ac66656fb78a6c833c40a5684b465b3c8060772
7
- data.tar.gz: 538783012ecb98bdd25871f87fa0946f5f2fc2bb7adca14f2295bbbc8f9e17c9ed8335a6dc0aa6389bf2413744132a0abaab626a2db55bc16aa0b8621fdae655
6
+ metadata.gz: 7f13c0d02d9ff969e9aa812960acbda310e00158e9a92fbf40da917be452fd016dd4570770bfb28b7f400b86e82ec2e8b4757eafe3015dac0d7a1d73b0d2ae45
7
+ data.tar.gz: 865534bbf7483032aa8beff0d1f194d68748fe8950216d0b6f9db5c7aa71d3aeccf3a03823e4cc7b73c4273ff226a5d2978d812099a5e14736402dfaea366070
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3 (2025-07-01)
4
+
5
+ Full Changelog: [v0.1.2...v0.1.3](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.1.2...v0.1.3)
6
+
7
+ ### Chores
8
+
9
+ * **ci:** only run for pushes and fork pull requests ([3426465](https://github.com/e-invoice-be/e-invoice-rb/commit/34264655c03d80926f589bd4de11df9b3679a05d))
10
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([af37243](https://github.com/e-invoice-be/e-invoice-rb/commit/af372437732d3edfb00e29bcca82b1b42ee70a94))
11
+ * **internal:** codegen related update ([8e9ab58](https://github.com/e-invoice-be/e-invoice-rb/commit/8e9ab5889454ca9b7e39ab3cbb2febbca9b44b84))
12
+
13
+ ## 0.1.2 (2025-06-27)
14
+
15
+ Full Changelog: [v0.1.1...v0.1.2](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.1.1...v0.1.2)
16
+
17
+ ### Bug Fixes
18
+
19
+ * **ci:** release-doctor — report correct token name ([62a9d81](https://github.com/e-invoice-be/e-invoice-rb/commit/62a9d8128e81a8a52586c8a2b86ecf9785274754))
20
+
21
+
22
+ ### Chores
23
+
24
+ * **internal:** version bump ([6e0e8fb](https://github.com/e-invoice-be/e-invoice-rb/commit/6e0e8fbc03c06489388333fc53e143b27b163aa9))
25
+
3
26
  ## 0.1.1 (2025-06-26)
4
27
 
5
28
  Full Changelog: [v0.1.0...v0.1.1](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.1.0...v0.1.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.1.1"
20
+ gem "e-invoice-api", "~> 0.1.3"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -471,6 +471,7 @@ module EInvoiceAPI
471
471
  self.class.validate!(req)
472
472
  model = req.fetch(:model) { EInvoiceAPI::Internal::Type::Unknown }
473
473
  opts = req[:options].to_h
474
+ unwrap = req[:unwrap]
474
475
  EInvoiceAPI::RequestOptions.validate!(opts)
475
476
  request = build_request(req.except(:options), opts)
476
477
  url = request.fetch(:url)
@@ -487,11 +488,18 @@ module EInvoiceAPI
487
488
  decoded = EInvoiceAPI::Internal::Util.decode_content(response, stream: stream)
488
489
  case req
489
490
  in {stream: Class => st}
490
- st.new(model: model, url: url, status: status, response: response, stream: decoded)
491
+ st.new(
492
+ model: model,
493
+ url: url,
494
+ status: status,
495
+ response: response,
496
+ unwrap: unwrap,
497
+ stream: decoded
498
+ )
491
499
  in {page: Class => page}
492
500
  page.new(client: self, req: req, headers: response, page_data: decoded)
493
501
  else
494
- unwrapped = EInvoiceAPI::Internal::Util.dig(decoded, req[:unwrap])
502
+ unwrapped = EInvoiceAPI::Internal::Util.dig(decoded, unwrap)
495
503
  EInvoiceAPI::Internal::Type::Converter.coerce(model, unwrapped)
496
504
  end
497
505
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
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.1.1
4
+ version: 0.1.3
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-06-26 00:00:00.000000000 Z
11
+ date: 2025-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool