br_danfe 0.17.0 → 0.17.1

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.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +20 -8
  3. data/.github/dependabot.yml +19 -0
  4. data/.rubocop.yml +24 -11
  5. data/Gemfile.lock +38 -30
  6. data/Guardfile +3 -1
  7. data/bin/_guard-core +29 -0
  8. data/bin/guard +29 -0
  9. data/br_danfe.gemspec +6 -5
  10. data/lib/br_danfe/danfe_lib/nfce.rb +10 -8
  11. data/lib/br_danfe/danfe_lib/nfce_lib/header.rb +1 -2
  12. data/lib/br_danfe/danfe_lib/nfe.rb +11 -9
  13. data/lib/br_danfe/danfe_lib/nfe_lib/dup.rb +1 -2
  14. data/lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb +4 -5
  15. data/lib/br_danfe/danfe_lib/nfe_lib/infadic.rb +2 -1
  16. data/lib/br_danfe/helper.rb +1 -1
  17. data/lib/br_danfe/mdfe.rb +1 -1
  18. data/lib/br_danfe/mdfe_lib/authorization_protocol.rb +1 -1
  19. data/lib/br_danfe/mdfe_lib/fisco_control.rb +6 -25
  20. data/lib/br_danfe/mdfe_lib/header.rb +7 -8
  21. data/lib/br_danfe/mdfe_lib/mdfe_identification.rb +1 -1
  22. data/lib/br_danfe/mdfe_lib/notes.rb +1 -1
  23. data/lib/br_danfe/qr_code.rb +1 -2
  24. data/lib/br_danfe/version.rb +1 -1
  25. data/lib/br_danfe.rb +2 -2
  26. data/spec/br_danfe/danfe_lib/nfce_lib/footer_spec.rb +3 -2
  27. data/spec/br_danfe/danfe_lib/nfce_lib/header_spec.rb +2 -2
  28. data/spec/br_danfe/danfe_lib/nfce_lib/helper_spec.rb +2 -2
  29. data/spec/br_danfe/danfe_lib/nfce_lib/key_spec.rb +2 -2
  30. data/spec/br_danfe/danfe_lib/nfce_lib/nfce_identification_spec.rb +2 -2
  31. data/spec/br_danfe/danfe_lib/nfce_lib/recipient_spec.rb +10 -10
  32. data/spec/br_danfe/danfe_lib/nfce_lib/total_list_spec.rb +12 -12
  33. data/spec/br_danfe/danfe_lib/nfe_lib/cst_spec.rb +4 -4
  34. data/spec/br_danfe/danfe_lib/nfe_lib/dest_spec.rb +178 -178
  35. data/spec/br_danfe/danfe_lib/nfe_lib/det_body_spec.rb +274 -274
  36. data/spec/br_danfe/danfe_lib/nfe_lib/document_spec.rb +77 -77
  37. data/spec/br_danfe/danfe_lib/nfe_lib/dup_spec.rb +23 -23
  38. data/spec/br_danfe/danfe_lib/nfe_lib/emit_header_spec.rb +37 -37
  39. data/spec/br_danfe/danfe_lib/nfe_lib/helper_spec.rb +34 -34
  40. data/spec/br_danfe/danfe_lib/nfe_lib/icmstot_spec.rb +19 -19
  41. data/spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb +237 -237
  42. data/spec/br_danfe/danfe_lib/nfe_lib/infadic_vol_spec.rb +3 -2
  43. data/spec/br_danfe/danfe_lib/nfe_lib/issqn_spec.rb +16 -16
  44. data/spec/br_danfe/danfe_lib/nfe_lib/ticket_spec.rb +13 -13
  45. data/spec/br_danfe/danfe_lib/nfe_lib/transp_spec.rb +76 -76
  46. data/spec/br_danfe/danfe_lib/nfe_lib/vol_spec.rb +40 -40
  47. data/spec/br_danfe/danfe_lib/nfe_lib/xprod_spec.rb +118 -118
  48. data/spec/br_danfe/danfe_spec.rb +2 -2
  49. data/spec/br_danfe/helper_spec.rb +15 -15
  50. data/spec/br_danfe/mdfe_lib/document_spec.rb +2 -2
  51. data/spec/br_danfe/mdfe_lib/fisco_control_spec.rb +21 -7
  52. data/spec/br_danfe/mdfe_lib/header_spec.rb +27 -18
  53. data/spec/br_danfe/mdfe_lib/notes_spec.rb +5 -5
  54. data/spec/br_danfe/mdfe_lib/totalizer_spec.rb +1 -1
  55. data/spec/br_danfe/mdfe_spec.rb +4 -5
  56. data/spec/br_danfe/qr_code_spec.rb +4 -13
  57. data/spec/br_danfe/xml_spec.rb +6 -6
  58. data/spec/fixtures/mdfe/lib/fisco_control#without-barcode.pdf +0 -0
  59. data/spec/fixtures/mdfe/lib/header#render-without-qr-code.pdf +0 -0
  60. data/spec/spec_helper.rb +1 -1
  61. metadata +35 -14
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe BrDanfe::Danfe do
4
4
  let(:xml) do
5
- <<-eos
5
+ <<~XML
6
6
  <nfeProc>
7
7
  <NFe>
8
8
  <infNFe>
@@ -17,7 +17,7 @@ describe BrDanfe::Danfe do
17
17
  </infNFe>
18
18
  </NFe>
19
19
  </nfeProc>
20
- eos
20
+ XML
21
21
  end
22
22
 
23
23
  subject { described_class.new(xml) }
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe BrDanfe::Helper do
4
4
  describe '.no_fiscal_value?' do
5
5
  let(:xml_homologation) do
6
- xml = <<-eos
6
+ xml = <<~XML
7
7
  <nfeProc>
8
8
  <NFe>
9
9
  <infNFe>
@@ -18,25 +18,25 @@ describe BrDanfe::Helper do
18
18
  </protNFe>
19
19
  </NFe>
20
20
  </nfeProc>
21
- eos
21
+ XML
22
22
 
23
23
  Nokogiri::XML(xml)
24
24
  end
25
25
 
26
26
  let(:xml_unauthorized) do
27
- xml = <<-eos
27
+ xml = <<~XML
28
28
  <nfeProc>
29
29
  <protNFe>
30
30
  <infProt></infProt>
31
31
  </protNFe>
32
32
  </nfeProc>
33
- eos
33
+ XML
34
34
 
35
35
  Nokogiri::XML(xml)
36
36
  end
37
37
 
38
38
  let(:xml_authorized) do
39
- xml = <<-eos
39
+ xml = <<~XML
40
40
  <nfeProc>
41
41
  <NFe>
42
42
  <infNFe>
@@ -51,7 +51,7 @@ describe BrDanfe::Helper do
51
51
  </infProt>
52
52
  </protNFe>
53
53
  </nfeProc>
54
- eos
54
+ XML
55
55
 
56
56
  Nokogiri::XML(xml)
57
57
  end
@@ -78,13 +78,13 @@ describe BrDanfe::Helper do
78
78
  describe '.unauthorized?' do
79
79
  context 'when XML is unauthorized' do
80
80
  let(:xml_unauthorized) do
81
- xml = <<-eos
81
+ xml = <<~XML
82
82
  <nfeProc>
83
83
  <protNFe>
84
84
  <infProt></infProt>
85
85
  </protNFe>
86
86
  </nfeProc>
87
- eos
87
+ XML
88
88
 
89
89
  Nokogiri::XML(xml)
90
90
  end
@@ -96,7 +96,7 @@ describe BrDanfe::Helper do
96
96
 
97
97
  context 'when XML is authorized' do
98
98
  let(:xml_authorized) do
99
- xml = <<-eos
99
+ xml = <<~XML
100
100
  <nfeProc>
101
101
  <protNFe>
102
102
  <infProt>
@@ -104,7 +104,7 @@ describe BrDanfe::Helper do
104
104
  </infProt>
105
105
  </protNFe>
106
106
  </nfeProc>
107
- eos
107
+ XML
108
108
 
109
109
  Nokogiri::XML(xml)
110
110
  end
@@ -118,7 +118,7 @@ describe BrDanfe::Helper do
118
118
  describe '.homologation?' do
119
119
  context 'when tpAmb is equal to "2"' do
120
120
  let(:xml_homologation) do
121
- xml = <<-eos
121
+ xml = <<~XML
122
122
  <nfeProc>
123
123
  <NFe>
124
124
  <infNFe>
@@ -128,7 +128,7 @@ describe BrDanfe::Helper do
128
128
  </infNFe>
129
129
  </NFe>
130
130
  </nfeProc>
131
- eos
131
+ XML
132
132
 
133
133
  Nokogiri::XML(xml)
134
134
  end
@@ -140,7 +140,7 @@ describe BrDanfe::Helper do
140
140
 
141
141
  context 'when tpAmb is different to "2"' do
142
142
  let(:xml_production) do
143
- xml = <<-eos
143
+ xml = <<~XML
144
144
  <nfeProc>
145
145
  <NFe>
146
146
  <infNFe>
@@ -150,7 +150,7 @@ describe BrDanfe::Helper do
150
150
  </infNFe>
151
151
  </NFe>
152
152
  </nfeProc>
153
- eos
153
+ XML
154
154
 
155
155
  Nokogiri::XML(xml)
156
156
  end
@@ -214,7 +214,7 @@ describe BrDanfe::Helper do
214
214
  end
215
215
 
216
216
  describe 'when has timezone' do
217
- it'returns the formated string with the timezone' do
217
+ it 'returns the formated string with the timezone' do
218
218
  expect(described_class.format_datetime('2013-10-18T13:54:04-03:00', with_time_zone: true)).to eql '18/10/2013 13:54:04-03:00'
219
219
  end
220
220
  end
@@ -7,13 +7,13 @@ describe BrDanfe::MdfeLib::Document do
7
7
  describe '#method_missing' do
8
8
  context 'when prawn has the method' do
9
9
  it 'does not throws an error' do
10
- expect { subject.text }.not_to raise_error NameError
10
+ expect(subject).to respond_to :text
11
11
  end
12
12
  end
13
13
 
14
14
  context 'when prawn does not have the method' do
15
15
  it 'throws an error' do
16
- expect { subject.any_method }.to raise_error NameError
16
+ expect { subject.non_existent_method }.to raise_error NameError
17
17
  end
18
18
  end
19
19
  end
@@ -27,13 +27,11 @@ describe BrDanfe::MdfeLib::FiscoControl do
27
27
  end
28
28
 
29
29
  describe '#generate' do
30
- after { File.delete(output_pdf) if File.exist?(output_pdf) }
30
+ before { File.delete(output_pdf) if File.exist?(output_pdf) }
31
31
 
32
32
  it 'generates the title' do
33
- title = 'CONTROLE DO FISCO'
34
-
35
33
  subject.generate
36
- expect(pdf_text).to include title
34
+ expect(pdf_text).to include 'CONTROLE DO FISCO'
37
35
  end
38
36
 
39
37
  it 'generates the bar code' do
@@ -46,10 +44,26 @@ describe BrDanfe::MdfeLib::FiscoControl do
46
44
  end
47
45
 
48
46
  it 'generates the nfe key' do
49
- nfe_key = "Chave de Acesso\n32210717781119000141580010000001211000000003"
50
-
51
47
  subject.generate
52
- expect(pdf_text).to include nfe_key
48
+ expect(pdf_text).to include "Chave de Acesso\n32210717781119000141580010000001211000000003"
49
+ end
50
+
51
+ context 'when the XML does not have protMDFe tag' do
52
+ let(:xml_as_string) do
53
+ <<~XML
54
+ <?xml version="1.0" encoding="UTF-8"?>
55
+ <mdfeProc xmlns="http://www.portalfiscal.inf.br/mdfe" versao="3.00"></mdfeProc>
56
+ XML
57
+ end
58
+
59
+ it 'does not generate the bar code and the nfe key' do
60
+ expect(File.exist?(output_pdf)).to be false
61
+
62
+ subject.generate
63
+ pdf.render_file output_pdf
64
+
65
+ expect("#{base_dir}fisco_control#without-barcode.pdf").to have_same_content_of file: output_pdf
66
+ end
53
67
  end
54
68
  end
55
69
  end
@@ -1,6 +1,10 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe BrDanfe::MdfeLib::Header do
4
+ let(:qr_code_mdfe) do
5
+ url = 'https://dfe-portal.svrs.rs.gov.br/mdfe/QRCode?chMDFe=32210717781119000141580010000001211000000003&amp;tpAmb=1'
6
+ "<qrCodMDFe>#{url}</qrCodMDFe>"
7
+ end
4
8
  let(:xml_as_string) do
5
9
  <<~XML
6
10
  <?xml version="1.0" encoding="UTF-8"?>
@@ -32,19 +36,14 @@ describe BrDanfe::MdfeLib::Header do
32
36
  </emit>
33
37
  </infMDFe>
34
38
  <infMDFeSupl>
35
- <qrCodMDFe>https://dfe-portal.svrs.rs.gov.br/mdfe/QRCode?chMDFe=32210717781119000141580010000001211000000003&amp;tpAmb=1</qrCodMDFe>
39
+ #{qr_code_mdfe}
36
40
  </infMDFeSupl>
37
41
  </MDFe>
38
42
  </mdfeProc>
39
43
  XML
40
44
  end
41
-
42
45
  let(:pdf) { BrDanfe::MdfeLib::Document.new }
43
46
  let(:xml) { BrDanfe::XML.new(xml_as_string) }
44
-
45
- let(:base_dir) { './spec/fixtures/mdfe/lib/' }
46
- let(:output_pdf) { "#{base_dir}output.pdf" }
47
-
48
47
  let(:logo_dimensions) { { width: 100, height: 100 } }
49
48
  let(:logo) { 'spec/fixtures/logo.png' }
50
49
 
@@ -54,9 +53,12 @@ describe BrDanfe::MdfeLib::Header do
54
53
  PDF::Inspector::Text.analyze(pdf.render).strings.join("\n")
55
54
  end
56
55
 
57
- after { File.delete(output_pdf) if File.exist?(output_pdf) }
58
-
59
56
  describe '#generate' do
57
+ let(:base_dir) { './spec/fixtures/mdfe/lib/' }
58
+ let(:output_pdf) { "#{base_dir}output.pdf" }
59
+
60
+ before { File.delete(output_pdf) if File.exist?(output_pdf) }
61
+
60
62
  it 'generates the emitter informations' do
61
63
  emitter_name = 'VENTURIM AGROCRIATIVA LTDA EPP'
62
64
  emitter_address = "RODOVIA ES 473 KM 13, nº 0\nVENDA NOVA DO IMIGRANTE - ES CEP 29.375-000"
@@ -72,15 +74,12 @@ describe BrDanfe::MdfeLib::Header do
72
74
  expect(pdf_text).to include emitter_ie
73
75
  end
74
76
 
75
- it'generates the DAMDFE title' do
76
- title = "DAMDFE\n - Documento Auxiliar de Manifesto Eletrônico de Documentos Fiscais"
77
-
77
+ it 'generates the DAMDFE title' do
78
78
  subject.generate
79
-
80
- expect(pdf_text).to include title
79
+ expect(pdf_text).to include "DAMDFE\n - Documento Auxiliar de Manifesto Eletrônico de Documentos Fiscais"
81
80
  end
82
81
 
83
- it 'generates the qr code' do
82
+ it 'generates the QR-code' do
84
83
  expect(File.exist?(output_pdf)).to be false
85
84
 
86
85
  subject.generate
@@ -89,12 +88,22 @@ describe BrDanfe::MdfeLib::Header do
89
88
  expect("#{base_dir}header#render-qr-code.pdf").to have_same_content_of file: output_pdf
90
89
  end
91
90
 
92
- it 'generates the company CNPJ' do
93
- cnpj = "CNPJ: \n17781119000141"
91
+ context 'if the QR-code URL is not present' do
92
+ let(:qr_code_mdfe) { '<qrCodMDFe></qrCodMDFe>' }
94
93
 
95
- subject.generate
94
+ it 'does not generates the QR-code' do
95
+ expect(File.exist?(output_pdf)).to be false
96
+
97
+ subject.generate
98
+ pdf.render_file output_pdf
99
+
100
+ expect("#{base_dir}header#render-without-qr-code.pdf").to have_same_content_of file: output_pdf
101
+ end
102
+ end
96
103
 
97
- expect(pdf_text).to include cnpj
104
+ it 'generates the company CNPJ' do
105
+ subject.generate
106
+ expect(pdf_text).to include "CNPJ: \n17781119000141"
98
107
  end
99
108
 
100
109
  describe 'logo' do
@@ -22,9 +22,6 @@ describe BrDanfe::MdfeLib::Notes do
22
22
  XML
23
23
  end
24
24
 
25
- let(:base_dir) { './spec/fixtures/mdfe/lib/' }
26
- let(:output_pdf) { "#{base_dir}output.pdf" }
27
-
28
25
  let(:pdf) { BrDanfe::MdfeLib::Document.new }
29
26
  let(:xml) { BrDanfe::XML.new(xml_as_string) }
30
27
 
@@ -37,6 +34,11 @@ describe BrDanfe::MdfeLib::Notes do
37
34
  before { pdf.move_cursor_to 345 }
38
35
 
39
36
  describe '#generate' do
