teodoro 0.37.0 → 0.38.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a9301381eb696b22a5658a9636c58d6d8f21a15bbc312367454312426a12ab5
4
- data.tar.gz: f39d076d324734daebe1272bdb6fbf628b66fe0664ba2e2715238d00200eddd4
3
+ metadata.gz: fc8f1b70b4a267b31e618a53d29aef9cf15a0078d035e176ba4415461216b393
4
+ data.tar.gz: 6c043d4446bdd166c77115878da0f1fd20eb1605cce12f51677b97a7f286d566
5
5
  SHA512:
6
- metadata.gz: 314fbf5eef73abc98e89a5d7ed4b9d4d8651e96fc191d6e8ec4c38d9f2dcc9c01fabfa8f7fc174177e26c4863693f1e896cafddd08a75625f5445f5b8a19583a
7
- data.tar.gz: 525d04636b20028833dd20f0089b803c1e778478b3217bbc931a220ddae2ac06317220c48b8912012fc10d66ef10a7760e8fd586d9540de4aef5386cfb29fc23
6
+ metadata.gz: cefccb6beb9aecf01f071295b7cd0f6b418de3596c81a4a6052eb91dfab69c50b0454a8029aeb9d7750f5bf392a238e1a5ae6e14e6c49ea349a4feac49727bd2
7
+ data.tar.gz: c7414557a597df5c9d846fc213a9ad6644310bd016675c6e3b1e381639728656f48c66b56332f6092be0619702c42ef4c2861ed42a53b6d8f89b1949ae3c417e
data/lib/teodoro.rb CHANGED
@@ -12,7 +12,7 @@ require_relative 'teodoro/empresa'
12
12
  require_relative 'teodoro/obj'
13
13
 
14
14
  module Teodoro
15
- VERSION = '0.37.0'.freeze
15
+ VERSION = '0.38.0'.freeze
16
16
 
17
17
  CBOs = __FILE__
18
18
  .then { File.dirname(_1) }
@@ -19,10 +19,18 @@ module Teodoro
19
19
  zip
20
20
  .reject { |entrada| entrada.name[-8] == PREFIXO_DE_TOTALIZADOR }
21
21
  .each do |entrada|
22
- entrada.extract(File.join(destino_dos_arquivos_xml, entrada.name))
22
+ extrair(entrada)
23
23
  end
24
24
  end
25
25
  end
26
26
  end
27
+
28
+ private
29
+
30
+ def extrair(entrada)
31
+ File.join(destino_dos_arquivos_xml, entrada.name).then do
32
+ entrada.extract(_1) unless File.exist?(_1)
33
+ end
34
+ end
27
35
  end
28
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clavius Tales
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri