br_documents 0.2.2 → 0.2.3

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: 72fc6e3288fa8c5e3b94ddecb5c7488f106ae4108cf9c786b71229fe42b1e9c9
4
- data.tar.gz: a7cf947a33a61a3f467f433173598a0c8d7dee127872618b80bc5d3e88321904
3
+ metadata.gz: a893a246eb1c07b45241c0eec46268a58a01aa7e2bbb0f02f8294e3c1f6c0ccf
4
+ data.tar.gz: 8ad80b4d402567412752ed48eab9c0adec82fa6d92cf8dcf6bfbf788e72e8a6b
5
5
  SHA512:
6
- metadata.gz: 2ac55324bcf44f94bad987e1100fe659b9150dec1c2d20495b73e4367c4ac65d025dbda3e48183d4ae978e1c75eebeb5149bc293ab464b823af11930f8fbba66
7
- data.tar.gz: 687d8f399192783ed87b1b75a5cfe07d34e336dae966ee8bcb56eff11010d71c9d8404be20e3674286e8c7c4749f4ffeaab6946fee6e02f608026f966c44d65d
6
+ metadata.gz: 43d5217a448c6ed1297084b59c4935021a0bfda1968be33b109985cd169ea80b435adaec30373ba84b3125828842e7cce71033e3f7d842db3af0610f2c0e87d0
7
+ data.tar.gz: 63538e8845f2143637a685af12b944cc37c2b5ecb34fc32f3eb67c859cbd28968daaadac4669146322794e2029a0a0034c9fbdf94a90dcf887a309e125ca4e7d
@@ -8,7 +8,7 @@ jobs:
8
8
 
9
9
  steps:
10
10
 
11
- - uses: actions/checkout@v2
11
+ - uses: actions/checkout@v3
12
12
 
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
@@ -21,7 +21,7 @@ jobs:
21
21
  runs-on: ubuntu-latest
22
22
 
23
23
  steps:
24
- - uses: actions/checkout@v2
24
+ - uses: actions/checkout@v3
25
25
 
26
26
  - uses: ruby/setup-ruby@v1
27
27
  with:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- br_documents (0.2.2)
4
+ br_documents (0.2.3)
5
5
  activemodel (>= 4.0.0)
6
6
  i18n (>= 0.6.5)
7
7
 
@@ -100,4 +100,4 @@ DEPENDENCIES
100
100
  simplecov (>= 0.21.2)
101
101
 
102
102
  BUNDLED WITH
103
- 2.1.4
103
+ 2.2.33
@@ -13,7 +13,7 @@ module BrDocuments
13
13
  end
14
14
 
15
15
  def valid_format?
16
- regex = /^(\d{3}\.\d{3}\.\d{3}\.\d{2}\-\d{2})$|^(\d{13})$/
16
+ regex = /^(\d{3}\.\d{3}\.\d{3}\/\d{4})$|^(\d{13})$/
17
17
  regex.match(@number).present?
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module BrDocuments
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
@@ -11,7 +11,7 @@ RSpec.describe BrDocuments::IE::MG do
11
11
 
12
12
  describe '#valid?' do
13
13
  it 'is invalid with malformed number' do
14
- ['36.311.266.571-75', '4.168.836.973-423', '560.139.778.87-BA'].each do |number|
14
+ ['363.112.657.12-75', '4.168.836.973-423', '560.139.778.87-12'].each do |number|
15
15
  ie = described_class.new(number)
16
16
  expect(ie).not_to be_valid
17
17
  end
@@ -32,12 +32,12 @@ RSpec.describe BrDocuments::IE::MG do
32
32
  end
33
33
 
34
34
  it 'is valid with valid number' do
35
- ['4193434759899', '9427301981820'].each do |number|
35
+ ['4193434759899', '9427301981820', '0043982240026'].each do |number|
36
36
  ie = described_class.new(number)
37
37
  expect(ie).to be_valid
38
38
  end
39
39
  end
40
40
 
41
- include_examples 'for to remove all masks', '942.730.198.18-20'
41
+ include_examples 'for to remove all masks', '942.730.198/1820'
42
42
  end
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_documents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO - Sistemas de Informação
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-12 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel