e-invoice-api 0.2.5 → 0.2.6

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: de3c2c283c888eb3c50885da33575dc4070f649a689eb741d9c917ea8e8f004a
4
- data.tar.gz: 4da6fcc80fb668994728e7a9531b43e054d7517e3e33581e24d1de1aeaaa67bb
3
+ metadata.gz: 5bcf4f70ae56e3c0b8007abe353cced563090d43d8e4269e899682b93219dde7
4
+ data.tar.gz: fbf100155144b66424fcd1deb72daec9100d0f9dc7588422d0894a8250206b21
5
5
  SHA512:
6
- metadata.gz: 234a03ed2d3bf8444ee4167e2bd3a893f666f623bc8e151d847dd69da23eb5509a68c96781bd96f292807e59e3cef542bb260c49d3462807f2ece7f8a8bf2bcc
7
- data.tar.gz: d40f8165cf96375f069483fd753272ebdcc06e740b7e4e7798a062b11eedf930d1fdf13e2aadb701f9a57e9c0aea2bc40925b606c6377948cf88d7fa027b6447
6
+ metadata.gz: f3ac9c1149d6b66acae920e0f5065939342a71f898c66cf9af900bb578dd411639f982331f7865fe969712e69be6f6567932243dcf81bfb5cfb580cc06f5a55c
7
+ data.tar.gz: 3cc18f15ee911189bfdfd0f457d705c30612b670249f87b19229282ddd411df013415f231eb2768dd22b3a146177b7ff6ffc37e991e1d482a2c1a08125558522
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.6 (2025-08-20)
4
+
5
+ Full Changelog: [v0.2.5...v0.2.6](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.2.5...v0.2.6)
6
+
7
+ ### Bug Fixes
8
+
9
+ * bump sorbet version and fix new type errors from the breaking change ([1ecacc2](https://github.com/e-invoice-be/e-invoice-rb/commit/1ecacc2376f4afd0bc8403e97b06e788a73b51ec))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** codegen related update ([990de02](https://github.com/e-invoice-be/e-invoice-rb/commit/990de02fea066ce8beb7a0b8648ff2f0cfd726e5))
15
+
3
16
  ## 0.2.5 (2025-08-10)
4
17
 
5
18
  Full Changelog: [v0.2.4...v0.2.5](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.2.4...v0.2.5)
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.2.5"
20
+ gem "e-invoice-api", "~> 0.2.6"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -193,15 +193,7 @@ module EInvoiceAPI
193
193
  end
194
194
 
195
195
  define_sorbet_constant!(:Request) do
196
- T.type_alias do
197
- {
198
- method: Symbol,
199
- url: URI::Generic,
200
- headers: T::Hash[String, String],
201
- body: T.anything,
202
- deadline: Float
203
- }
204
- end
196
+ T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
205
197
  end
206
198
  end
207
199
  end
@@ -64,14 +64,7 @@ module EInvoiceAPI
64
64
  setter = :"#{name_sym}="
65
65
  api_name = info.fetch(:api_name, name_sym)
66
66
  nilable = info.fetch(:nil?, false)
67
- const = if required && !nilable
68
- info.fetch(
69
- :const,
70
- EInvoiceAPI::Internal::OMIT
71
- )
72
- else
73
- EInvoiceAPI::Internal::OMIT
74
- end
67
+ const = required && !nilable ? info.fetch(:const, EInvoiceAPI::Internal::OMIT) : EInvoiceAPI::Internal::OMIT
75
68
 
76
69
  [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
77
70
 
@@ -244,7 +244,7 @@ module EInvoiceAPI
244
244
  #
245
245
  # @return [String]
246
246
  def uri_origin(uri)
247
- "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}"
247
+ "#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
248
248
  end
249
249
 
250
250
  # @api private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.2.5"
4
+ VERSION = "0.2.6"
5
5
  end
@@ -59,10 +59,10 @@ module EInvoiceAPI
59
59
  end
60
60
 
61
61
  class APIConnectionError < EInvoiceAPI::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
65
+ sig { returns(NilClass) }
66
66
  attr_accessor :body
67
67
 
68
68
  # @api private
@@ -369,7 +369,7 @@ module EInvoiceAPI
369
369
  end
370
370
  attr_accessor :amount
371
371
 
372
- sig { void }
372
+ sig { returns(NilClass) }
373
373
  attr_accessor :date
374
374
 
375
375
  sig { returns(T.nilable(String)) }
@@ -346,7 +346,7 @@ module EInvoiceAPI
346
346
  sig { returns(T.nilable(String)) }
347
347
  attr_accessor :amount
348
348
 
349
- sig { void }
349
+ sig { returns(NilClass) }
350
350
  attr_accessor :date
351
351
 
352
352
  sig { returns(T.nilable(String)) }
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.2.5
4
+ version: 0.2.6
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-08-14 00:00:00.000000000 Z
11
+ date: 2025-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool