doc_validator 1.1.2 → 1.1.4

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: 58459876f033f221b1ed558577242fdf2e9ef09deec74e8d776a896efb18af69
4
- data.tar.gz: 22970e34d65bb563f52d1ddb321fdd73490236fecf6f6bb6c9aa9265fc4082e1
3
+ metadata.gz: d8f2b6d9d4c60e578f98a15e241ff7e8bad3150e18b947dee9aa804901ebba31
4
+ data.tar.gz: 91d73ec60c4bf7f4f0aa83607db0b11de508b33106a829be926cea739d8736fb
5
5
  SHA512:
6
- metadata.gz: 68751b47365b20fbbcc380deb8bac3cb90638f2d711a5d17a1ec84a811fd4126319b7b85e4ef4a3a05d79d5912d900f2ea7b70035a0381d331d9edd91468a878
7
- data.tar.gz: f8309f9d327068e4cac2c3e7cbac5a8e6f0f6f1e09b82fc484dc903f82abaae4dfee8cb992199b4101bce41c2b9b980577d4524a5642c0acd9aafabdd12f7d7a
6
+ metadata.gz: 26c17028595a225e6fd55fb60ecd08d59294ec7cba0a342c9d3204ff2c182137f19ac73649477d2e268bb5b7f27c2cc33d4ea0ef481439254761a61a3e4878b6
7
+ data.tar.gz: c0a42a789c476a68a1772b8c47af555718a9d2cf7da9b03391bb1c8b85d7efd00b3c1c2e13b22dfc6946bb280128d680c3767a3ed4c2c0f10d09ef7d2913dc95
data/README.md CHANGED
@@ -30,14 +30,14 @@ gem install doc_validator
30
30
  Para validar um CPF, use o método `.valid?`:
31
31
 
32
32
  ```ruby
33
- DocValidator::CpfValidator.valid?("123.456.789-09") # Retorna true
34
- DocValidator::CpfValidator.valid?("112.345.678-900") # Retorna false
33
+ DocValidator::Cpf.valid?("123.456.789-09") # Retorna true
34
+ DocValidator::Cpf.valid?("112.345.678-900") # Retorna false
35
35
  ```
36
36
 
37
37
  Para formatar um CPF, use o método `.format`:
38
38
 
39
39
  ```ruby
40
- DocValidator::CpfValidator.format("12345678909") # Retorna "123.456.789-09"
40
+ DocValidator::Cpf.format("12345678909") # Retorna "123.456.789-09"
41
41
  ```
42
42
 
43
43
  ### Validação de CNPJ
@@ -45,14 +45,14 @@ DocValidator::CpfValidator.format("12345678909") # Retorna "123.456.789-09"
45
45
  Para validar um CNPJ, use o método `.valid?`:
46
46
 
47
47
  ```ruby
48
- DocValidator::CnpjValidator.valid?("12.345.678/0001-95") # Retorna true
49
- DocValidator::CnpjValidator.valid?("123.456.789-09") # Retorna false
48
+ DocValidator::Cnpj.valid?("12.345.678/0001-95") # Retorna true
49
+ DocValidator::Cnpj.valid?("123.456.789-09") # Retorna false
50
50
  ```
51
51
 
52
52
  Para formatar um CNPJ, use o método `.format`:
53
53
 
54
54
  ```ruby
55
- DocValidator::CnpjValidator.format("12345678000195") # Retorna "12.345.678/0001-95"
55
+ DocValidator::Cnpj.format("12345678000195") # Retorna "12.345.678/0001-95"
56
56
  ```
57
57
 
58
58
  ### Validação de RG
@@ -60,14 +60,14 @@ DocValidator::CnpjValidator.format("12345678000195") # Retorna "12.345.678/0001
60
60
  Para validar um RG, use o método `.valid?`:
61
61
 
62
62
  ```ruby
63
- DocValidator::RgValidator.valid?("12.345.678/0001-95") # Retorna true
64
- DocValidator::RgValidator.valid?("11.234.567/0001-000") # Retorna false
63
+ DocValidator::Rg.valid?("12.345.678/0001-95") # Retorna true
64
+ DocValidator::Rg.valid?("11.234.567/0001-000") # Retorna false
65
65
  ```
66
66
 
67
67
  Para formatar um RG, use o método `.format`:
68
68
 
69
69
  ```ruby
70
- DocValidator::RgValidator.format("12345678000195") # Retorna "12.345.678/0001-95"
70
+ DocValidator::Rg.format("12345678000195") # Retorna "12.345.678/0001-95"
71
71
  ```
72
72
 
73
73
  ### Validação de CNH
@@ -1,3 +1,3 @@
1
1
  module DocValidator
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
- - Seu Nome
7
+ - Maikon Douglas
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-10 00:00:00.000000000 Z
10
+ date: 2025-03-11 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rspec
@@ -94,8 +94,7 @@ dependencies:
94
94
  - !ruby/object:Gem::Version
95
95
  version: '2.0'
96
96
  description: Essa gem valida e formata documentos como CPF, CNPJ, RG, CNH e outros.
97
- email:
98
- - seuemail@exemplo.com
97
+ email: maikonconta0@gmail.com
99
98
  executables: []
100
99
  extensions: []
101
100
  extra_rdoc_files: []
@@ -109,7 +108,10 @@ files:
109
108
  homepage: https://github.com/maikondouglas/doc_validator
110
109
  licenses:
111
110
  - MIT
112
- metadata: {}
111
+ metadata:
112
+ homepage_uri: https://github.com/maikondouglas/doc_validator
113
+ source_code_uri: https://github.com/maikondouglas/doc_validator
114
+ bug_tracker_uri: https://github.com/maikondouglas/doc_validator/issues
113
115
  rdoc_options: []
114
116
  require_paths:
115
117
  - lib
@@ -117,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
119
  requirements:
118
120
  - - ">="
119
121
  - !ruby/object:Gem::Version
120
- version: '0'
122
+ version: '2.7'
121
123
  required_rubygems_version: !ruby/object:Gem::Requirement
122
124
  requirements:
123
125
  - - ">="