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 +4 -4
- data/lib/cnpj.rb +2 -2
- data/lib/cpf_cnpj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39920a466745460c30ee825d79ebea024b9fd2f76ea481d911564406ca651135
|
4
|
+
data.tar.gz: 5f32f4fac220fc8768ece5806270974590905b213464f4ab0e72f33e7d615013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
11
|
-
VALIDATION_SIZE_REGEX = /^[A-Z\d]{
|
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[
|
data/lib/cpf_cnpj/version.rb
CHANGED