37
+ let(:base_dir) { './spec/fixtures/mdfe/lib/' }
38
+ let(:output_pdf) { "#{base_dir}output.pdf" }
39
+
40
+ before { File.delete(output_pdf) if File.exist?(output_pdf) }
41
+
40
42
  it 'generates the title' do
41
43
  title = 'Observações'
42
44
 
@@ -76,8 +78,6 @@ describe BrDanfe::MdfeLib::Notes do
76
78
  expect(pdf_text).not_to include taxpayer_information
77
79
  end
78
80
 
79
- after { File.delete(output_pdf) if File.exist?(output_pdf) }
80
-
81
81
  it 'creates a new page if aditional information do not fit on first page' do
82
82
  expect(File.exist?(output_pdf)).to be false
83
83
 
@@ -53,7 +53,7 @@ describe BrDanfe::MdfeLib::Totalizer do
53
53
  expect(pdf_text).to include total_weight
54
54
  end
55
55
 
56
- it'generates the totalizer title' do
56
+ it 'generates the totalizer title' do
57
57
  title = 'Modelo Rodoviário de Carga'
58
58
 
59
59
  subject.generate
@@ -4,12 +4,11 @@ describe BrDanfe::Mdfe do
4
4
  let(:base_dir) { './spec/fixtures/mdfe/lib/' }
5
5
  let(:output_pdf) { "#{base_dir}output.pdf" }
6
6
 
7
- let(:xml_as_string) { File.read('./spec/fixtures/mdfe/lib/xml-mdfe.xml') }
8
-
9
- let(:xml) { BrDanfe::XML.new(xml_as_string) }
7
+ let(:xml) { File.read('./spec/fixtures/mdfe/lib/xml-mdfe.xml') }
10
8
 
11
9
  subject { described_class.new(xml) }
12
- after { File.delete(output_pdf) if File.exist?(output_pdf) }
10
+
11
+ before { File.delete(output_pdf) if File.exist?(output_pdf) }
13
12
 
14
13
  before do
15
14
  subject.logo_options.logo_dimensions = { width: 100, height: 100 }
@@ -34,7 +33,7 @@ describe BrDanfe::Mdfe do
34
33
  end
35
34
 
36
35
  context 'when MDF-e has multiple pages' do
37
- let(:xml_as_string) { File.read('./spec/fixtures/mdfe/lib/xml-mdfe-multiples-pages.xml') }
36
+ let(:xml) { File.read('./spec/fixtures/mdfe/lib/xml-mdfe-multiples-pages.xml') }
38
37
 
39
38
  it 'renders the header and the identification on each page' do
40
39
  expect(File.exist?(output_pdf)).to be false
@@ -11,23 +11,14 @@ describe BrDanfe::QrCode do
11
11
  )
12
12
  end
13
13
 
