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.
- checksums.yaml +4 -4
- data/lib/br_danfe/danfe.rb +1 -1
- data/lib/br_danfe/danfe_lib/dest.rb +8 -8
- data/lib/br_danfe/danfe_lib/det_body.rb +3 -3
- data/lib/br_danfe/danfe_lib/det_header.rb +18 -18
- data/lib/br_danfe/danfe_lib/dup.rb +4 -4
- data/lib/br_danfe/danfe_lib/emit.rb +5 -5
- data/lib/br_danfe/danfe_lib/emit_header.rb +14 -14
- data/lib/br_danfe/danfe_lib/helper.rb +1 -1
- data/lib/br_danfe/danfe_lib/icmstot.rb +6 -6
- data/lib/br_danfe/danfe_lib/infadic.rb +9 -9
- data/lib/br_danfe/danfe_lib/issqn.rb +4 -4
- data/lib/br_danfe/danfe_lib/ticket.rb +4 -4
- data/lib/br_danfe/danfe_lib/transp.rb +6 -6
- data/lib/br_danfe/danfe_lib/vol.rb +3 -3
- data/lib/br_danfe/version.rb +1 -1
- data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +44 -44
- data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +44 -44
- data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +34 -34
- data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +34 -34
- data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +35 -35
- data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +159 -159
- data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +88 -88
- data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +50 -43
- data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +45 -45
- data/spec/fixtures/nfe/lib/det_header#render.pdf +36 -36
- data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +6 -6
- data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +6 -6
- data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +7 -7
- data/spec/fixtures/nfe/lib/document#lie-blank.pdf +6 -6
- data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +6 -6
- data/spec/fixtures/nfe/lib/document#lie-valid.pdf +7 -7
- data/spec/fixtures/nfe/lib/dup#render.pdf +26 -26
- data/spec/fixtures/nfe/lib/emit#render.pdf +19 -19
- data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +485 -485
- data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +482 -482
- data/spec/fixtures/nfe/lib/icmstot#render.pdf +39 -39
- data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +38 -38
- data/spec/fixtures/nfe/lib/infadic#render.pdf +6 -6
- data/spec/fixtures/nfe/lib/issqn#render.pdf +18 -18
- data/spec/fixtures/nfe/lib/ticket#render.pdf +14 -14
- data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +27 -27
- data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +27 -27
- data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +27 -27
- data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +27 -27
- data/spec/fixtures/nfe/lib/transp#render.pdf +36 -36
- data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +16 -16
- data/spec/fixtures/nfe/lib/vol#render.pdf +21 -21
- data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +354 -354
- data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +1456 -1456
- data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +743 -736
- data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +1438 -1431
- data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +803 -803
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +531 -531
- data/spec/lib/danfe_lib/document_spec.rb +6 -6
- data/spec/lib/danfe_lib/transp_spec.rb +1 -1
- 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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
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.
|
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-
|
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.
|
314
|
+
rubygems_version: 2.4.8
|
315
315
|
signing_key:
|
316
316
|
specification_version: 4
|
317
317
|
summary: DANFE pdf generator for Brazilian invoices.
|