br_danfe 0.17.6 → 0.17.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/config.yml +2 -2
- data/Gemfile.lock +12 -12
- data/README.md +13 -2
- data/br_danfe.gemspec +2 -2
- data/lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb +1 -1
- data/lib/br_danfe/version.rb +1 -1
- data/spec/fixtures/nfe/lib/emit_header#render-nfe_key.pdf +4 -4
- data/spec/fixtures/nfe/lib/emit_header#render-second_page.pdf +4 -4
- data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +4 -4
- data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +33 -26
- metadata +9 -14
- data/.tool-versions +0 -1
- data/bin/_guard-core +0 -29
- data/bin/guard +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30a4dbb30c7182c6ab4c76ec7cc06e0a48558e06d00a9db4c08ac642085a156f
|
4
|
+
data.tar.gz: c75a593b87a72a608b38a10597d50459df9e71e86cb144d8328aead1c9f6040a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce2d73ef2495ade4a638f886f4d23e5f98f393bd1b152abadf16391480ec6f4401470c833fb77ea0a42405896f330d1b21371fc5b639792670f66f09285412a
|
7
|
+
data.tar.gz: 862b9b1887161080559b7394062cb55086103b540009b6e574b5cae125eed203367d2b84b584e27143a8698e3ae8dd046df6d7b0c044a96aafa46d3df4374d37
|
@@ -7,7 +7,7 @@ jobs:
|
|
7
7
|
strategy:
|
8
8
|
fail-fast: false # I understand this is to run on all versions.
|
9
9
|
matrix:
|
10
|
-
ruby: ['
|
10
|
+
ruby: ['3.0.4']
|
11
11
|
|
12
12
|
runs-on: ubuntu-latest
|
13
13
|
|
@@ -25,7 +25,7 @@ jobs:
|
|
25
25
|
strategy:
|
26
26
|
fail-fast: false # I understand this is to run on all versions.
|
27
27
|
matrix:
|
28
|
-
ruby: ['
|
28
|
+
ruby: ['3.0.4']
|
29
29
|
|
30
30
|
runs-on: ubuntu-latest
|
31
31
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
br_danfe (0.17.
|
4
|
+
br_danfe (0.17.8)
|
5
5
|
barby (= 0.6.8)
|
6
6
|
br_documents (>= 0.1.3)
|
7
7
|
i18n (>= 0.8.6)
|
@@ -34,9 +34,9 @@ GEM
|
|
34
34
|
concurrent-ruby (1.1.10)
|
35
35
|
diff-lcs (1.5.0)
|
36
36
|
docile (1.4.0)
|
37
|
-
ffi (1.
|
38
|
-
formatador (
|
39
|
-
guard (2.18.
|
37
|
+
ffi (1.16.3)
|
38
|
+
formatador (1.1.0)
|
39
|
+
guard (2.18.1)
|
40
40
|
formatador (>= 0.2.4)
|
41
41
|
listen (>= 2.7, < 4.0)
|
42
42
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -54,10 +54,10 @@ GEM
|
|
54
54
|
i18n (1.12.0)
|
55
55
|
concurrent-ruby (~> 1.0)
|
56
56
|
json (2.5.1)
|
57
|
-
listen (3.
|
57
|
+
listen (3.8.0)
|
58
58
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
59
59
|
rb-inotify (~> 0.9, >= 0.9.10)
|
60
|
-
lumberjack (1.2.
|
60
|
+
lumberjack (1.2.10)
|
61
61
|
method_source (1.0.0)
|
62
62
|
mini_portile2 (2.8.0)
|
63
63
|
minitest (5.16.3)
|
@@ -85,13 +85,13 @@ GEM
|
|
85
85
|
ttfunk (~> 1.7)
|
86
86
|
prawn-table (0.2.2)
|
87
87
|
prawn (>= 1.3.0, < 3.0.0)
|
88
|
-
pry (0.14.
|
88
|
+
pry (0.14.2)
|
89
89
|
coderay (~> 1.1)
|
90
90
|
method_source (~> 1.0)
|
91
91
|
racc (1.6.0)
|
92
92
|
rainbow (3.0.0)
|
93
93
|
rake (13.0.6)
|
94
|
-
rb-fsevent (0.11.
|
94
|
+
rb-fsevent (0.11.2)
|
95
95
|
rb-inotify (0.10.1)
|
96
96
|
ffi (~> 1.0)
|
97
97
|
regexp_parser (2.1.1)
|
@@ -138,7 +138,7 @@ GEM
|
|
138
138
|
json (>= 1.8, < 3)
|
139
139
|
simplecov-html (~> 0.10.0)
|
140
140
|
simplecov-html (0.10.2)
|
141
|
-
thor (1.
|
141
|
+
thor (1.3.0)
|
142
142
|
ttfunk (1.7.0)
|
143
143
|
tzinfo (2.0.5)
|
144
144
|
concurrent-ruby (~> 1.0)
|
@@ -151,8 +151,8 @@ PLATFORMS
|
|
151
151
|
DEPENDENCIES
|
152
152
|
br_danfe!
|
153
153
|
byebug (= 11.1.3)
|
154
|
-
guard (~> 2.18.
|
155
|
-
guard-rspec
|
154
|
+
guard (~> 2.18.1)
|
155
|
+
guard-rspec (~> 4.7.3)
|
156
156
|
pdf-inspector (~> 1.3.0)
|
157
157
|
rake (= 13.0.6)
|
158
158
|
rspec (= 3.11.0)
|
@@ -163,4 +163,4 @@ DEPENDENCIES
|
|
163
163
|
simplecov-html (= 0.10.2)
|
164
164
|
|
165
165
|
BUNDLED WITH
|
166
|
-
2.
|
166
|
+
2.5.5
|
data/README.md
CHANGED
@@ -229,9 +229,20 @@ You can generate new data using [4devs generators](http://www.4devs.com.br).
|
|
229
229
|
|
230
230
|
## Deploy to Rubygems
|
231
231
|
|
232
|
-
|
232
|
+
1. Create and send the new version to Rubygems
|
233
233
|
|
234
|
-
|
234
|
+
$ bundle exec rake release
|
235
|
+
|
236
|
+
2. Create a [new release on Github](https://github.com/asseinfo/br_danfe/releases/new)
|
237
|
+
|
238
|
+
* Choose **the new tag** (Ex.: v0.10.1)
|
239
|
+
* Fill the **Release title** (Ex.: 0.10.1)
|
240
|
+
* Click at **Generate release notes**
|
241
|
+
* Click at **Publish release**
|
242
|
+
|
243
|
+
3. Done!
|
244
|
+
|
245
|
+
You can build or install the gem using one of the above tasks
|
235
246
|
|
236
247
|
$ bundle exec rake build # Build br_danfe-X.X.X.gem into the pkg directory
|
237
248
|
$ bundle exec rake install # Build and install br_danfe-X.X.X.gem into system gems
|
data/br_danfe.gemspec
CHANGED
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_dependency 'rqrcode', '~> 2.1.0'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'byebug', '11.1.3'
|
28
|
-
spec.add_development_dependency 'guard', '~> 2.18.
|
29
|
-
spec.add_development_dependency 'guard-rspec'
|
28
|
+
spec.add_development_dependency 'guard', '~> 2.18.1'
|
29
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
30
30
|
spec.add_development_dependency 'pdf-inspector', '~> 1.3.0'
|
31
31
|
spec.add_development_dependency 'rake', '13.0.6'
|
32
32
|
spec.add_development_dependency 'rspec', '3.11.0'
|
@@ -32,7 +32,7 @@ module BrDanfe
|
|
32
32
|
if @logo.blank?
|
33
33
|
@pdf.ibox 3.92, 7.46, 1.25, @y_position + 1.46, '', address, align: :left, border: 0
|
34
34
|
else
|
35
|
-
@pdf.ibox 3.92, 7
|
35
|
+
@pdf.ibox 3.92, 4.7, 3.65, @y_position + 1.46, '', address, size: 8, align: :left, border: 0
|
36
36
|
logo
|
37
37
|
end
|
38
38
|
end
|
data/lib/br_danfe/version.rb
CHANGED
@@ -33,28 +33,28 @@ ET
|
|
33
33
|
|
34
34
|
|
35
35
|
BT
|
36
|
-
|
36
|
+
105.46457 774.51899 Td
|
37
37
|
/F1.0 8 Tf
|
38
38
|
<52756120646f2052656d6574656e74652c20436173612c20313233> Tj
|
39
39
|
ET
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
|
43
|
+
105.46457 766.06299 Td
|
44
44
|
/F1.0 8 Tf
|
45
45
|
<42616972726f20646f2052656d6574656e7465202d2031322e3334352d363738> Tj
|
46
46
|
ET
|
47
47
|
|
48
48
|
|
49
49
|
BT
|
50
|
-
|
50
|
+
105.46457 757.60699 Td
|
51
51
|
/F1.0 8 Tf
|
52
52
|
<53414f205041554c4f2f5350> Tj
|
53
53
|
ET
|
54
54
|
|
55
55
|
|
56
56
|
BT
|
57
|
-
|
57
|
+
105.46457 749.15099 Td
|
58
58
|
/F1.0 8 Tf
|
59
59
|
<2831312920313233342d3536373820666f6f406261722e636f6d> Tj
|
60
60
|
ET
|
@@ -33,28 +33,28 @@ ET
|
|
33
33
|
|
34
34
|
|
35
35
|
BT
|
36
|
-
|
36
|
+
105.46457 774.51899 Td
|
37
37
|
/F1.0 8 Tf
|
38
38
|
<52756120646f2052656d6574656e74652c20436173612c20313233> Tj
|
39
39
|
ET
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
|
43
|
+
105.46457 766.06299 Td
|
44
44
|
/F1.0 8 Tf
|
45
45
|
<42616972726f20646f2052656d6574656e7465202d2031322e3334352d363738> Tj
|
46
46
|
ET
|
47
47
|
|
48
48
|
|
49
49
|
BT
|
50
|
-
|
50
|
+
105.46457 757.60699 Td
|
51
51
|
/F1.0 8 Tf
|
52
52
|
<53414f205041554c4f2f5350> Tj
|
53
53
|
ET
|
54
54
|
|
55
55
|
|
56
56
|
BT
|
57
|
-
|
57
|
+
105.46457 749.15099 Td
|
58
58
|
/F1.0 8 Tf
|
59
59
|
<2831312920313233342d3536373820666f6f406261722e636f6d> Tj
|
60
60
|
ET
|
@@ -33,28 +33,28 @@ ET
|
|
33
33
|
|
34
34
|
|
35
35
|
BT
|
36
|
-
|
36
|
+
105.46457 714.70797 Td
|
37
37
|
/F1.0 8 Tf
|
38
38
|
<52756120646f2052656d6574656e74652c20436173612c20313233> Tj
|
39
39
|
ET
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
|
43
|
+
105.46457 706.25197 Td
|
44
44
|
/F1.0 8 Tf
|
45
45
|
<42616972726f20646f2052656d6574656e7465202d2031322e3334352d363738> Tj
|
46
46
|
ET
|
47
47
|
|
48
48
|
|
49
49
|
BT
|
50
|
-
|
50
|
+
105.46457 697.79597 Td
|
51
51
|
/F1.0 8 Tf
|
52
52
|
<53414f205041554c4f2f5350> Tj
|
53
53
|
ET
|
54
54
|
|
55
55
|
|
56
56
|
BT
|
57
|
-
|
57
|
+
105.46457 689.33997 Td
|
58
58
|
/F1.0 8 Tf
|
59
59
|
<2831312920313233342d3536373820666f6f406261722e636f6d> Tj
|
60
60
|
ET
|
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 34210
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -2722,28 +2722,35 @@ ET
|
|
2722
2722
|
|
2723
2723
|
|
2724
2724
|
BT
|
2725
|
-
|
2725
|
+
105.46457 714.70797 Td
|
2726
2726
|
/F1.0 8 Tf
|
2727
|
-
<
|
2727
|
+
<52554120414c4558414e445245204445204755534d414f2c> Tj
|
2728
2728
|
ET
|
2729
2729
|
|
2730
2730
|
|
2731
2731
|
BT
|
2732
|
-
|
2732
|
+
105.46457 706.25197 Td
|
2733
|
+
/F1.0 8 Tf
|
2734
|
+
<323738> Tj
|
2735
|
+
ET
|
2736
|
+
|
2737
|
+
|
2738
|
+
BT
|
2739
|
+
105.46457 697.79597 Td
|
2733
2740
|
/F1.0 8 Tf
|
2734
2741
|
<534f434f52524f202d2030342e3736302d303230> Tj
|
2735
2742
|
ET
|
2736
2743
|
|
2737
2744
|
|
2738
2745
|
BT
|
2739
|
-
|
2746
|
+
105.46457 689.33997 Td
|
2740
2747
|
/F1.0 8 Tf
|
2741
2748
|
<53414f205041554c4f2f5350> Tj
|
2742
2749
|
ET
|
2743
2750
|
|
2744
2751
|
|
2745
2752
|
BT
|
2746
|
-
|
2753
|
+
105.46457 680.88397 Td
|
2747
2754
|
/F1.0 8 Tf
|
2748
2755
|
<2831312920353532352d32303030> Tj
|
2749
2756
|
ET
|
@@ -3294,30 +3301,30 @@ xref
|
|
3294
3301
|
0000000109 00000 n
|
3295
3302
|
0000000158 00000 n
|
3296
3303
|
0000000215 00000 n
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3303
|
-
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3307
|
-
|
3308
|
-
|
3309
|
-
|
3310
|
-
|
3311
|
-
|
3312
|
-
|
3313
|
-
|
3314
|
-
|
3315
|
-
|
3304
|
+
0000034478 00000 n
|
3305
|
+
0000034838 00000 n
|
3306
|
+
0000035284 00000 n
|
3307
|
+
0000035452 00000 n
|
3308
|
+
0000035617 00000 n
|
3309
|
+
0000035784 00000 n
|
3310
|
+
0000038173 00000 n
|
3311
|
+
0000038548 00000 n
|
3312
|
+
0000053567 00000 n
|
3313
|
+
0000053780 00000 n
|
3314
|
+
0000055134 00000 n
|
3315
|
+
0000056048 00000 n
|
3316
|
+
0000063225 00000 n
|
3317
|
+
0000063436 00000 n
|
3318
|
+
0000064790 00000 n
|
3319
|
+
0000065704 00000 n
|
3320
|
+
0000071459 00000 n
|
3321
|
+
0000071678 00000 n
|
3322
|
+
0000073032 00000 n
|
3316
3323
|
trailer
|
3317
3324
|
<< /Size 24
|
3318
3325
|
/Root 2 0 R
|
3319
3326
|
/Info 1 0 R
|
3320
3327
|
>>
|
3321
3328
|
startxref
|
3322
|
-
|
3329
|
+
73946
|
3323
3330
|
%%EOF
|
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.17.
|
4
|
+
version: 0.17.8
|
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: 2024-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: barby
|
@@ -128,28 +128,28 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.18.
|
131
|
+
version: 2.18.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.18.
|
138
|
+
version: 2.18.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: guard-rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 4.7.3
|
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:
|
152
|
+
version: 4.7.3
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: pdf-inspector
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -264,9 +264,7 @@ dependencies:
|
|
264
264
|
version: 0.10.2
|
265
265
|
description:
|
266
266
|
email: asseinfo@asseinfo.com.br
|
267
|
-
executables:
|
268
|
-
- _guard-core
|
269
|
-
- guard
|
267
|
+
executables: []
|
270
268
|
extensions: []
|
271
269
|
extra_rdoc_files: []
|
272
270
|
files:
|
@@ -276,15 +274,12 @@ files:
|
|
276
274
|
- ".gitignore"
|
277
275
|
- ".rspec"
|
278
276
|
- ".rubocop.yml"
|
279
|
-
- ".tool-versions"
|
280
277
|
- Dockerfile
|
281
278
|
- Gemfile
|
282
279
|
- Gemfile.lock
|
283
280
|
- Guardfile
|
284
281
|
- README.md
|
285
282
|
- Rakefile
|
286
|
-
- bin/_guard-core
|
287
|
-
- bin/guard
|
288
283
|
- br_danfe.gemspec
|
289
284
|
- config/locales/pt-BR.yml
|
290
285
|
- docker-compose.yml
|
data/.tool-versions
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby 3.0.4
|
data/bin/_guard-core
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application '_guard-core' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "pathname"
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
-
|
17
|
-
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
-
load(bundle_binstub)
|
20
|
-
else
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "rubygems"
|
27
|
-
require "bundler/setup"
|
28
|
-
|
29
|
-
load Gem.bin_path("guard", "_guard-core")
|
data/bin/guard
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'guard' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "pathname"
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
-
|
17
|
-
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
-
load(bundle_binstub)
|
20
|
-
else
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "rubygems"
|
27
|
-
require "bundler/setup"
|
28
|
-
|
29
|
-
load Gem.bin_path("guard", "guard")
|