br_danfe 0.13.1 → 0.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +75 -40
- data/Guardfile +14 -0
- data/br_danfe.gemspec +4 -2
- data/fonts/Tinos-LICENSE.txt +202 -0
- data/fonts/tinos.ttf +0 -0
- data/fonts/tinos_bold.ttf +0 -0
- data/fonts/tinos_bold_italic.ttf +0 -0
- data/fonts/tinos_italic.ttf +0 -0
- data/lib/br_danfe.rb +6 -0
- data/lib/br_danfe/cce_lib/document.rb +2 -2
- data/lib/br_danfe/danfe.rb +1 -1
- data/lib/br_danfe/danfe_lib/nfce_lib/document.rb +1 -1
- data/lib/br_danfe/danfe_lib/nfe_lib/document.rb +3 -2
- data/lib/br_danfe/danfe_lib/nfe_lib/infadic.rb +17 -1
- data/lib/br_danfe/danfe_lib/nfe_lib/xprod.rb +5 -5
- data/lib/br_danfe/document_builder.rb +16 -0
- data/lib/br_danfe/version.rb +1 -1
- data/lib/prawn/font.rb +7 -0
- data/lib/prawn/font_metric_cache.rb +33 -0
- data/spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb +42 -2
- data/spec/br_danfe/danfe_lib/nfe_lib/xprod_spec.rb +2 -2
- data/spec/br_danfe/danfe_spec.rb +5 -0
- data/spec/fixtures/cce/lib/correction#render.pdf +0 -0
- data/spec/fixtures/cce/lib/document#box.with.block.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.align.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.pad.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.simple.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.size.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.style.pdf +0 -0
- data/spec/fixtures/cce/lib/footer#render.pdf +0 -0
- data/spec/fixtures/cce/lib/header#render.pdf +0 -0
- data/spec/fixtures/cce/lib/nfe_key#render.pdf +0 -0
- data/spec/fixtures/cce/lib/protocol#render.pdf +0 -0
- data/spec/fixtures/cce/v1.00/cce.fixture.pdf +211 -48
- data/spec/fixtures/nfce/v4.00/nfce-unauthorized-hom.fixture.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/nfce-unauthorized-prod.fixture.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/rendered_nfce.fixture.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/saved_nfce.fixture.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-v4.00.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with-address-bigger.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-without-address-complement.pdf +0 -0
- data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +739 -658
- data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +476 -393
- data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +323 -238
- data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +327 -237
- data/spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf +319 -233
- data/spec/fixtures/nfe/lib/det_body#render-three_pages.pdf +6619 -7057
- data/spec/fixtures/nfe/lib/det_body#render-two_pages.pdf +6474 -6396
- data/spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf +319 -233
- data/spec/fixtures/nfe/lib/det_body#render-with_infadprod.pdf +315 -237
- data/spec/fixtures/nfe/lib/det_body#render-with_issqn.pdf +3026 -2948
- data/spec/fixtures/nfe/lib/det_body#render-without_issqn.pdf +3026 -2948
- data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-blank-uf-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-blank.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-valid.pdf +0 -0
- data/spec/fixtures/nfe/lib/dup#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/emit_header#render-second_page.pdf +214 -67
- data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +214 -67
- data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +212 -65
- data/spec/fixtures/nfe/lib/icmstot#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#address-shipment.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-difal.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_complementary_information.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_fisco_additional_information.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_street_data.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic_vol#render-extra_volume.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-with_issqn.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-with_one_issqn_value.pdf +0 -0
- data/spec/fixtures/nfe/lib/ticket#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_3.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_4.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +0 -0
- data/spec/fixtures/nfe/lib/vol#render.pdf +0 -0
- data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +1039 -795
- data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +1037 -793
- data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +2965 -2740
- data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +733 -506
- data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +2911 -2690
- data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +940 -770
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +1825 -1603
- data/spec/fixtures/nfe/v3.10/with_footer.fixture.pdf +3112 -2438
- data/spec/fixtures/nfe/v3.10/with_footer.xml +18 -0
- data/spec/fixtures/nfe/v3.10/with_issqn.fixture.pdf +2564 -3072
- data/spec/fixtures/nfe/v3.10/with_three_pages.fixture.pdf +8417 -8200
- data/spec/fixtures/nfe/v3.10/without_issqn.fixture.pdf +3169 -2953
- data/spec/spec_helper.rb +2 -0
- metadata +45 -8
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ASSEINFO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: barby
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 11.1.
|
117
|
+
version: 11.1.3
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 11.1.
|
124
|
+
version: 11.1.3
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 3.
|
145
|
+
version: 3.10.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 3.
|
152
|
+
version: 3.10.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,6 +206,34 @@ dependencies:
|
|
206
206
|
- - '='
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 0.10.2
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: guard
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 2.16.2
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 2.16.2
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: guard-rspec
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
209
237
|
description:
|
210
238
|
email: asseinfo@asseinfo.com.br
|
211
239
|
executables: []
|
@@ -220,11 +248,17 @@ files:
|
|
220
248
|
- Dockerfile
|
221
249
|
- Gemfile
|
222
250
|
- Gemfile.lock
|
251
|
+
- Guardfile
|
223
252
|
- README.md
|
224
253
|
- Rakefile
|
225
254
|
- br_danfe.gemspec
|
226
255
|
- config/locales/pt-BR.yml
|
227
256
|
- docker-compose.yml
|
257
|
+
- fonts/Tinos-LICENSE.txt
|
258
|
+
- fonts/tinos.ttf
|
259
|
+
- fonts/tinos_bold.ttf
|
260
|
+
- fonts/tinos_bold_italic.ttf
|
261
|
+
- fonts/tinos_italic.ttf
|
228
262
|
- lib/br_danfe.rb
|
229
263
|
- lib/br_danfe/cce.rb
|
230
264
|
- lib/br_danfe/cce_lib/barcode.rb
|
@@ -267,12 +301,15 @@ files:
|
|
267
301
|
- lib/br_danfe/danfe_lib/nfe_lib/transp.rb
|
268
302
|
- lib/br_danfe/danfe_lib/nfe_lib/vol.rb
|
269
303
|
- lib/br_danfe/danfe_lib/nfe_lib/xprod.rb
|
304
|
+
- lib/br_danfe/document_builder.rb
|
270
305
|
- lib/br_danfe/helper.rb
|
271
306
|
- lib/br_danfe/logo_config.rb
|
272
307
|
- lib/br_danfe/logo_options.rb
|
273
308
|
- lib/br_danfe/uf.rb
|
274
309
|
- lib/br_danfe/version.rb
|
275
310
|
- lib/br_danfe/xml.rb
|
311
|
+
- lib/prawn/font.rb
|
312
|
+
- lib/prawn/font_metric_cache.rb
|
276
313
|
- spec/br_danfe/cce_lib/barcode_spec.rb
|
277
314
|
- spec/br_danfe/cce_lib/correction_spec.rb
|
278
315
|
- spec/br_danfe/cce_lib/document_spec.rb
|
@@ -400,6 +437,7 @@ files:
|
|
400
437
|
- spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf
|
401
438
|
- spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf
|
402
439
|
- spec/fixtures/nfe/lib/icmstot#render.pdf
|
440
|
+
- spec/fixtures/nfe/lib/infadic#address-shipment.pdf
|
403
441
|
- spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf
|
404
442
|
- spec/fixtures/nfe/lib/infadic#render-difal.pdf
|
405
443
|
- spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf
|
@@ -465,8 +503,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
465
503
|
- !ruby/object:Gem::Version
|
466
504
|
version: '0'
|
467
505
|
requirements: []
|
468
|
-
|
469
|
-
rubygems_version: 2.7.6
|
506
|
+
rubygems_version: 3.1.4
|
470
507
|
signing_key:
|
471
508
|
specification_version: 4
|
472
509
|
summary: DANFE pdf generator for Brazilian invoices.
|