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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a38d68de9f4fc5be15da055a5166c402adbe71d67b9e73213875e28c83b17db6
4
- data.tar.gz: 7e27421ed321f9f6a8b8d0ec2ba38d005a81414401d5fbfbaa434c6a17e8d40d
3
+ metadata.gz: f13939d3936023674a4875f4990132b42c12f3552b84305d53d2ea12ce533bb6
4
+ data.tar.gz: 4376adedc7fd77afc93b56d896749fac1c691946d4af0c422904cf514f862473
5
5
  SHA512:
6
- metadata.gz: 724473a7faa374ac886a4a65cf37fe0168e4f1de0e318be0155f42b525d4ee74252c60a474e5db794c2879792f82f9c912ea2d7385b3a5724ac4d042e08d5362
7
- data.tar.gz: 7af13a9eb19e9e3558bf83072448d561b86e964a61e3c4444638b6c7ceb938a4c84232b95ec74386f10358c8f205cd4a99b54bc9e6f14152b72d87ace7635bfa
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
 
@@ -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.upcase
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItaxCode
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
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: 1.0.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-30 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport