br_danfe 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
  SHA1:
3
- metadata.gz: 8e9bfcbfa0c6dc45003c6640adbc7572de44220f
4
- data.tar.gz: 60be5ca06b36401862526491327904f1fac13739
3
+ metadata.gz: 8bd09e0200c651f65908abb9abbcf2962d632c59
4
+ data.tar.gz: 3c8923550fad14e9872429a62d9dd7eee1578a9a
5
5
  SHA512:
6
- metadata.gz: fff3ce3ae2923d959d6fbb94353cbd30c691e1fe2933f82bdf3e170ed4f7abde191249e394a4def57344260cbe46b23320d285d92ac72c9083c832d3aafc36e9
7
- data.tar.gz: 66a83929a041bcec2dbb57cfdffff99c4680e05295279322c87d03a148a77499c2c4dbc8700532078bd2e9507170b2f8de936ea6d790fb3d28f7e94fee63474f
6
+ metadata.gz: b5c475886af92455a33e654456cd79367d0d8d1e4f973b2721d8aafa6dd289fd1033e097f8d262ce0859e4a16db34f8816728354bdb7565519fc6a119aa7fdb1
7
+ data.tar.gz: 1a60f37049cd4d8281bf6890c1fe51806658cc9f148199b9529f76ec7c6899d68655365420ae1f1d9e27a858ee40044eca3be7dbcbe088d4f478ace839c03d31
@@ -31,9 +31,9 @@ module BrDanfe
31
31
 
32
32
  def render_cnpj_cpf
33
33
  if @xml["dest/CNPJ"] == ""
34
- @pdf.i18n_lbox LINE_HEIGHT, 4.87, 12.57, @l1, "dest.CPF", cpf
34
+ @pdf.i18n_lbox LINE_HEIGHT, 4.37, 12.57, @l1, "dest.CPF", cpf
35
35
  else
36
- @pdf.lcnpj LINE_HEIGHT, 4.87, 12.57, @l1, @xml, "dest/CNPJ"
36
+ @pdf.lcnpj LINE_HEIGHT, 4.37, 12.57, @l1, @xml, "dest/CNPJ"
37
37
  end
38
38
  end
39
39
 
@@ -44,8 +44,8 @@ module BrDanfe
44
44
 
45
45
  def render_line2
46
46
  @pdf.i18n_lbox LINE_HEIGHT, 9.66, 0.75, @l2, "enderDest.xLgr", street
47
- @pdf.lbox LINE_HEIGHT, 4.83, 10.41, @l2, @xml, "enderDest/xBairro"
48
- @pdf.i18n_lbox LINE_HEIGHT, 2.20, 15.24, @l2, "enderDest.CEP", cep
47
+ @pdf.lbox LINE_HEIGHT, 4.33, 10.41, @l2, @xml, "enderDest/xBairro"
48
+ @pdf.i18n_lbox LINE_HEIGHT, 2.20, 14.74, @l2, "enderDest.CEP", cep
49
49
  end
50
50
 
51
51
  def street
@@ -60,7 +60,7 @@ module BrDanfe
60
60
  @pdf.lbox LINE_HEIGHT, 6.61, 0.75, @l3, @xml, "enderDest/xMun"
61
61
  @pdf.i18n_lbox LINE_HEIGHT, 4.06, 7.36, @l3, "enderDest.fone", phone
62
62
  @pdf.lbox LINE_HEIGHT, 1.14, 11.42, @l3, @xml, "enderDest/UF"
63
- @pdf.lie LINE_HEIGHT, 4.88, 12.56, @l3, @xml, "enderDest/UF", "dest/IE"
63
+ @pdf.lie LINE_HEIGHT, 4.38, 12.56, @l3, @xml, "enderDest/UF", "dest/IE"
64
64
  end
65
65
 
66
66
  def render_dates_block
@@ -75,9 +75,9 @@ module BrDanfe
75
75
  hSaiEnt = "ide/hSaiEnt"
76
76
  end
77
77
 
