cpf_cnpj 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: af6460ddd8fccffc42d4f642c5a511c01f484a7ca7103d2d5cc4edcc23fbeae6
4
- data.tar.gz: e314c5cf1b043811a0ed804a7634a64f5079e833160385768dd3cd113a02b2d6
3
+ metadata.gz: 39920a466745460c30ee825d79ebea024b9fd2f76ea481d911564406ca651135
4
+ data.tar.gz: 5f32f4fac220fc8768ece5806270974590905b213464f4ab0e72f33e7d615013
5
5
  SHA512:
6
- metadata.gz: 9389e3356414b201c0bd9eeb1eef63e07c1bf869a1fd1fa30c3ef90d105711f466343f3cef8a7ea8899bbdfdfa4586725f10c67022bd7325ee39a8519668f8f2
7
- data.tar.gz: 41c4f3ee6632bc631070ae5879506d4ed78711aa6bb645302aa9b5bf8c9d235e7bdde042268ffe4b3fa412c43434cac00fae03a9dde9fd212609750cfe735495
6
+ metadata.gz: b72011979e87333f55a565bbd999d9e0c14d31936d82d235f2f1981c90374f534d3026154abf053de133e2abc4092c6c12f82e951d9b4bd41d64ba8951859e16
7
+ data.tar.gz: bd0b2ab1c6731d5dd34173e9545b143ec506938b5333ef78835b1d14f0dd48e3d2d991c81ff5a7457693d24baaf0f1fd073200fbd5dac232e8ef10be8b07742d
data/lib/cnpj.rb CHANGED
@@ -7,8 +7,8 @@ class CNPJ
7
7
 
8
8
  attr_reader :number, :strict
9
9
 
10
- REGEX = %r[\A[\dA-Z]{2}\.[\dA-Z]{3}.[\dA-Z]{3}/[\dA-Z]{4}-[\dA-Z]{2}\Z].freeze
11
- VALIDATION_SIZE_REGEX = /^[A-Z\d]{14}$/.freeze
10
+ REGEX = %r[\A[\dA-Z]{2}\.[\dA-Z]{3}.[\dA-Z]{3}/[\dA-Z]{4}-\d{2}\Z].freeze
11
+ VALIDATION_SIZE_REGEX = /^[A-Z\d]{12}\d{2}$/.freeze
12
12
  NUMBER_SIZE = 12
13
13
 
14
14
  DENYLIST = %w[
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CpfCnpj
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
 
7
7
  class CPF
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpf_cnpj
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
  - Nando Vieira