teodoro 0.37.0 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teodoro.rb +1 -1
- data/lib/teodoro/arquivo_de_origem.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8f1b70b4a267b31e618a53d29aef9cf15a0078d035e176ba4415461216b393
|
4
|
+
data.tar.gz: 6c043d4446bdd166c77115878da0f1fd20eb1605cce12f51677b97a7f286d566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cefccb6beb9aecf01f071295b7cd0f6b418de3596c81a4a6052eb91dfab69c50b0454a8029aeb9d7750f5bf392a238e1a5ae6e14e6c49ea349a4feac49727bd2
|
7
|
+
data.tar.gz: c7414557a597df5c9d846fc213a9ad6644310bd016675c6e3b1e381639728656f48c66b56332f6092be0619702c42ef4c2861ed42a53b6d8f89b1949ae3c417e
|
data/lib/teodoro.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|