78
- @pdf.ldate LINE_HEIGHT, 2.42, 17.90, @l1, "ide.dEmi", @xml[dEmi], { align: :right }
79
- @pdf.ldate LINE_HEIGHT, 2.42, 17.90, @l2, "ide.dSaiEnt", @xml[dSaiEnt], { align: :right }
80
- @pdf.ltime LINE_HEIGHT, 2.42, 17.90, @l3, "ide.hSaiEnt", @xml[hSaiEnt], { align: :right }
78
+ @pdf.ldate LINE_HEIGHT, 2.92, 17.40, @l1, "ide.dEmi", @xml[dEmi], { align: :right }
79
+ @pdf.ldate LINE_HEIGHT, 2.92, 17.40, @l2, "ide.dSaiEnt", @xml[dSaiEnt], { align: :right }
80
+ @pdf.ltime LINE_HEIGHT, 2.92, 17.40, @l3, "ide.hSaiEnt", @xml[hSaiEnt], { align: :right }
81
81
  end
82
82
 
83
83
  def phone
@@ -1,3 +1,3 @@
1
1
  module BrDanfe
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -216,11 +216,6 @@ files:
216
216
  - spec/fixtures/cce/v1.00/cce.fixture.pdf
217
217
  - spec/fixtures/cce/v1.00/cce.xml
218
218
  - spec/fixtures/logo.png
219
- - spec/fixtures/nfe/lib/dest#render-v2.00.pdf
220
- - spec/fixtures/nfe/lib/dest#render-v3.10.pdf
221
- - spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf
222
- - spec/fixtures/nfe/lib/dest#render-with_cpf.pdf
223
- - spec/fixtures/nfe/lib/dest#render-with_ie.pdf
224
219
  - spec/fixtures/nfe/lib/det_body#render-csosn.pdf
225
220
  - spec/fixtures/nfe/lib/det_body#render-cst.pdf
226
221
  - spec/fixtures/nfe/lib/det_body#render-fci.pdf
@@ -249,18 +244,12 @@ files:
249
244
  - spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf
250
245
  - spec/fixtures/nfe/lib/vol#render.pdf
251
246
  - spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml
252
- - spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf
253
247
  - spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml
254
- - spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf
255
248
  - spec/fixtures/nfe/v2.00/nfe_with_fci.xml
256
- - spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf
257
249
  - spec/fixtures/nfe/v2.00/nfe_with_logo.xml
258
250
  - spec/fixtures/nfe/v2.00/nfe_with_ns.xml
259
- - spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf
260
251
  - spec/fixtures/nfe/v2.00/nfe_without_ns.xml
261
- - spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf
262
252
  - spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml
263
- - spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf
264
253
  - spec/lib/cce_lib/barcode_spec.rb
265
254
  - spec/lib/cce_lib/correction_spec.rb
266
255
  - spec/lib/cce_lib/document_spec.rb
@@ -334,11 +323,6 @@ test_files:
334
323
  - spec/fixtures/cce/v1.00/cce.fixture.pdf
335
324
  - spec/fixtures/cce/v1.00/cce.xml
336
325
  - spec/fixtures/logo.png
337
- - spec/fixtures/nfe/lib/dest#render-v2.00.pdf
338
- - spec/fixtures/nfe/lib/dest#render-v3.10.pdf
339
- - spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf
340
- - spec/fixtures/nfe/lib/dest#render-with_cpf.pdf
341
- - spec/fixtures/nfe/lib/dest#render-with_ie.pdf
342
326
  - spec/fixtures/nfe/lib/det_body#render-csosn.pdf
343
327
  - spec/fixtures/nfe/lib/det_body#render-cst.pdf
344
328
  - spec/fixtures/nfe/lib/det_body#render-fci.pdf
@@ -367,18 +351,12 @@ test_files:
367
351
  - spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf
368
352
  - spec/fixtures/nfe/lib/vol#render.pdf
369
353
  - spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml
370
- - spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf
371
354
  - spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml
372
- - spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf
373
355
  - spec/fixtures/nfe/v2.00/nfe_with_fci.xml
374
- - spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf
375
356
  - spec/fixtures/nfe/v2.00/nfe_with_logo.xml
376
357
  - spec/fixtures/nfe/v2.00/nfe_with_ns.xml
377
- - spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf
378
358
  - spec/fixtures/nfe/v2.00/nfe_without_ns.xml
379
- - spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf
380
359
  - spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml
381
- - spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf
382
360
  - spec/lib/cce_lib/barcode_spec.rb
383
361
  - spec/lib/cce_lib/correction_spec.rb
384
362
  - spec/lib/cce_lib/document_spec.rb