e-invoice-api 0.27.0 → 0.28.1
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 +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/client.rb +15 -1
- data/lib/e_invoice_api/internal/transport/base_client.rb +2 -0
- data/lib/e_invoice_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e05593f0475251ad873fe1251629bb90527ba6de590de342d0a8a86211f1de90
|
|
4
|
+
data.tar.gz: c580cf984f6a4e79717b5b7d5a0df219f82e6bb23b190e92c0b1bcd603e95a51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fece0c48698954dc13c5ac18961dac9cf3a4c4a2873b615375933ca257249f0a66cc51645167220bf0eb037b0e8ada3cae233978025c2c827739c7195c4b1e6
|
|
7
|
+
data.tar.gz: 31a9cfb9d2bbbf55f5d1033ac04778ef52d4cd6c20f36ba588fd6cada8c09ff800ec8012fd98543099081390962e899b955021f904394fa1132a4ed0c1887933
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.28.1 (2026-05-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.28.0...v0.28.1](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.28.0...v0.28.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **client:** elide content type header on requests without body ([3926952](https://github.com/e-invoice-be/e-invoice-rb/commit/39269529ffcbb927db4a7669db3b62dafcc678a7))
|
|
10
|
+
|
|
11
|
+
## 0.28.0 (2026-04-28)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.27.0...v0.28.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.27.0...v0.28.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* support setting headers via env ([865c12c](https://github.com/e-invoice-be/e-invoice-rb/commit/865c12c7882702abf883e72f578295308850112e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **internal:** more robust bootstrap script ([d6d46ed](https://github.com/e-invoice-be/e-invoice-rb/commit/d6d46ed3774c0a4a4eff971d81d7141c61843333))
|
|
23
|
+
|
|
3
24
|
## 0.27.0 (2026-04-09)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.26.4...v0.27.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.26.4...v0.27.0)
|
data/README.md
CHANGED
data/lib/e_invoice_api/client.rb
CHANGED
|
@@ -76,6 +76,19 @@ module EInvoiceAPI
|
|
|
76
76
|
raise ArgumentError.new("api_key is required, and can be set via environ: \"E_INVOICE_API_KEY\"")
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
headers = {}
|
|
80
|
+
custom_headers_env = ENV["E_INVOICE_CUSTOM_HEADERS"]
|
|
81
|
+
unless custom_headers_env.nil?
|
|
82
|
+
parsed = {}
|
|
83
|
+
custom_headers_env.split("\n").each do |line|
|
|
84
|
+
colon = line.index(":")
|
|
85
|
+
unless colon.nil?
|
|
86
|
+
parsed[line[0...colon].strip] = line[(colon + 1)..].strip
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
headers = parsed.merge(headers)
|
|
90
|
+
end
|
|
91
|
+
|
|
79
92
|
@api_key = api_key.to_s
|
|
80
93
|
|
|
81
94
|
super(
|
|
@@ -83,7 +96,8 @@ module EInvoiceAPI
|
|
|
83
96
|
timeout: timeout,
|
|
84
97
|
max_retries: max_retries,
|
|
85
98
|
initial_retry_delay: initial_retry_delay,
|
|
86
|
-
max_retry_delay: max_retry_delay
|
|
99
|
+
max_retry_delay: max_retry_delay,
|
|
100
|
+
headers: headers
|
|
87
101
|
)
|
|
88
102
|
|
|
89
103
|
@documents = EInvoiceAPI::Resources::Documents.new(client: self)
|
|
@@ -306,6 +306,8 @@ module EInvoiceAPI
|
|
|
306
306
|
EInvoiceAPI::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
headers.delete("content-type") if body.nil?
|
|
310
|
+
|
|
309
311
|
url = EInvoiceAPI::Internal::Util.join_parsed_uri(
|
|
310
312
|
@base_url_components,
|
|
311
313
|
{**req, path: path, query: query}
|
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.
|
|
4
|
+
version: 0.28.1
|
|
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-
|
|
11
|
+
date: 2026-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|