itax_code 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/itax_code/parser.rb +1 -1
- data/lib/itax_code/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: f13939d3936023674a4875f4990132b42c12f3552b84305d53d2ea12ce533bb6
|
4
|
+
data.tar.gz: 4376adedc7fd77afc93b56d896749fac1c691946d4af0c422904cf514f862473
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fc657b7422c7c72588c446d53ee18a7dd0b71b0a7b0296a0dfccac79ae7950546f9d01a4e7c738615143c04a294f5a294cd6bffd0aaceb356bdb2a697c86999
|
7
|
+
data.tar.gz: ad681d44a8e93190354b610d51ae3f428cbe0e0d6bdee555c9e3137720417754c1465f514d4f0fdbb1fea165ced2f4a4341e8da0a7662765cdb2b94cdb66e7b5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.0.1](https://github.com/matteoredz/itax-code/compare/v1.0.0...v1.0.1) (2023-08-31)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* NoMethodError undefined method 'upcase' for nil:NilClass ([#27](https://github.com/matteoredz/itax-code/issues/27)) ([15470d1](https://github.com/matteoredz/itax-code/commit/15470d104a8c0c958e24de199243692e88a94b92))
|
9
|
+
|
3
10
|
## [1.0.0](https://github.com/matteoredz/itax-code/compare/v0.4.1...v1.0.0) (2023-08-30)
|
4
11
|
|
5
12
|
|
data/lib/itax_code/parser.rb
CHANGED
@@ -19,7 +19,7 @@ module ItaxCode
|
|
19
19
|
InvalidTaxCodeError = Class.new(Error)
|
20
20
|
|
21
21
|
def initialize(tax_code, utils = Utils.new)
|
22
|
-
@tax_code = tax_code
|
22
|
+
@tax_code = tax_code&.upcase
|
23
23
|
raise NoTaxCodeError if @tax_code.blank?
|
24
24
|
raise InvalidTaxCodeError unless Validator.standard_length?(@tax_code)
|
25
25
|
|
data/lib/itax_code/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Rossi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|