br_danfe 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/br_danfe/danfe.rb +1 -1
  3. data/lib/br_danfe/danfe_lib/dest.rb +8 -8
  4. data/lib/br_danfe/danfe_lib/det_body.rb +3 -3
  5. data/lib/br_danfe/danfe_lib/det_header.rb +18 -18
  6. data/lib/br_danfe/danfe_lib/dup.rb +4 -4
  7. data/lib/br_danfe/danfe_lib/emit.rb +5 -5
  8. data/lib/br_danfe/danfe_lib/emit_header.rb +14 -14
  9. data/lib/br_danfe/danfe_lib/helper.rb +1 -1
  10. data/lib/br_danfe/danfe_lib/icmstot.rb +6 -6
  11. data/lib/br_danfe/danfe_lib/infadic.rb +9 -9
  12. data/lib/br_danfe/danfe_lib/issqn.rb +4 -4
  13. data/lib/br_danfe/danfe_lib/ticket.rb +4 -4
  14. data/lib/br_danfe/danfe_lib/transp.rb +6 -6
  15. data/lib/br_danfe/danfe_lib/vol.rb +3 -3
  16. data/lib/br_danfe/version.rb +1 -1
  17. data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +44 -44
  18. data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +44 -44
  19. data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +34 -34
  20. data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +34 -34
  21. data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +35 -35
  22. data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +159 -159
  23. data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +88 -88
  24. data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +50 -43
  25. data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +45 -45
  26. data/spec/fixtures/nfe/lib/det_header#render.pdf +36 -36
  27. data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +6 -6
  28. data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +6 -6
  29. data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +7 -7
  30. data/spec/fixtures/nfe/lib/document#lie-blank.pdf +6 -6
  31. data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +6 -6
  32. data/spec/fixtures/nfe/lib/document#lie-valid.pdf +7 -7
  33. data/spec/fixtures/nfe/lib/dup#render.pdf +26 -26
  34. data/spec/fixtures/nfe/lib/emit#render.pdf +19 -19
  35. data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +485 -485
  36. data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +482 -482
  37. data/spec/fixtures/nfe/lib/icmstot#render.pdf +39 -39
  38. data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +38 -38
  39. data/spec/fixtures/nfe/lib/infadic#render.pdf +6 -6
  40. data/spec/fixtures/nfe/lib/issqn#render.pdf +18 -18
  41. data/spec/fixtures/nfe/lib/ticket#render.pdf +14 -14
  42. data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +27 -27
  43. data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +27 -27
  44. data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +27 -27
  45. data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +27 -27
  46. data/spec/fixtures/nfe/lib/transp#render.pdf +36 -36
  47. data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +16 -16
  48. data/spec/fixtures/nfe/lib/vol#render.pdf +21 -21
  49. data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +354 -354
  50. data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +1456 -1456
  51. data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +743 -736
  52. data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +1438 -1431
  53. data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +803 -803
  54. data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +531 -531
  55. data/spec/lib/danfe_lib/document_spec.rb +6 -6
  56. data/spec/lib/danfe_lib/transp_spec.rb +1 -1
  57. metadata +3 -3
@@ -31,7 +31,7 @@ describe BrDanfe::DanfeLib::Document do
31
31
  it "renders a box with a formated IE to the pdf" do
32
32
  expect(File.exist?(output_pdf)).to be_falsey
33
33
 
34
- subject.lie 0.80, 3.94, 1, 1, xml, "transporta/UF", "transporta/IE"
34
+ subject.lie 0.80, 3.94, 0.75, 1.85, xml, "transporta/UF", "transporta/IE"
35
35
  subject.render_file output_pdf
36
36
 
37
37
  expect("#{base_dir}document#lie-valid.pdf").to have_same_content_of file: output_pdf
@@ -57,7 +57,7 @@ describe BrDanfe::DanfeLib::Document do
57
57
  it "renders a blank box to the pdf" do
58
58
  expect(File.exist?(output_pdf)).to be_falsey
59
59
 
60
- subject.lie 0.80, 3.94, 1, 1, xml, "transporta/UF", "transporta/IE"
60
+ subject.lie 0.80, 3.94, 0.75, 1.85, xml, "transporta/UF", "transporta/IE"
61
61
  subject.render_file output_pdf
62
62
 
63
63
  expect("#{base_dir}document#lie-invalid.pdf").to have_same_content_of file: output_pdf
@@ -81,7 +81,7 @@ describe BrDanfe::DanfeLib::Document do
81
81
  it "renders a blank box to the pdf" do
82
82
  expect(File.exist?(output_pdf)).to be_falsey
83
83
 
84
- subject.lie 0.80, 3.94, 1, 1, xml, "transporta/UF", "transporta/IE"
84
+ subject.lie 0.80, 3.94, 0.75, 1.85, xml, "transporta/UF", "transporta/IE"
85
85
  subject.render_file output_pdf
86
86
 
87
87
  expect("#{base_dir}document#lie-blank.pdf").to have_same_content_of file: output_pdf
@@ -113,7 +113,7 @@ describe BrDanfe::DanfeLib::Document do
113
113
  it "renders a box with a formated CNPJ to the pdf" do
114
114
  expect(File.exist?(output_pdf)).to be_falsey
115
115
 
116
- subject.lcnpj 0.80, 3.94, 1, 1, xml, "transporta/CNPJ"
116
+ subject.lcnpj 0.80, 3.94, 0.75, 1.85, xml, "transporta/CNPJ"
117
117
  subject.render_file output_pdf
118
118
 
119
119
  expect("#{base_dir}document#lcnpj-valid.pdf").to have_same_content_of file: output_pdf
@@ -138,7 +138,7 @@ describe BrDanfe::DanfeLib::Document do
138
138
  it "renders a blank box to the pdf" do
139
139
  expect(File.exist?(output_pdf)).to be_falsey
140
140
 
141
- subject.lcnpj 0.80, 3.94, 1, 1, xml, "transporta/CNPJ"
141
+ subject.lcnpj 0.80, 3.94, 0.75, 1.85, xml, "transporta/CNPJ"
142
142
  subject.render_file output_pdf
143
143
 
144
144
  expect("#{base_dir}document#lcnpj-invalid.pdf").to have_same_content_of file: output_pdf
@@ -162,7 +162,7 @@ describe BrDanfe::DanfeLib::Document do
162
162
  it "renders a blank box to the pdf" do
163
163
  expect(File.exist?(output_pdf)).to be_falsey
164
164
 
165
- subject.lcnpj 0.80, 3.94, 1, 1, xml, "transporta/CNPJ"
165
+ subject.lcnpj 0.80, 3.94, 0.75, 1.85, xml, "transporta/CNPJ"
166
166
  subject.render_file output_pdf
167
167
 
168
168
  expect("#{base_dir}document#lcnpj-blank.pdf").to have_same_content_of file: output_pdf
@@ -114,7 +114,7 @@ describe BrDanfe::DanfeLib::Transp do
114
114
  end
115
115
  end
116
116
 
117
- context "when modFrete is 3" do
117
+ context "when modFrete is 9" do
118
118
  let(:xml_as_string) do
119
119
  <<-eos
120
120
  <NFe xmlns="http://www.portalfiscal.inf.br/nfe">
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  version: '0'
312
312
  requirements: []
313
313
  rubyforge_project:
314
- rubygems_version: 2.4.2
314
+ rubygems_version: 2.4.8
315
315
  signing_key:
316
316
  specification_version: 4
317
317
  summary: DANFE pdf generator for Brazilian invoices.