doc_validator 0.1.2 → 1.1.2

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: cf8bf8e39d067d0e109ade37df7e498247de9ba810f04a1572ceb70eedeadc40
4
- data.tar.gz: 65e1565091bc7137d9bc7ed244683d7452b033c568ec1317f15016133006c523
3
+ metadata.gz: 58459876f033f221b1ed558577242fdf2e9ef09deec74e8d776a896efb18af69
4
+ data.tar.gz: 22970e34d65bb563f52d1ddb321fdd73490236fecf6f6bb6c9aa9265fc4082e1
5
5
  SHA512:
6
- metadata.gz: 3411923854210c7b336f52c8e03fd6a231449d2cb017f9c98e35eb7cce2b1d4f022b79e70966f75454b3adbde66b9f6d170210a62b49f2261d136c568d5457e7
7
- data.tar.gz: f5382d4720a616bf834e17768048fdf6006aa59ab11a68ad021d04e93b071c318edecce9715dac5fe66b07e3edd518328218753c70c50e096fc491d7a9d25e99
6
+ metadata.gz: 68751b47365b20fbbcc380deb8bac3cb90638f2d711a5d17a1ec84a811fd4126319b7b85e4ef4a3a05d79d5912d900f2ea7b70035a0381d331d9edd91468a878
7
+ data.tar.gz: f8309f9d327068e4cac2c3e7cbac5a8e6f0f6f1e09b82fc484dc903f82abaae4dfee8cb992199b4101bce41c2b9b980577d4524a5642c0acd9aafabdd12f7d7a
@@ -1,5 +1,5 @@
1
1
  module DocValidator
2
- class CnpjValidator
2
+ class Cnpj
3
3
  def self.valid?(cnpj)
4
4
  # Algoritmo de validação do CNPJ
5
5
  cnpj = cnpj.gsub(/\D/, '') # Remover todos os caracteres não numéricos
@@ -1,5 +1,5 @@
1
1
  module DocValidator
2
- class CpfValidator
2
+ class Cpf
3
3
  def self.valid?(cpf)
4
4
  # Algoritmo de validação do CPF
5
5
  cpf = cpf.gsub(/\D/, '') # Remover todos os caracteres não numéricos
@@ -1,5 +1,5 @@
1
1
  module DocValidator
2
- class RgValidator
2
+ class Rg
3
3
  def self.valid?(rg)
4
4
  # Algoritmo de validação do RG
5
5
  rg = rg.gsub(/\D/, '') # Remover todos os caracteres não numéricos
@@ -1,3 +1,3 @@
1
1
  module DocValidator
2
- VERSION = "0.1.2"
2
+ VERSION = "1.1.2"
3
3
  end
data/lib/doc_validator.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "doc_validator/version"
2
- require "doc_validator/cpf_validator"
3
- require "doc_validator/cnpj_validator"
4
- require "doc_validator/rg_validator"
2
+ require "doc_validator/cpf"
3
+ require "doc_validator/cnpj"
4
+ require "doc_validator/rg"
5
5
 
6
6
  module DocValidator
7
7
  # Aqui você pode incluir métodos gerais, se necessário
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seu Nome
@@ -102,9 +102,9 @@ extra_rdoc_files: []
102
102
  files:
103
103
  - README.md
104
104
  - lib/doc_validator.rb
105
- - lib/doc_validator/cnpj_validator.rb
106
- - lib/doc_validator/cpf_validator.rb
107
- - lib/doc_validator/rg_validator.rb
105
+ - lib/doc_validator/cnpj.rb
106
+ - lib/doc_validator/cpf.rb
107
+ - lib/doc_validator/rg.rb
108
108
  - lib/doc_validator/version.rb
109
109
  homepage: https://github.com/maikondouglas/doc_validator
110
110
  licenses: