itax_code 2.0.4 → 2.0.5

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: 28b67a1393b6940ab8824514b430ecfee7cb9a7eca1208b6f6656b25049d933b
4
- data.tar.gz: 8d2b668cb365b5831cfa2c384ab3b1525fb50f289e7c470310bcb4c963d88217
3
+ metadata.gz: 90c7201460f9631e9a3988ccdd17f97a89fe812a5b4a72ac44bbf693bf56223f
4
+ data.tar.gz: 851ea071923b2e6f71c23754413de6e1314d0cc9b78000249c875cdf730654cc
5
5
  SHA512:
6
- metadata.gz: cda714e70c20caefb01d356b281fac5dd8eb600149ecaaba77ad40dc58240e69bedc63d7259e0b4578724be756f960af07584977f3e90b9539cdb65be1c4167e
7
- data.tar.gz: 877e5c56c488137c377a7a93fe4de8bf1b7ff7f49fbd23a1ed6ce483628d2b919edc2bed32d87eb9cace9987a55743c4f3fb5537a390ac6e1b1cbd93bdc49728
6
+ metadata.gz: 05afbe126082adec3e82c9a2f378a2ca4f9d9f4e2bb290d9a5b12b635c4f68a39794333994af938a0604cf6057831723c1c7799be7f3a13ce8a98d6ca5898c9b
7
+ data.tar.gz: 534e04f07ad761cb4bf543b81b08cd4c5bf2e3eb38f9b04923e438bed3922b5969a6aa63489278e4853aad88354d2cad12ed0595f5306f0d9b33d364acdd1d2b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.5](https://github.com/matteoredz/itax-code/compare/v2.0.4...v2.0.5) (2024-10-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * parsing impossible dates ([#56](https://github.com/matteoredz/itax-code/issues/56)) ([4f5cc91](https://github.com/matteoredz/itax-code/commit/4f5cc91805db82f4195b75f677a95b37935d664d))
9
+
3
10
  ## [2.0.4](https://github.com/matteoredz/itax-code/compare/v2.0.3...v2.0.4) (2024-05-02)
4
11
 
5
12
 
@@ -16,5 +16,6 @@ module ItaxCode
16
16
  InvalidControlInternalNumberError = Class.new(Error)
17
17
  InvalidTaxCodeError = Class.new(Error)
18
18
  NoTaxCodeError = Class.new(Error)
19
+ DateTaxCodeError = Class.new(Error)
19
20
  end
20
21
  end
@@ -84,6 +84,8 @@ module ItaxCode
84
84
 
85
85
  def birthdate
86
86
  @birthdate ||= Date.parse("#{year}-#{month}-#{day}").to_s
87
+ rescue ArgumentError
88
+ raise DateTaxCodeError
87
89
  end
88
90
 
89
91
  def birthplace(src = utils.cities, stop: false)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItaxCode
4
- VERSION = "2.0.4"
4
+ VERSION = "2.0.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itax_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Rossi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-21 00:00:00.000000000 Z
11
+ date: 2024-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv