br_danfe 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +21 -19
- data/br_danfe.gemspec +4 -4
- data/lib/br_danfe/logo_config.rb +4 -15
- data/lib/br_danfe/version.rb +1 -1
- data/lib/br_danfe.rb +0 -1
- data/spec/br_danfe/logo_config_spec.rb +6 -8
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b147ffdc115abf1fbddafd9b9e150fa28a8a679591b99bb587d69144ed87be98
|
4
|
+
data.tar.gz: dafa613951bdd04c7d144f9d2062e1c869e4eb383bd287dd297628d48693621c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13334799087d11a4a521c2cca04cc0c7253b9c8a8afa17e8fc04f896cad46099a4740154bd485062ac57ad57ac40ef7dff60b57c0f0674d5eb62789d1d054ed1
|
7
|
+
data.tar.gz: 3613638cbad5891190114473ff1b51696e736b11e56f34b3662398d1952fe3c9aa73c7a5a66a1674543426386f5af40865200be60640fff6d6e48891eb2ba30b
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
br_danfe (0.
|
5
|
-
barby (= 0.6.
|
4
|
+
br_danfe (0.20.0)
|
5
|
+
barby (= 0.6.9)
|
6
6
|
br_documents (>= 0.1.3)
|
7
7
|
i18n (>= 0.8.6)
|
8
8
|
nokogiri (>= 1.8)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
tzinfo (~> 2.0)
|
29
29
|
afm (0.2.2)
|
30
30
|
ast (2.4.2)
|
31
|
-
barby (0.6.
|
31
|
+
barby (0.6.9)
|
32
32
|
base64 (0.2.0)
|
33
33
|
bigdecimal (3.1.6)
|
34
34
|
br_documents (0.2.5)
|
@@ -37,10 +37,10 @@ GEM
|
|
37
37
|
byebug (11.1.3)
|
38
38
|
chunky_png (1.4.0)
|
39
39
|
coderay (1.1.3)
|
40
|
-
concurrent-ruby (1.
|
40
|
+
concurrent-ruby (1.3.1)
|
41
41
|
connection_pool (2.4.1)
|
42
42
|
diff-lcs (1.5.1)
|
43
|
-
docile (1.4.
|
43
|
+
docile (1.4.1)
|
44
44
|
drb (2.2.0)
|
45
45
|
ruby2_keywords
|
46
46
|
ffi (1.16.3)
|
@@ -60,19 +60,18 @@ GEM
|
|
60
60
|
guard-compat (~> 1.1)
|
61
61
|
rspec (>= 2.99.0, < 4.0)
|
62
62
|
hashery (2.1.2)
|
63
|
-
i18n (1.14.
|
63
|
+
i18n (1.14.5)
|
64
64
|
concurrent-ruby (~> 1.0)
|
65
|
-
json (2.5.1)
|
66
65
|
listen (3.8.0)
|
67
66
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
68
67
|
rb-inotify (~> 0.9, >= 0.9.10)
|
69
68
|
lumberjack (1.2.10)
|
70
69
|
method_source (1.0.0)
|
71
|
-
mini_portile2 (2.8.
|
70
|
+
mini_portile2 (2.8.7)
|
72
71
|
minitest (5.21.2)
|
73
72
|
mutex_m (0.2.0)
|
74
73
|
nenv (0.3.0)
|
75
|
-
nokogiri (1.16.
|
74
|
+
nokogiri (1.16.7)
|
76
75
|
mini_portile2 (~> 2.8.2)
|
77
76
|
racc (~> 1.4)
|
78
77
|
notiffany (0.1.3)
|
@@ -98,14 +97,15 @@ GEM
|
|
98
97
|
pry (0.14.2)
|
99
98
|
coderay (~> 1.1)
|
100
99
|
method_source (~> 1.0)
|
101
|
-
racc (1.
|
100
|
+
racc (1.8.1)
|
102
101
|
rainbow (3.0.0)
|
103
|
-
rake (13.1
|
102
|
+
rake (13.2.1)
|
104
103
|
rb-fsevent (0.11.2)
|
105
104
|
rb-inotify (0.10.1)
|
106
105
|
ffi (~> 1.0)
|
107
106
|
regexp_parser (2.1.1)
|
108
|
-
rexml (3.
|
107
|
+
rexml (3.3.3)
|
108
|
+
strscan
|
109
109
|
rqrcode (2.2.0)
|
110
110
|
chunky_png (~> 1.0)
|
111
111
|
rqrcode_core (~> 1.0)
|
@@ -144,11 +144,13 @@ GEM
|
|
144
144
|
ruby-rc4 (0.1.5)
|
145
145
|
ruby2_keywords (0.0.5)
|
146
146
|
shellany (0.0.1)
|
147
|
-
simplecov (0.
|
147
|
+
simplecov (0.22.0)
|
148
148
|
docile (~> 1.1)
|
149
|
-
|
150
|
-
|
151
|
-
simplecov-html (0.
|
149
|
+
simplecov-html (~> 0.11)
|
150
|
+
simplecov_json_formatter (~> 0.1)
|
151
|
+
simplecov-html (0.12.3)
|
152
|
+
simplecov_json_formatter (0.1.4)
|
153
|
+
strscan (3.1.0)
|
152
154
|
thor (1.3.0)
|
153
155
|
ttfunk (1.7.0)
|
154
156
|
tzinfo (2.0.6)
|
@@ -164,13 +166,13 @@ DEPENDENCIES
|
|
164
166
|
guard (~> 2.18.1)
|
165
167
|
guard-rspec (~> 4.7.3)
|
166
168
|
pdf-inspector (~> 1.3.0)
|
167
|
-
rake (= 13.1
|
169
|
+
rake (= 13.2.1)
|
168
170
|
rspec (= 3.13.0)
|
169
171
|
rubocop (~> 0.93.1)
|
170
172
|
rubocop-performance (~> 1.10.2)
|
171
173
|
rubocop-rspec (~> 1.44.1)
|
172
|
-
simplecov (= 0.
|
173
|
-
simplecov-html (= 0.
|
174
|
+
simplecov (= 0.22.0)
|
175
|
+
simplecov-html (= 0.12.3)
|
174
176
|
|
175
177
|
BUNDLED WITH
|
176
178
|
2.5.5
|
data/br_danfe.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.require_paths = ['lib']
|
17
17
|
spec.required_ruby_version = '>= 3.0'
|
18
18
|
|
19
|
-
spec.add_dependency 'barby', '0.6.
|
19
|
+
spec.add_dependency 'barby', '0.6.9'
|
20
20
|
spec.add_dependency 'br_documents', '>= 0.1.3'
|
21
21
|
spec.add_dependency 'i18n', '>= 0.8.6'
|
22
22
|
spec.add_dependency 'nokogiri', '>= 1.8'
|
@@ -28,11 +28,11 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'guard', '~> 2.18.1'
|
29
29
|
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
30
30
|
spec.add_development_dependency 'pdf-inspector', '~> 1.3.0'
|
31
|
-
spec.add_development_dependency 'rake', '13.1
|
31
|
+
spec.add_development_dependency 'rake', '13.2.1'
|
32
32
|
spec.add_development_dependency 'rspec', '3.13.0'
|
33
33
|
spec.add_development_dependency 'rubocop', '~> 0.93.1'
|
34
34
|
spec.add_development_dependency 'rubocop-performance', '~> 1.10.2'
|
35
35
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.44.1'
|
36
|
-
spec.add_development_dependency 'simplecov', '0.
|
37
|
-
spec.add_development_dependency 'simplecov-html', '0.
|
36
|
+
spec.add_development_dependency 'simplecov', '0.22.0'
|
37
|
+
spec.add_development_dependency 'simplecov-html', '0.12.3'
|
38
38
|
end
|
data/lib/br_danfe/logo_config.rb
CHANGED
@@ -1,22 +1,11 @@
|
|
1
1
|
module BrDanfe
|
2
2
|
module Logo
|
3
|
-
class Config
|
4
|
-
|
3
|
+
class Config
|
4
|
+
attr_accessor :logo, :logo_dimensions
|
5
5
|
|
6
6
|
def initialize(new_options = {})
|
7
|
-
|
8
|
-
|
9
|
-
end
|
10
|
-
|
11
|
-
private
|
12
|
-
|
13
|
-
def file
|
14
|
-
File.exist?('config/br_danfe.yml') ? File.open('config/br_danfe.yml').read : ''
|
15
|
-
end
|
16
|
-
|
17
|
-
def config_yaml_load
|
18
|
-
@file_read = YAML.safe_load(file)
|
19
|
-
@file_read ? (@file_read['br_danfe'] || {})['options'] : {}
|
7
|
+
@logo = new_options[:logo] || ''
|
8
|
+
@logo_dimensions = new_options[:logo_dimensions] || {}
|
20
9
|
end
|
21
10
|
end
|
22
11
|
end
|
data/lib/br_danfe/version.rb
CHANGED
data/lib/br_danfe.rb
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe BrDanfe::Logo::Config do
|
4
|
-
|
5
|
-
|
6
|
-
subject { described_class.new options }
|
4
|
+
subject { described_class.new({}) }
|
7
5
|
|
8
6
|
it 'returns the default config set in the code' do
|
9
|
-
expect(subject.logo).to
|
10
|
-
expect(subject.logo_dimensions).to
|
7
|
+
expect(subject.logo).to eql ''
|
8
|
+
expect(subject.logo_dimensions).to eql({})
|
11
9
|
end
|
12
10
|
|
13
11
|
context 'when there are custom options' do
|
14
|
-
|
12
|
+
subject { described_class.new({ logo: '/fake/path/file.png', logo_dimensions: { width: 50, height: 50 } }) }
|
15
13
|
|
16
14
|
it 'returns the config set in params' do
|
17
|
-
expect(subject.logo).to
|
18
|
-
expect(subject.logo_dimensions).to
|
15
|
+
expect(subject.logo).to eql '/fake/path/file.png'
|
16
|
+
expect(subject.logo_dimensions).to eql width: 50, height: 50
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
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.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ASSEINFO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: barby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6.
|
19
|
+
version: 0.6.9
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.6.
|
26
|
+
version: 0.6.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: br_documents
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,14 +176,14 @@ dependencies:
|
|
176
176
|
requirements:
|
177
177
|
- - '='
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 13.1
|
179
|
+
version: 13.2.1
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - '='
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: 13.1
|
186
|
+
version: 13.2.1
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: rspec
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,28 +246,28 @@ dependencies:
|
|
246
246
|
requirements:
|
247
247
|
- - '='
|
248
248
|
- !ruby/object:Gem::Version
|
249
|
-
version: 0.
|
249
|
+
version: 0.22.0
|
250
250
|
type: :development
|
251
251
|
prerelease: false
|
252
252
|
version_requirements: !ruby/object:Gem::Requirement
|
253
253
|
requirements:
|
254
254
|
- - '='
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: 0.
|
256
|
+
version: 0.22.0
|
257
257
|
- !ruby/object:Gem::Dependency
|
258
258
|
name: simplecov-html
|
259
259
|
requirement: !ruby/object:Gem::Requirement
|
260
260
|
requirements:
|
261
261
|
- - '='
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: 0.
|
263
|
+
version: 0.12.3
|
264
264
|
type: :development
|
265
265
|
prerelease: false
|
266
266
|
version_requirements: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
268
|
- - '='
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: 0.
|
270
|
+
version: 0.12.3
|
271
271
|
description:
|
272
272
|
email: asseinfo@asseinfo.com.br
|
273
273
|
executables: []
|