teodoro 0.69.1 → 0.69.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teodoro/arquivo_xml.rb +7 -1
- data/lib/teodoro/obj.rb +6 -3
- data/lib/teodoro/version.rb +1 -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: 37026ff5ff19302ea65aebd0db5dc248ed01a69a57dc23214bee3e74c67159aa
|
4
|
+
data.tar.gz: eb7d1214ad45d9e30535dac2cfa0929f77bf1708e07fa8b20969bae44d357755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e6681d598cbf75e6a62911a48005fc0108b7d7e8c77092c22141465fa6afbc4e10f60e6915c7052a3d3aa8c89d83bd7b5c0511a34b37e38dcf388f7f2572c70
|
7
|
+
data.tar.gz: df7a9f6a4c7434c9e9d532611320eacdb24762cdb92ec179cb0fdcc04362ecc2b19cf754dd42cb5fc5d5be2042da905bf7076887623784442d4096457316caa2
|
data/lib/teodoro/arquivo_xml.rb
CHANGED
@@ -156,6 +156,7 @@ module Teodoro
|
|
156
156
|
Console.print "processando #{nome}.xml (#{percentual}%)..." do
|
157
157
|
validar_versao_do_leiaute
|
158
158
|
processar_arquivo
|
159
|
+
liberar_memoria
|
159
160
|
end
|
160
161
|
rescue StandardError => e
|
161
162
|
tratar_excecao(e)
|
@@ -256,13 +257,18 @@ module Teodoro
|
|
256
257
|
end
|
257
258
|
|
258
259
|
def recibo
|
259
|
-
|
260
|
+
XML.new(xml_do_recibo)
|
260
261
|
end
|
261
262
|
|
262
263
|
def xml_do_recibo
|
263
264
|
Nokogiri::XML(xml.css('/eSocial/retornoProcessamentoDownload/recibo/*/*').to_s)
|
264
265
|
end
|
265
266
|
|
267
|
+
def liberar_memoria
|
268
|
+
@xml = nil
|
269
|
+
@xml_do_evento = nil
|
270
|
+
end
|
271
|
+
|
266
272
|
def tratar_excecao(excecao)
|
267
273
|
puts caminho
|
268
274
|
puts excecao.message
|
data/lib/teodoro/obj.rb
CHANGED
data/lib/teodoro/version.rb
CHANGED
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.69.
|
4
|
+
version: 0.69.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fortes Tecnologia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|