br_danfe 0.20.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/config/locales/pt-BR.yml +15 -0
  5. data/lib/br_danfe/danfe_lib/nfe.rb +5 -3
  6. data/lib/br_danfe/danfe_lib/nfe_lib/dest.rb +1 -1
  7. data/lib/br_danfe/danfe_lib/nfe_lib/det_body.rb +6 -1
  8. data/lib/br_danfe/danfe_lib/nfe_lib/dup.rb +8 -4
  9. data/lib/br_danfe/danfe_lib/nfe_lib/entrega.rb +86 -0
  10. data/lib/br_danfe/danfe_lib/nfe_lib/helper.rb +4 -4
  11. data/lib/br_danfe/danfe_lib/nfe_lib/icmstot.rb +8 -4
  12. data/lib/br_danfe/danfe_lib/nfe_lib/infadic.rb +3 -19
  13. data/lib/br_danfe/danfe_lib/nfe_lib/issqn.rb +4 -2
  14. data/lib/br_danfe/danfe_lib/nfe_lib/transp.rb +8 -4
  15. data/lib/br_danfe/danfe_lib/nfe_lib/vol.rb +6 -2
  16. data/lib/br_danfe/version.rb +1 -1
  17. data/spec/br_danfe/danfe_lib/nfe_lib/det_body_spec.rb +73 -0
  18. data/spec/br_danfe/danfe_lib/nfe_lib/dup_spec.rb +50 -0
  19. data/spec/br_danfe/danfe_lib/nfe_lib/entrega_spec.rb +186 -0
  20. data/spec/br_danfe/danfe_lib/nfe_lib/helper_spec.rb +23 -4
  21. data/spec/br_danfe/danfe_lib/nfe_lib/icmstot_spec.rb +46 -0
  22. data/spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb +0 -41
  23. data/spec/br_danfe/danfe_lib/nfe_lib/issqn_spec.rb +49 -0
  24. data/spec/br_danfe/danfe_lib/nfe_lib/transp_spec.rb +49 -0
  25. data/spec/br_danfe/danfe_lib/nfe_lib/vol_spec.rb +59 -0
  26. data/spec/br_danfe/danfe_lib/nfe_spec.rb +11 -0
  27. data/spec/fixtures/nfe/lib/det_body#render-with_entrega.pdf +1110 -0
  28. data/spec/fixtures/nfe/lib/dup#render-with_entrega.pdf +0 -0
  29. data/spec/fixtures/nfe/lib/entrega#render-v2.00.pdf +0 -0
  30. data/spec/fixtures/nfe/lib/entrega#render-with-address-bigger.pdf +0 -0
  31. data/spec/fixtures/nfe/lib/entrega#render-with_cpf.pdf +0 -0
  32. data/spec/fixtures/nfe/lib/entrega#render-without-address-complement.pdf +0 -0
  33. data/spec/fixtures/nfe/lib/icmstot#render-with_entrega.pdf +0 -0
  34. data/spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf +0 -0
  35. data/spec/fixtures/nfe/lib/issqn#render-with_entrega.pdf +0 -0
  36. data/spec/fixtures/nfe/lib/transp#render-with_entrega.pdf +0 -0
  37. data/spec/fixtures/nfe/lib/vol#render-with_entrega.pdf +0 -0
  38. data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml +260 -0
  39. data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml.fixture.pdf +3413 -0
  40. metadata +20 -6
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.20.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: barby
@@ -268,7 +268,7 @@ dependencies:
268
268
  - - '='
269
269
  - !ruby/object:Gem::Version
270
270
  version: 0.12.3
271
- description:
271
+ description:
272
272
  email: asseinfo@asseinfo.com.br
273
273
  executables: []
274
274
  extensions: []
@@ -323,6 +323,7 @@ files:
323
323
  - lib/br_danfe/danfe_lib/nfe_lib/document.rb
324
324
  - lib/br_danfe/danfe_lib/nfe_lib/dup.rb
325
325
  - lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb
326
+ - lib/br_danfe/danfe_lib/nfe_lib/entrega.rb
326
327
  - lib/br_danfe/danfe_lib/nfe_lib/helper.rb
327
328
  - lib/br_danfe/danfe_lib/nfe_lib/icmstot.rb
328
329
  - lib/br_danfe/danfe_lib/nfe_lib/infadic.rb
@@ -378,6 +379,7 @@ files:
378
379
  - spec/br_danfe/danfe_lib/nfe_lib/document_spec.rb
379
380
  - spec/br_danfe/danfe_lib/nfe_lib/dup_spec.rb
380
381
  - spec/br_danfe/danfe_lib/nfe_lib/emit_header_spec.rb
