teodoro 0.67.3 → 0.67.4

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: 9bd232ff7396766bbf22931a10bdb93cebb1165d5afea355a49cacffb3f8d981
4
- data.tar.gz: 288f9b35d3d605d50e537d685442646b57a6d80278ad6be2670eb4e0af10a3c5
3
+ metadata.gz: 1df9668b5119caf92f1cb86412f1a37cd3fa5b7acaaea03754dccf08c2ce88d0
4
+ data.tar.gz: c5f77e5c73ee6d89755eb5b2dbf10ecda4ddf015282d2900483587c8c64e7b93
5
5
  SHA512:
6
- metadata.gz: 44c240a32c5c8ead1b19b8378b66069683f8e765113231bc841a43b8bf0c30a1b8988333f6fdfc870f56863f7e3dd567fe1a6848fc2a391b07e9a020a90e664a
7
- data.tar.gz: 5fb8688f5af27f19127deba394ae08d78b626d0cd50184755ce7a400b180486ecda4bf2800b3f1aa714661990a4b4c004820ac87a35a25322a12cf5827e59d86
6
+ metadata.gz: 71d9297f185c538c3aa4769dfe7ab98a51212c2d5b6d764061c3e1ddf250845030ef5d59bbfc37327058f6ebb474791752717c875a16c2c472902e82f517fe21
7
+ data.tar.gz: 67877756bbb1a7706423ba01f17a860b26e457a07f9b9a2f10fdd09e24df4c8decb361ecf7ab9b08d49eb59b86a39d1fa254e396d8a2d27f82204a09c23acacd
@@ -1,6 +1,6 @@
1
1
  module Teodoro
2
2
  module Leiaute
3
- class ArquivoS2299 # rubocop:disable Metrics/ClassLength
3
+ class ArquivoS2299
4
4
  include ArquivoDeEventoNaoPeriodicoNaoCancelavel
5
5
 
6
6
  private
@@ -9,7 +9,6 @@ module Teodoro
9
9
  super
10
10
 
11
11
  registrar_desligamento
12
- avisar_que_tem_mais_de_um_demonstrativo if mais_de_um_demontrativo?
13
12
  salvar_arquivo_data_do_aviso_previo if salvar_arquivo_data_do_aviso_previo?
14
13
  end
15
14
 
@@ -29,14 +28,6 @@ module Teodoro
29
28
  @data_de_desligamento ||= evento['infoDeslig/dtDeslig']
30
29
  end
31
30
 
32
- def avisar_que_tem_mais_de_um_demonstrativo
33
- puts "\n #{Rainbow('mais de um demonstrativo (considerado apenas o primeiro)').yellow}"
34
- end
35
-
36
- def mais_de_um_demontrativo?
37
- identificadores_de_demonstrativo.size > 1
38
- end
39
-
40
31
  def matricula_do_trabalhador
41
32
  @matricula_do_trabalhador ||= evento['ideVinculo/matricula']
42
33
  end
@@ -48,7 +39,6 @@ module Teodoro
48
39
  nome: "TRA[#{cpf_do_trabalhador}][EPG_#{matricula_do_trabalhador}_#{data_de_admissao.delete('-')}]-GER",
49
40
  itens_do_conteudo: [
50
41
  ['ESX_DATADESLIGAMENTO', data_de_desligamento, :data],
51
- ['ESX_INFOWEB_RESCISAO_IDEDMDEV', identificador_do_demonstrativo],
52
42
  ['ESX_INFOWEB_RESCISAO_RECIBO', numero_do_recibo],
53
43
  ['ESX_INFOWEB_RESCISAO_MOTIVO', motivo_do_desligamento],
54
44
  ['indPDV', evento['infoDeslig/indPDV']]
@@ -65,14 +55,6 @@ module Teodoro
65
55
  contrato_de_emprego.data_de_admissao
66
56
  end
67
57
 
68
- def identificador_do_demonstrativo
69
- @identificador_do_demonstrativo ||= identificadores_de_demonstrativo.first
70
- end
71
-
72
- def identificadores_de_demonstrativo
73
- @identificadores_de_demonstrativo ||= evento.*('infoDeslig/verbasResc/dmDev').map { _1['ideDmDev'] }
74
- end
75
-
76
58
  def motivo_do_desligamento
77
59
  @motivo_do_desligamento ||= evento['infoDeslig/mtvDeslig']
78
60
  end
@@ -1,3 +1,3 @@
1
1
  module Teodoro
2
- VERSION = '0.67.3'.freeze
2
+ VERSION = '0.67.4'.freeze
3
3
  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.67.3
4
+ version: 0.67.4
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-03-05 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri