br_danfe 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/br_danfe.gemspec +3 -1
  4. data/circle.yml +5 -0
  5. data/config/locales/pt-BR.yml +4 -3
  6. data/lib/br_danfe/danfe.rb +2 -2
  7. data/lib/br_danfe/dest.rb +12 -22
  8. data/lib/br_danfe/det_header.rb +1 -2
  9. data/lib/br_danfe/document.rb +34 -9
  10. data/lib/br_danfe/emit.rb +8 -18
  11. data/lib/br_danfe/issqn.rb +3 -3
  12. data/lib/br_danfe/ticket.rb +10 -5
  13. data/lib/br_danfe/transp.rb +17 -4
  14. data/lib/br_danfe/version.rb +1 -1
  15. data/lib/br_danfe/xprod.rb +4 -4
  16. data/lib/br_danfe.rb +1 -0
  17. data/spec/features/br_danfe_spec.rb +2 -19
  18. data/spec/fixtures/lib/dest#render-with_cnpj.pdf +201 -0
  19. data/spec/fixtures/lib/dest#render-with_cpf.pdf +201 -0
  20. data/spec/fixtures/lib/dest#render-with_ie.pdf +208 -0
  21. data/spec/fixtures/lib/det_body#render-csosn.pdf +855 -0
  22. data/spec/fixtures/lib/det_body#render-cst.pdf +512 -0
  23. data/spec/fixtures/lib/det_body#render-fci.pdf +260 -0
  24. data/spec/fixtures/lib/det_body#render-icms_st.pdf +267 -0
  25. data/spec/fixtures/lib/det_header#render.pdf +207 -0
  26. data/spec/fixtures/lib/document#lcnpj-blank.pdf +74 -0
  27. data/spec/fixtures/lib/document#lcnpj-invalid.pdf +74 -0
  28. data/spec/fixtures/lib/document#lcnpj-valid.pdf +81 -0
  29. data/spec/fixtures/lib/document#lie-blank.pdf +74 -0
  30. data/spec/fixtures/lib/document#lie-invalid.pdf +74 -0
  31. data/spec/fixtures/lib/document#lie-valid.pdf +81 -0
  32. data/spec/fixtures/lib/dup#render.pdf +216 -0
  33. data/spec/fixtures/lib/emit#render.pdf +143 -0
  34. data/spec/fixtures/lib/emit_header#render-with_logo.pdf +712 -0
  35. data/spec/fixtures/lib/emit_header#render-without_logo.pdf +650 -0
  36. data/spec/fixtures/lib/icmstot#render.pdf +255 -0
  37. data/spec/fixtures/lib/infadic#render-extra_volume.pdf +295 -0
  38. data/spec/fixtures/lib/infadic#render.pdf +104 -0
  39. data/spec/fixtures/lib/issqn#render.pdf +143 -0
  40. data/spec/fixtures/lib/ticket#render.pdf +113 -0
  41. data/spec/fixtures/lib/transp#render.pdf +239 -0
  42. data/spec/fixtures/lib/vol#render.pdf +152 -0
  43. data/spec/fixtures/{v2.00/nfe_with_logo.xml.logo.png → logo.png} +0 -0
  44. data/spec/fixtures/v2.00/nfe_simples_nacional.xml.fixture.pdf +14 -14
  45. data/spec/fixtures/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +29 -43
  46. data/spec/fixtures/v2.00/nfe_with_fci.xml.fixture.pdf +12 -12
  47. data/spec/fixtures/v2.00/nfe_with_logo.xml.fixture.pdf +16 -16
  48. data/spec/fixtures/v2.00/nfe_with_ns.xml.fixture.pdf +29 -43
  49. data/spec/fixtures/v2.00/nfe_without_ns.xml.fixture.pdf +13 -27
  50. data/spec/fixtures/v3.10/nfe_simples_nacional.xml.fixture.pdf +23 -23
  51. data/spec/lib/dest_spec.rb +69 -0
  52. data/spec/lib/det_body_spec.rb +299 -0
  53. data/spec/lib/det_header_spec.rb +26 -0
  54. data/spec/lib/document_spec.rb +172 -0
  55. data/spec/lib/dup_spec.rb +52 -0
  56. data/spec/lib/emit_header_spec.rb +76 -0
  57. data/spec/lib/emit_spec.rb +54 -0
  58. data/spec/lib/icmstot_spec.rb +48 -0
  59. data/spec/lib/infadic_spec.rb +81 -0
  60. data/spec/lib/issqn_spec.rb +45 -0
  61. data/spec/lib/ticket_spec.rb +42 -0
  62. data/spec/lib/transp_spec.rb +51 -0
  63. data/spec/lib/vol_spec.rb +65 -0
  64. data/spec/lib/xprod_spec.rb +2 -2
  65. metadata +96 -12
  66. data/spec/fixtures/v2.00/nfe_with_cpf.xml +0 -1
  67. data/spec/fixtures/v2.00/nfe_with_cpf.xml.fixture.pdf +0 -1871
@@ -0,0 +1,143 @@
1
+ %PDF-1.3
2
+ %����
3
+ 1 0 obj
4
+ << /Creator <feff0050007200610077006e>
5
+ /Producer <feff0050007200610077006e>
6
+ >>
7
+ endobj
8
+ 2 0 obj
9
+ << /Type /Catalog
10
+ /Pages 3 0 R
11
+ >>
12
+ endobj
13
+ 3 0 obj
14
+ << /Type /Pages
15
+ /Count 1
16
+ /Kids [5 0 R]
17
+ >>
18
+ endobj
19
+ 4 0 obj
20
+ << /Length 1433
21
+ >>
22
+ stream
23
+ q
24
+ 0.3 w
25
+ 7.087 643.748 298.772 22.677 re
26
+ S
27
+
28
+ BT
29
+ 9.086614173228348 660.3271968503939 Td
30
+ /F1.0 6 Tf
31
+ [<4e> 35 <41> 111 <545552455a412044> 40 <41204f50455241> 40 <c7c3> 55 <4f>] TJ
32
+ ET
33
+
34
+
35
+ BT
36
+ 9.086614173228348 646.5951968503938 Td
37
+ /F1.0 10 Tf
38
+ [<56> 111 <656e6461732064652070726f647563616f20646f206573746162656c6563696d656e746f>] TJ
39
+ ET
40
+
41
+ 305.858 643.748 284.031 22.677 re
42
+ S
43
+
44
+ BT
45
+ 307.85826771653547 660.3271968503939 Td
46
+ /F1.0 6 Tf
47
+ [<5052> 40 <4f> 40 <54> 18 <4f434f4c4f2044452041> 55 <5554> 18 <4f52495a41> 40 <c7c3> 55 <4f2044452055534f>] TJ
48
+ ET
49
+
50
+
51
+ BT
52
+ 367.3140157480315 646.5951968503938 Td
53
+ /F1.0 10 Tf
54
+ [<3332353131303031323836363332302032392f31302f323031312031343a33373a3039>] TJ
55
+ ET
56
+
57
+ 7.087 621.071 194.457 22.677 re
58
+ S
59
+
60
+ BT
61
+ 9.086614173228348 637.6500314960631 Td
62
+ /F1.0 6 Tf
63
+ [<494e53435249c7c3> 55 <4f20455354> 93 <414455> 40 <414c>] TJ
64
+ ET
65
+
66
+
67
+ BT
68
+ 9.086614173228348 623.918031496063 Td
69
+ /F1.0 10 Tf
70
+ [<3532362e3932362e3331332e353533>] TJ
71
+ ET
72
+
73
+ 201.543 621.071 194.457 22.677 re
74
+ S
75
+
76
+ BT
77
+ 203.54330708661422 637.6500314960631 Td
78
+ /F1.0 6 Tf
79
+ [<494e53432e455354> 93 <414455> 40 <414c20444f205355425354> 74 <2e2054524942> 10 <5554> 93 <c152494f>] TJ
80
+ ET
81
+
82
+
83
+ BT
84
+ 203.54330708661422 623.918031496063 Td
85
+ /F1.0 10 Tf
86
+ [<3631312e3732342e3039322e303339>] TJ
87
+ ET
88
+
89
+ 396.000 621.071 193.890 22.677 re
90
+ S
91
+
92
+ BT
93
+ 398.0000000000001 637.6500314960631 Td
94
+ /F1.0 6 Tf
95
+ [<434e504a>] TJ
96
+ ET
97
+
98
+
99
+ BT
100
+ 398.0000000000001 623.918031496063 Td
101
+ /F1.0 10 Tf
102
+ [<36322e3031332e3239342f303030312d3433>] TJ
103
+ ET
104
+
105
+ Q
106
+
107
+ endstream
108
+ endobj
109
+ 5 0 obj
110
+ << /Type /Page
111
+ /Parent 3 0 R
112
+ /MediaBox [0 0 595.28 841.89]
113
+ /Contents 4 0 R
114
+ /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
115
+ /Font << /F1.0 6 0 R
116
+ >>
117
+ >>
118
+ >>
119
+ endobj
120
+ 6 0 obj
121
+ << /Type /Font
122
+ /Subtype /Type1
123
+ /BaseFont /Times-Roman
124
+ /Encoding /WinAnsiEncoding
125
+ >>
126
+ endobj
127
+ xref
128
+ 0 7
129
+ 0000000000 65535 f
130
+ 0000000015 00000 n
131
+ 0000000109 00000 n
132
+ 0000000158 00000 n
133
+ 0000000215 00000 n
134
+ 0000001700 00000 n
135
+ 0000001880 00000 n
136
+ trailer
137
+ << /Size 7
138
+ /Root 2 0 R
139
+ /Info 1 0 R
140
+ >>
141
+ startxref
142
+ 1979
143
+ %%EOF