382
+ - spec/br_danfe/danfe_lib/nfe_lib/entrega_spec.rb
381
383
  - spec/br_danfe/danfe_lib/nfe_lib/helper_spec.rb
382
384
  - spec/br_danfe/danfe_lib/nfe_lib/icmstot_spec.rb
383
385
  - spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb
@@ -493,6 +495,7 @@ files:
493
495
  - spec/fixtures/nfe/lib/det_body#render-three_pages.pdf
494
496
  - spec/fixtures/nfe/lib/det_body#render-two_pages.pdf
495
497
  - spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf
498
+ - spec/fixtures/nfe/lib/det_body#render-with_entrega.pdf
496
499
  - spec/fixtures/nfe/lib/det_body#render-with_infadprod.pdf
497
500
  - spec/fixtures/nfe/lib/det_body#render-with_issqn.pdf
498
501
  - spec/fixtures/nfe/lib/det_body#render-without_issqn.pdf
@@ -503,11 +506,17 @@ files:
503
506
  - spec/fixtures/nfe/lib/document#lie-blank.pdf
504
507
  - spec/fixtures/nfe/lib/document#lie-invalid.pdf
505
508
  - spec/fixtures/nfe/lib/document#lie-valid.pdf
509
+ - spec/fixtures/nfe/lib/dup#render-with_entrega.pdf
506
510
  - spec/fixtures/nfe/lib/dup#render.pdf
507
511
  - spec/fixtures/nfe/lib/emit_header#render-nfe_key.pdf
508
512
  - spec/fixtures/nfe/lib/emit_header#render-second_page.pdf
509
513
  - spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf
510
514
  - spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf
515
+ - spec/fixtures/nfe/lib/entrega#render-v2.00.pdf
516
+ - spec/fixtures/nfe/lib/entrega#render-with-address-bigger.pdf
517
+ - spec/fixtures/nfe/lib/entrega#render-with_cpf.pdf
518
+ - spec/fixtures/nfe/lib/entrega#render-without-address-complement.pdf
519
+ - spec/fixtures/nfe/lib/icmstot#render-with_entrega.pdf
511
520
  - spec/fixtures/nfe/lib/icmstot#render.pdf
512
521
  - spec/fixtures/nfe/lib/infadic#address-shipment.pdf
513
522
  - spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf
@@ -518,6 +527,7 @@ files:
518
527
  - spec/fixtures/nfe/lib/infadic#render-with_street_data.pdf
519
528
  - spec/fixtures/nfe/lib/infadic#render.pdf
520
529
  - spec/fixtures/nfe/lib/infadic_vol#render-extra_volume.pdf
530
+ - spec/fixtures/nfe/lib/issqn#render-with_entrega.pdf
521
531
  - spec/fixtures/nfe/lib/issqn#render-with_issqn.pdf
522
532
  - spec/fixtures/nfe/lib/issqn#render-with_one_issqn_value.pdf
523
533
  - spec/fixtures/nfe/lib/issqn#render-without_issqn.pdf
@@ -528,13 +538,17 @@ files:
528
538
  - spec/fixtures/nfe/lib/transp#render-modfrete_3.pdf
529
539
  - spec/fixtures/nfe/lib/transp#render-modfrete_4.pdf
530
540
  - spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf
541
+ - spec/fixtures/nfe/lib/transp#render-with_entrega.pdf
531
542
  - spec/fixtures/nfe/lib/transp#render.pdf
532
543
  - spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf
544
+ - spec/fixtures/nfe/lib/vol#render-with_entrega.pdf
533
545
  - spec/fixtures/nfe/lib/vol#render.pdf
534
546
  - spec/fixtures/nfe/v2.00/custom_options.fixture.pdf
535
547
  - spec/fixtures/nfe/v2.00/custom_options.fixture.xml
536
548
  - spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml
537
549
  - spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf
550
+ - spec/fixtures/nfe/v2.00/nfe_with_entrega.xml
551
+ - spec/fixtures/nfe/v2.00/nfe_with_entrega.xml.fixture.pdf
538
552
  - spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml
539
553
  - spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf
540
554
  - spec/fixtures/nfe/v2.00/nfe_with_fci.xml
@@ -562,7 +576,7 @@ homepage: http://github.com/asseinfo/br_danfe
562
576
  licenses:
563
577
  - MIT
564
578
  metadata: {}
565
- post_install_message:
579
+ post_install_message:
566
580
  rdoc_options: []
567
581
  require_paths:
568
582
  - lib
@@ -578,7 +592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
592
  version: '0'
579
593
  requirements: []
580
594
  rubygems_version: 3.2.33
581
- signing_key:
595
+ signing_key:
582
596
  specification_version: 4
583
597
  summary: DANFE pdf generator for Brazilian invoices.
584
598
  test_files: []