14
- let(:xml) do
15
- xml = <<-eos
16
- <infNFeSupl>
17
- <qrCode><![CDATA[http://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp?p=13130901144012000152651231234567891123456786|2|2|1|A604FD51E40ED8465B787B3E9CF8C1D90E61DB13]]></qrCode>
18
- <urlChave>www.sefaz.am.gov.br/nfce/consulta</urlChave>
19
- </infNFeSupl>
20
- eos
21
-
22
- BrDanfe::XML.new(xml)
14
+ let(:qr_code_url) do
15
+ 'http://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp?p=13130901144012000152651231234567891123456786|2|2|1|A604FD51E40ED8465B787B3E9CF8C1D90E61DB13'
23
16
  end
24
17
 
25
- subject { described_class.new(pdf: pdf, xml: xml, qr_code_tag: xml['qrCode'], box_size: 3.cm) }
18
+ subject { described_class.new(pdf: pdf, qr_code_tag: qr_code_url, box_size: 3.cm) }
26
19
 
27
20
  describe '#render' do
28
- before do
29
- File.delete(output_pdf) if File.exist?(output_pdf)
30
- end
21
+ before { File.delete(output_pdf) if File.exist?(output_pdf) }
31
22
 
32
23
  it 'renders qr-code to the pdf' do
33
24
  expect(File.exist?(output_pdf)).to be_falsey
@@ -6,12 +6,12 @@ describe BrDanfe::XML do
6
6
  describe '#version_is_310_or_newer?' do
7
7
  describe "when xml's version is equal 3.10" do
8
8
  let(:xml_as_string) do
9
- <<-eos
9
+ <<~XML
10
10
  <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
11
11
  <infNFe versao="3.10" Id="NFe35150162013294000143550010000000011000000017">
12
12
  </infNFe>
13
13
  </NFe>
14
- eos
14
+ XML
15
15
  end
16
16
 
17
17
  it 'returns true' do
@@ -21,12 +21,12 @@ describe BrDanfe::XML do
21
21
 
22
22
  describe "when xml's version is greather 3.10" do
23
23
  let(:xml_as_string) do
24
- <<-eos
24
+ <<~XML
25
25
  <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
26
26
  <infNFe versao="4.00" Id="NFe35150162013294000143550010000000011000000017">
27
27
  </infNFe>
28
28
  </NFe>
29
- eos
29
+ XML
30
30
  end
31
31
 
32
32
  it 'returns true' do
@@ -36,12 +36,12 @@ describe BrDanfe::XML do
36
36
 
37
37
  describe "when xml's version is minor that 3.10" do
38
38
  let(:xml_as_string) do
39
- <<-eos
39
+ <<~XML
40
40
  <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
41
41
  <infNFe versao="2.00" Id="NFe35131260891033000109550010000000011000000016">
42
42
  </infNFe>
43
43
  </NFe>
44
- eos
44
+ XML
45
45
  end
46
46
 
47
47
  it 'returns false' do
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'simplecov'
2
- SimpleCov.start
2
+ SimpleCov.start unless ENV["NO_COVERAGE"]
3
3
 
4
4
  require "bundler/setup"
5
5
  require "br_danfe"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_danfe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-13 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: barby
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.1.1
103
+ version: 2.1.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.1.1
110
+ version: 2.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: byebug
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.16.2
131
+ version: 2.18.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.16.2
138
+ version: 2.18.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: guard-rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -196,30 +196,44 @@ dependencies:
196
196
  name: rubocop
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '='
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.67.0
201
+ version: 0.93.1
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '='
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.67.0
208
+ version: 0.93.1
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: rubocop-performance
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 1.1.0
215
+ version: 1.10.2
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 1.10.2
223
+ - !ruby/object:Gem::Dependency
224
+ name: rubocop-rspec
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 1.44.1
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
234
  - - "~>"
221
235
  - !ruby/object:Gem::Version
222
- version: 1.1.0
236
+ version: 1.44.1
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: simplecov
225
239
  requirement: !ruby/object:Gem::Requirement
@@ -250,12 +264,15 @@ dependencies:
250
264
  version: 0.10.2
251
265
  description:
252
266
  email: asseinfo@asseinfo.com.br
253
- executables: []
267
+ executables:
268
+ - _guard-core
269
+ - guard
254
270
  extensions: []
255
271
  extra_rdoc_files: []
256
272
  files:
257
273
  - ".circleci/config.yml"
258
274
  - ".codeclimate.yml"
275
+ - ".github/dependabot.yml"
259
276
  - ".gitignore"
260
277
  - ".rspec"
261
278
  - ".rubocop.yml"
@@ -266,6 +283,8 @@ files:
266
283
  - Guardfile
267
284
  - README.md
268
285
  - Rakefile
286
+ - bin/_guard-core
287
+ - bin/guard
269
288
  - br_danfe.gemspec
270
289
  - config/locales/pt-BR.yml
271
290
  - docker-compose.yml
@@ -410,8 +429,10 @@ files:
410
429
  - spec/fixtures/mdfe/lib/document#text.size.pdf
411
430
  - spec/fixtures/mdfe/lib/document#text.style.pdf
412
431
  - spec/fixtures/mdfe/lib/fisco_control#barcode.pdf
432
+ - spec/fixtures/mdfe/lib/fisco_control#without-barcode.pdf
413
433
  - spec/fixtures/mdfe/lib/header#render-qr-code.pdf
414
434
  - spec/fixtures/mdfe/lib/header#render-with_logo.pdf
435
+ - spec/fixtures/mdfe/lib/header#render-without-qr-code.pdf
415
436
  - spec/fixtures/mdfe/lib/header#render-without_logo.pdf
416
437
  - spec/fixtures/mdfe/lib/mdfe-with-multiple-pages.pdf
417
438
  - spec/fixtures/mdfe/lib/mdfe.fixture.pdf
@@ -547,7 +568,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
547
568
  requirements:
548
569
  - - ">="
549
570
  - !ruby/object:Gem::Version
550
- version: 2.5.1
571
+ version: '2.6'
551
572
  required_rubygems_version: !ruby/object:Gem::Requirement
552
573
  requirements:
553
574
  - - ">="