teodoro 0.0.12 → 0.2.1

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.
@@ -1,10 +1,10 @@
1
1
  module Teodoro
2
2
  module Leiaute
3
3
  class ArquivoS3000
4
- include ArquivoDeEvento
4
+ include ArquivoDeEventoProcessadorDeArquivoData
5
5
 
6
6
  def processar
7
- excluir_arquivo_data_original if tipo_de_evento_processavel?
7
+ excluir_arquivos_data if tipo_de_evento_processavel?
8
8
  end
9
9
 
10
10
  private
@@ -17,20 +17,12 @@ module Teodoro
17
17
  evento['evtExclusao/infoExclusao/tpEvento'].delete('-')
18
18
  end
19
19
 
20
- def excluir_arquivo_data_original
21
- File.delete(caminho_do_arquivo_data_original)
20
+ def excluir_arquivos_data
21
+ arquivos_data.excluir(numero_de_recibo_do_evento_a_excluir)
22
22
  end
23
23
 
24
- def caminho_do_arquivo_data_original
25
- criar_caminho_do_arquivo_data(nome_do_arquivo_data_original)
26
- end
27
-
28
- def nome_do_arquivo_data_original
29
- de_recibo_para_nome_do_arquivo_data[numero_de_recibo_do_evento_a_excluir]
30
- end
31
-
32
- def de_recibo_para_nome_do_arquivo_data
33
- empresa.de_recibo_para_nome_do_arquivo_data
24
+ def arquivos_data
25
+ empresa.arquivos_data
34
26
  end
35
27
 
36
28
  def numero_de_recibo_do_evento_a_excluir
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.0.12
4
+ version: 0.2.1
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-04-13 00:00:00.000000000 Z
11
+ date: 2021-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rainbow
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubyzip
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -174,9 +188,11 @@ files:
174
188
  - bin/teodoro
175
189
  - lib/teodoro.rb
176
190
  - lib/teodoro/arquivo_de_evento.rb
191
+ - lib/teodoro/arquivo_de_evento_criador_de_arquivo_data.rb
177
192
  - lib/teodoro/arquivo_de_evento_de_tabela.rb
178
- - lib/teodoro/arquivo_de_evento_exceto_de_exclusao.rb
179
193
  - lib/teodoro/arquivo_de_evento_nao_periodico.rb
194
+ - lib/teodoro/arquivo_de_evento_processador_de_arquivo_data.rb
195
+ - lib/teodoro/arquivo_de_evento_retificavel.rb
180
196
  - lib/teodoro/arquivo_de_origem.rb
181
197
  - lib/teodoro/arquivo_xml.rb
182
198
  - lib/teodoro/cnpj.rb