br_danfe 3.1.1 → 3.2.0

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/Gemfile.lock +1 -1
  4. data/Guardfile +1 -1
  5. data/config/locales/pt-BR.yml +40 -0
  6. data/lib/br_danfe/danfe_lib/nfe.rb +5 -2
  7. data/lib/br_danfe/danfe_lib/nfe_lib/det_body.rb +22 -63
  8. data/lib/br_danfe/danfe_lib/nfe_lib/det_row.rb +63 -0
  9. data/lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb +19 -3
  10. data/lib/br_danfe/danfe_lib/nfe_lib/ibscbstot.rb +58 -0
  11. data/lib/br_danfe/danfe_lib/nfe_lib/icmstot.rb +39 -0
  12. data/lib/br_danfe/danfe_lib/nfe_lib/issqn.rb +20 -11
  13. data/lib/br_danfe/danfe_lib/nfe_lib/rtc_det_row.rb +145 -0
  14. data/lib/br_danfe/danfe_lib/nfe_lib/rtc_layout.rb +26 -0
  15. data/lib/br_danfe/danfe_lib/nfe_lib/transp.rb +1 -0
  16. data/lib/br_danfe/danfe_lib/nfe_lib/vol.rb +1 -0
  17. data/lib/br_danfe/qr_code.rb +1 -1
  18. data/lib/br_danfe/version.rb +1 -1
  19. data/spec/br_danfe/danfe_lib/nfe_lib/emit_header_spec.rb +42 -0
  20. data/spec/br_danfe/danfe_lib/nfe_lib/ibscbstot_spec.rb +125 -0
  21. data/spec/br_danfe/danfe_lib/nfe_lib/icmstot_spec.rb +60 -0
  22. data/spec/br_danfe/danfe_lib/nfe_lib/issqn_spec.rb +69 -0
  23. data/spec/br_danfe/danfe_lib/nfe_lib/rtc_det_row_spec.rb +121 -0
  24. data/spec/br_danfe/danfe_lib/nfe_lib/rtc_layout_spec.rb +113 -0
  25. data/spec/br_danfe/danfe_lib/nfe_spec.rb +115 -0
  26. data/spec/br_danfe/uf_spec.rb +3 -3
  27. data/spec/fixtures/nfe/lib/issqn#render-with_entrega.pdf +0 -0
  28. data/spec/fixtures/nfe/v4.00/rtc_regime_normal.xml +92 -0
  29. data/spec/fixtures/nfe/v4.00/rtc_regime_normal.xml.fixture.pdf +4283 -2
  30. data/spec/fixtures/nfe/v4.00/rtc_regime_normal_with_entrega_and_issqn.xml +105 -0
  31. data/spec/fixtures/nfe/v4.00/rtc_regime_normal_with_entrega_and_issqn.xml.fixture.pdf +5744 -2
  32. data/spec/fixtures/nfe/v4.00/rtc_regime_normal_with_fcp_difal_and_monophasic.xml +103 -0
  33. data/spec/fixtures/nfe/v4.00/rtc_regime_normal_with_fcp_difal_and_monophasic.xml.fixture.pdf +4786 -2
  34. data/spec/fixtures/nfe/v4.00/rtc_regime_normal_with_many_items.xml +709 -0
  35. data/spec/fixtures/nfe/v4.00/rtc_regime_normal_with_many_items.xml.fixture.pdf +27509 -2
  36. data/spec/fixtures/nfe/v4.00/rtc_simples_nacional.xml +65 -0
  37. data/spec/fixtures/nfe/v4.00/rtc_simples_nacional.xml.fixture.pdf +3526 -2
  38. data/spec/fixtures/nfe/v4.00/rtc_simples_nacional_before_start_date.xml +65 -0
  39. data/spec/fixtures/nfe/v4.00/rtc_simples_nacional_before_start_date.xml.fixture.pdf +3998 -2
  40. metadata +21 -2
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: 3.1.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ASSEINFO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-23 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: barby
@@ -166,17 +166,21 @@ files:
166
166
  - lib/br_danfe/danfe_lib/nfe_lib/cst.rb
167
167
  - lib/br_danfe/danfe_lib/nfe_lib/dest.rb
168
168
  - lib/br_danfe/danfe_lib/nfe_lib/det_body.rb
