bra_document_validation 1.0.2 → 1.1.0
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 +4 -4
- data/.github/workflows/main.yml +29 -0
- data/.mise.toml +2 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +67 -35
- data/bin/console +1 -3
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bra_document_validation.gemspec +3 -4
- data/lib/bra_document_validation/version.rb +1 -1
- metadata +11 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec08fe50acbaf14c9a29341bed95128f5e842902fe64637dcf2b91cc3a3a723c
|
|
4
|
+
data.tar.gz: 032a15b71e33bc2150df270e91701f64966ac6c72176b23329fd59c8f406c19b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '086401b9a0813aaa45327cbeb628dad6c7171d9dfe0b133bbf39b0169fcebff165e593196ba6787e75c9595cac697d4183000ab848498478bafa20edece0d83e'
|
|
7
|
+
data.tar.gz: f47e3d9fb3470016ed7b7c94f8b97a6eabe5a62ef59b82ff45357bdbd74cfff1b30ed62b31f272677f8d5e95ad246bafec91d75ae4fb05e9190392c389ba27ff
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
name: Ruby ${{ matrix.ruby }}
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
ruby:
|
|
17
|
+
- '3.3.7'
|
|
18
|
+
- '3.4.2'
|
|
19
|
+
- '4.0.0'
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v5
|
|
23
|
+
- name: Set up Ruby
|
|
24
|
+
uses: ruby/setup-ruby@v1
|
|
25
|
+
with:
|
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
|
27
|
+
bundler-cache: true
|
|
28
|
+
- name: Run the default task
|
|
29
|
+
run: bundle exec rake
|
data/.mise.toml
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.1.0] - 2026-01-14
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Update `bra_documents` dependency to `>= 1.1.0` for alphanumeric CNPJ support
|
|
16
|
+
- Update CNPJ validator to support alphanumeric format as per new Brazilian Federal Revenue regulation (effective July 2026)
|
|
17
|
+
- Reference: https://www.gov.br/receitafederal/pt-br/assuntos/noticias/2024/outubro/cnpj-tera-letras-e-numeros-a-partir-de-julho-de-2026
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Add IRB as development dependency
|
|
22
|
+
- Add binstubs for rake and rspec
|
|
23
|
+
|
|
11
24
|
## [1.0.2] - 2022-01-04
|
|
12
25
|
|
|
13
26
|
### Removed
|
data/Gemfile.lock
CHANGED
|
@@ -1,59 +1,91 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bra_document_validation (1.0
|
|
4
|
+
bra_document_validation (1.1.0)
|
|
5
5
|
activemodel (>= 4.0)
|
|
6
|
-
bra_documents (>= 1.0
|
|
6
|
+
bra_documents (>= 1.1.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activemodel (
|
|
12
|
-
activesupport (=
|
|
13
|
-
activesupport (
|
|
14
|
-
|
|
11
|
+
activemodel (8.1.1)
|
|
12
|
+
activesupport (= 8.1.1)
|
|
13
|
+
activesupport (8.1.1)
|
|
14
|
+
base64
|
|
15
|
+
bigdecimal
|
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
17
|
+
connection_pool (>= 2.2.5)
|
|
18
|
+
drb
|
|
15
19
|
i18n (>= 1.6, < 2)
|
|
20
|
+
json
|
|
21
|
+
logger (>= 1.4.2)
|
|
16
22
|
minitest (>= 5.1)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
securerandom (>= 0.3)
|
|
24
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
25
|
+
uri (>= 0.13.1)
|
|
26
|
+
base64 (0.3.0)
|
|
27
|
+
bigdecimal (4.0.1)
|
|
28
|
+
bra_documents (1.1.0)
|
|
29
|
+
concurrent-ruby (1.3.6)
|
|
30
|
+
connection_pool (3.0.2)
|
|
31
|
+
date (3.5.1)
|
|
32
|
+
diff-lcs (1.6.2)
|
|
33
|
+
drb (2.2.3)
|
|
34
|
+
erb (6.0.1)
|
|
35
|
+
i18n (1.14.8)
|
|
23
36
|
concurrent-ruby (~> 1.0)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
io-console (0.8.2)
|
|
38
|
+
irb (1.16.0)
|
|
39
|
+
pp (>= 0.6.0)
|
|
40
|
+
rdoc (>= 4.0.0)
|
|
41
|
+
reline (>= 0.4.2)
|
|
42
|
+
json (2.18.0)
|
|
43
|
+
logger (1.7.0)
|
|
44
|
+
minitest (6.0.1)
|
|
45
|
+
prism (~> 1.5)
|
|
46
|
+
pp (0.6.3)
|
|
47
|
+
prettyprint
|
|
48
|
+
prettyprint (0.2.0)
|
|
49
|
+
prism (1.7.0)
|
|
50
|
+
psych (5.3.1)
|
|
51
|
+
date
|
|
52
|
+
stringio
|
|
53
|
+
rake (13.3.1)
|
|
54
|
+
rdoc (7.1.0)
|
|
55
|
+
erb
|
|
56
|
+
psych (>= 4.0.0)
|
|
57
|
+
tsort
|
|
58
|
+
reline (0.6.3)
|
|
59
|
+
io-console (~> 0.5)
|
|
60
|
+
rspec (3.13.2)
|
|
61
|
+
rspec-core (~> 3.13.0)
|
|
62
|
+
rspec-expectations (~> 3.13.0)
|
|
63
|
+
rspec-mocks (~> 3.13.0)
|
|
64
|
+
rspec-core (3.13.6)
|
|
65
|
+
rspec-support (~> 3.13.0)
|
|
66
|
+
rspec-expectations (3.13.5)
|
|
39
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
-
rspec-support (~> 3.
|
|
41
|
-
rspec-mocks (3.
|
|
68
|
+
rspec-support (~> 3.13.0)
|
|
69
|
+
rspec-mocks (3.13.7)
|
|
42
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
|
-
rspec-support (~> 3.
|
|
44
|
-
rspec-support (3.
|
|
45
|
-
|
|
71
|
+
rspec-support (~> 3.13.0)
|
|
72
|
+
rspec-support (3.13.6)
|
|
73
|
+
securerandom (0.4.1)
|
|
74
|
+
stringio (3.2.0)
|
|
75
|
+
tsort (0.2.0)
|
|
76
|
+
tzinfo (2.0.6)
|
|
46
77
|
concurrent-ruby (~> 1.0)
|
|
78
|
+
uri (1.1.1)
|
|
47
79
|
|
|
48
80
|
PLATFORMS
|
|
49
81
|
ruby
|
|
82
|
+
x86_64-darwin-24
|
|
50
83
|
|
|
51
84
|
DEPENDENCIES
|
|
52
85
|
bra_document_validation!
|
|
53
|
-
|
|
54
|
-
pry-nav
|
|
86
|
+
irb
|
|
55
87
|
rake
|
|
56
88
|
rspec
|
|
57
89
|
|
|
58
90
|
BUNDLED WITH
|
|
59
|
-
|
|
91
|
+
4.0.3
|
data/bin/console
CHANGED
|
@@ -7,8 +7,6 @@ require 'bra_document_validation'
|
|
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
|
8
8
|
|
|
9
9
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
require 'pry'
|
|
11
|
-
require 'pry-nav'
|
|
12
10
|
|
|
13
11
|
require 'irb'
|
|
14
|
-
IRB.start
|
|
12
|
+
IRB.start
|
data/bin/rake
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rake' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
|
+
|
|
13
|
+
require "rubygems"
|
|
14
|
+
require "bundler/setup"
|
|
15
|
+
|
|
16
|
+
load Gem.bin_path("rake", "rake")
|
data/bin/rspec
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
|
+
|
|
13
|
+
require "rubygems"
|
|
14
|
+
require "bundler/setup"
|
|
15
|
+
|
|
16
|
+
load Gem.bin_path("rspec-core", "rspec")
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.description = %q{We can validate CPF and CNPJ formats and verifying digits.}
|
|
11
11
|
spec.homepage = 'https://github.com/bvicenzo/bra_document_validation'
|
|
12
12
|
spec.license = 'MIT'
|
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new('>=
|
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.3.0')
|
|
14
14
|
|
|
15
15
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
|
16
16
|
|
|
@@ -28,10 +28,9 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.require_paths = ['lib']
|
|
29
29
|
|
|
30
30
|
spec.add_runtime_dependency 'activemodel', '>= 4.0'
|
|
31
|
-
spec.add_runtime_dependency 'bra_documents', '>= 1.0
|
|
31
|
+
spec.add_runtime_dependency 'bra_documents', '>= 1.1.0'
|
|
32
32
|
|
|
33
|
-
spec.add_development_dependency '
|
|
34
|
-
spec.add_development_dependency 'pry-nav'
|
|
33
|
+
spec.add_development_dependency 'irb'
|
|
35
34
|
spec.add_development_dependency 'rake'
|
|
36
35
|
spec.add_development_dependency 'rspec'
|
|
37
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bra_document_validation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bruno Vicenzo
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activemodel
|
|
@@ -30,30 +29,16 @@ dependencies:
|
|
|
30
29
|
requirements:
|
|
31
30
|
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.0
|
|
32
|
+
version: 1.1.0
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.0
|
|
39
|
+
version: 1.1.0
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: pry-nav
|
|
41
|
+
name: irb
|
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
|
58
43
|
requirements:
|
|
59
44
|
- - ">="
|
|
@@ -102,7 +87,9 @@ extensions: []
|
|
|
102
87
|
extra_rdoc_files: []
|
|
103
88
|
files:
|
|
104
89
|
- ".github/dependabot.yml"
|
|
90
|
+
- ".github/workflows/main.yml"
|
|
105
91
|
- ".gitignore"
|
|
92
|
+
- ".mise.toml"
|
|
106
93
|
- ".rspec"
|
|
107
94
|
- ".travis.yml"
|
|
108
95
|
- CHANGELOG.md
|
|
@@ -112,6 +99,8 @@ files:
|
|
|
112
99
|
- README.md
|
|
113
100
|
- Rakefile
|
|
114
101
|
- bin/console
|
|
102
|
+
- bin/rake
|
|
103
|
+
- bin/rspec
|
|
115
104
|
- bin/setup
|
|
116
105
|
- bra_document_validation.gemspec
|
|
117
106
|
- lib/bra_document_validation.rb
|
|
@@ -127,7 +116,6 @@ metadata:
|
|
|
127
116
|
homepage_uri: https://github.com/bvicenzo/bra_document_validation
|
|
128
117
|
source_code_uri: https://github.com/bvicenzo/bra_document_validation
|
|
129
118
|
changelog_uri: https://github.com/bvicenzo/bra_document_validation/blob/master/CHANGELOG.md
|
|
130
|
-
post_install_message:
|
|
131
119
|
rdoc_options: []
|
|
132
120
|
require_paths:
|
|
133
121
|
- lib
|
|
@@ -135,15 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
135
123
|
requirements:
|
|
136
124
|
- - ">="
|
|
137
125
|
- !ruby/object:Gem::Version
|
|
138
|
-
version:
|
|
126
|
+
version: 3.3.0
|
|
139
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
128
|
requirements:
|
|
141
129
|
- - ">="
|
|
142
130
|
- !ruby/object:Gem::Version
|
|
143
131
|
version: '0'
|
|
144
132
|
requirements: []
|
|
145
|
-
rubygems_version:
|
|
146
|
-
signing_key:
|
|
133
|
+
rubygems_version: 4.0.3
|
|
147
134
|
specification_version: 4
|
|
148
135
|
summary: This gem add ActiveModel validations to Brazilian documents.
|
|
149
136
|
test_files: []
|