teodoro 0.69.6 → 0.69.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f91a118f613534e4a2329f7f57a96ea4247e58f61e9762c12ea83a0d8583061
|
|
4
|
+
data.tar.gz: a45082f0a8fba9176a69e0daee400a568a9e26a45e699d00f3e37935d61cf832
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97c373a61a1c44fce2ed41b9dc0bf368dd8b0848e05eded15edcb7d7c4c4086e98b5a39e6e75dc2cb69171dddfbf761fe5f5e8943a2ecf59e91da41a02f79027
|
|
7
|
+
data.tar.gz: 59c357a58592635e43fe58b91f62f5f8e1f59b5407e85add1e45a7c85f31229dd9da677b7c280ac24eeae4ee7f99a03c0ffe11ecd06352b51d2df86e11708b34
|
|
@@ -12,18 +12,18 @@ module Teodoro
|
|
|
12
12
|
public
|
|
13
13
|
|
|
14
14
|
def registrar_admissao(admissao:, inicio_de_afastamento:)
|
|
15
|
-
contratos_por_matricula[admissao.matricula_do_trabalhador] =
|
|
15
|
+
contratos_por_matricula[admissao.matricula_do_trabalhador.downcase] =
|
|
16
16
|
Contrato.new(admissao: admissao, inicio_de_afastamento: inicio_de_afastamento)
|
|
17
17
|
trabalhadores << admissao.trabalhador
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def registrar_alteracao_contratual(alteracao_contratual)
|
|
21
|
-
contratos_por_matricula[alteracao_contratual.matricula_do_trabalhador]
|
|
21
|
+
contratos_por_matricula[alteracao_contratual.matricula_do_trabalhador.downcase]
|
|
22
22
|
.registrar_alteracao_contratual(alteracao_contratual)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def [](matricula)
|
|
26
|
-
contratos_por_matricula[matricula]
|
|
26
|
+
contratos_por_matricula[matricula.downcase]
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def *(cpf_do_trabalhador:, data:)
|
|
@@ -17,7 +17,8 @@ module Teodoro
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def [](cpf_do_trabalhador:, matricula_do_trabalhador:, categoria_do_trabalhador:, data:)
|
|
20
|
-
return contratos.find { _1.matricula_do_trabalhador == matricula_do_trabalhador } if
|
|
20
|
+
return contratos.find { _1.matricula_do_trabalhador.downcase == matricula_do_trabalhador.downcase } if
|
|
21
|
+
matricula_do_trabalhador
|
|
21
22
|
|
|
22
23
|
contratos
|
|
23
24
|
.select do |contrato|
|
|
@@ -74,19 +74,11 @@ module Teodoro
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
def empregado?
|
|
77
|
-
|
|
77
|
+
!trabalhador_sem_vinculo?
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
def
|
|
81
|
-
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def matricula_do_trabalhador
|
|
85
|
-
@matricula_do_trabalhador ||= evento['ideVinculo/matricula']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
def contratos_de_emprego
|
|
89
|
-
empresa.contratos_de_emprego
|
|
80
|
+
def trabalhador_sem_vinculo?
|
|
81
|
+
contrato_de_trabalho_sem_vinculo
|
|
90
82
|
end
|
|
91
83
|
|
|
92
84
|
def contrato_de_trabalho_sem_vinculo
|
|
@@ -106,6 +98,10 @@ module Teodoro
|
|
|
106
98
|
@cpf_do_trabalhador ||= evento['ideVinculo/cpfTrab']
|
|
107
99
|
end
|
|
108
100
|
|
|
101
|
+
def matricula_do_trabalhador
|
|
102
|
+
@matricula_do_trabalhador ||= evento['ideVinculo/matricula']
|
|
103
|
+
end
|
|
104
|
+
|
|
109
105
|
def categoria_do_trabalhador
|
|
110
106
|
@categoria_do_trabalhador ||= evento['ideVinculo/codCateg']
|
|
111
107
|
end
|
|
@@ -114,6 +110,14 @@ module Teodoro
|
|
|
114
110
|
@data_de_termino_do_afastamento ||= termino_do_afastamento['dtTermAfast']
|
|
115
111
|
end
|
|
116
112
|
|
|
113
|
+
def contrato_de_emprego
|
|
114
|
+
@contrato_de_emprego ||= contratos_de_emprego[matricula_do_trabalhador]
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
def contratos_de_emprego
|
|
118
|
+
empresa.contratos_de_emprego
|
|
119
|
+
end
|
|
120
|
+
|
|
117
121
|
def dados_dos_arquivos_data # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
118
122
|
[
|
|
119
123
|
Obj.new(
|
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.7
|
|
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-
|
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|