169
+ - lib/br_danfe/danfe_lib/nfe_lib/det_row.rb
169
170
  - lib/br_danfe/danfe_lib/nfe_lib/document.rb
170
171
  - lib/br_danfe/danfe_lib/nfe_lib/dup.rb
171
172
  - lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb
172
173
  - lib/br_danfe/danfe_lib/nfe_lib/entrega.rb
173
174
  - lib/br_danfe/danfe_lib/nfe_lib/helper.rb
175
+ - lib/br_danfe/danfe_lib/nfe_lib/ibscbstot.rb
174
176
  - lib/br_danfe/danfe_lib/nfe_lib/icmstot.rb
175
177
  - lib/br_danfe/danfe_lib/nfe_lib/infadic.rb
176
178
  - lib/br_danfe/danfe_lib/nfe_lib/infadic_vol.rb
177
179
  - lib/br_danfe/danfe_lib/nfe_lib/issqn.rb
178
180
  - lib/br_danfe/danfe_lib/nfe_lib/phone.rb
179
181
  - lib/br_danfe/danfe_lib/nfe_lib/plate.rb
182
+ - lib/br_danfe/danfe_lib/nfe_lib/rtc_det_row.rb
183
+ - lib/br_danfe/danfe_lib/nfe_lib/rtc_layout.rb
180
184
  - lib/br_danfe/danfe_lib/nfe_lib/ticket.rb
181
185
  - lib/br_danfe/danfe_lib/nfe_lib/transp.rb
182
186
  - lib/br_danfe/danfe_lib/nfe_lib/vol.rb
@@ -226,12 +230,15 @@ files:
226
230
  - spec/br_danfe/danfe_lib/nfe_lib/emit_header_spec.rb
227
231
  - spec/br_danfe/danfe_lib/nfe_lib/entrega_spec.rb
228
232
  - spec/br_danfe/danfe_lib/nfe_lib/helper_spec.rb
233
+ - spec/br_danfe/danfe_lib/nfe_lib/ibscbstot_spec.rb
229
234
  - spec/br_danfe/danfe_lib/nfe_lib/icmstot_spec.rb
230
235
  - spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb
231
236
  - spec/br_danfe/danfe_lib/nfe_lib/infadic_vol_spec.rb
232
237
  - spec/br_danfe/danfe_lib/nfe_lib/issqn_spec.rb
233
238
  - spec/br_danfe/danfe_lib/nfe_lib/phone_spec.rb
234
239
  - spec/br_danfe/danfe_lib/nfe_lib/plate_spec.rb
240
+ - spec/br_danfe/danfe_lib/nfe_lib/rtc_det_row_spec.rb
241
+ - spec/br_danfe/danfe_lib/nfe_lib/rtc_layout_spec.rb
235
242
  - spec/br_danfe/danfe_lib/nfe_lib/ticket_spec.rb
236
243
  - spec/br_danfe/danfe_lib/nfe_lib/transp_spec.rb
237
244
  - spec/br_danfe/danfe_lib/nfe_lib/vol_spec.rb
@@ -419,6 +426,18 @@ files:
419
426
  - spec/fixtures/nfe/v3.10/with_three_pages.xml
420
427
  - spec/fixtures/nfe/v3.10/without_issqn.fixture.pdf
421
428
  - spec/fixtures/nfe/v3.10/without_issqn.xml
429
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal.xml
430
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal.xml.fixture.pdf
431
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal_with_entrega_and_issqn.xml
432
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal_with_entrega_and_issqn.xml.fixture.pdf
433
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal_with_fcp_difal_and_monophasic.xml
434
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal_with_fcp_difal_and_monophasic.xml.fixture.pdf
435
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal_with_many_items.xml
436
+ - spec/fixtures/nfe/v4.00/rtc_regime_normal_with_many_items.xml.fixture.pdf
437
+ - spec/fixtures/nfe/v4.00/rtc_simples_nacional.xml
438
+ - spec/fixtures/nfe/v4.00/rtc_simples_nacional.xml.fixture.pdf
439
+ - spec/fixtures/nfe/v4.00/rtc_simples_nacional_before_start_date.xml
440
+ - spec/fixtures/nfe/v4.00/rtc_simples_nacional_before_start_date.xml.fixture.pdf
422
441
  - spec/fixtures/qr_code/qr_code#render.pdf
423
442
  - spec/spec_helper.rb
424
443
  - spec/support/have_same_content_of.rb