teodoro 0.68.0 → 0.69.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eda7d180a042287a49871240fc0e9d9db2136f41cb3123990b86f8807ca9b819
4
- data.tar.gz: 0d116308a76214f289f3dc0e78fdb41d341d921aeea9a6daeed8213957774415
3
+ metadata.gz: 26c80e3876d1f891f0ac2474b4fb3794fb7a05527443bc884f7c973984d20aa8
4
+ data.tar.gz: e96cd3ff86d0e9d785525cf3c2c3b493ae7b405b441dcab7901b6649bacb0628
5
5
  SHA512:
6
- metadata.gz: 487f8d794bcf7cc7696858732eff57ce720b28a075a9ed4e93b34f01e526cb71ff63d84a5ebeedbb4de57dbc8ba9e252fadff7a86a316b77e51f0dbb609b1cbd
7
- data.tar.gz: 1c725c679f53b68be3b4b64e7609e8c7756d83740ce70c3a0b3711c295d58acb47540b79c13945482002e7b872130935c87c36fc7ead33b909d31acc52bf305e
6
+ metadata.gz: 191e8c53c887d19a5dcb39d6531d5b56ebcbb276d0268002320f780bed29b562d7761b49fe66097af5eaa6c00a99b158aeacc1229e4f8384af4dfa1d3365078a
7
+ data.tar.gz: 0dd71ad61403f549cbb86886302480691fc8560d84f14f7f3aee8ec199170504a1e6ebb01a9693c609bc899093ea7a9541b865b7b0704ed322bff7908d5c947f
@@ -20,6 +20,7 @@ require_relative 'leiaute/arquivo_s2205'
20
20
  require_relative 'leiaute/arquivo_s2206'
21
21
  require_relative 'leiaute/arquivo_s2210'
22
22
  require_relative 'leiaute/arquivo_s2220'
23
+ require_relative 'leiaute/arquivo_s2221'
23
24
  require_relative 'leiaute/arquivo_s2230'
24
25
  require_relative 'leiaute/arquivo_s2240'
25
26
  require_relative 'leiaute/arquivo_s2250'
@@ -53,6 +54,7 @@ module Teodoro
53
54
  S2206
54
55
  S2210
55
56
  S2220
57
+ S2221
56
58
  S2230
57
59
  S2240
58
60
  S2250
@@ -74,6 +76,7 @@ module Teodoro
74
76
  S2206
75
77
  S2210
76
78
  S2220
79
+ S2221
77
80
  S2230
78
81
  S2240
79
82
  S2250
@@ -0,0 +1,50 @@
1
+ module Teodoro
2
+ module Leiaute
3
+ class ArquivoS2221
4
+ include ArquivoDeEventoNaoPeriodicoNaoCancelavel
5
+
6
+ private
7
+
8
+ def dados_dos_arquivos_data
9
+ [
10
+ Obj.new(
11
+ operacao: :inclusao,
12
+ nome: "TOX[#{cpf_do_trabalhador}][#{matricula}][#{data_do_exame.delete('-')}]",
13
+ itens_do_conteudo: itens_do_conteudo
14
+ )
15
+ ]
16
+ end
17
+
18
+ def itens_do_conteudo # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
19
+ [
20
+ ['Id', id_do_evento],
21
+ ['procEmi', processo_de_emissao_do_evento],
22
+ ['verProc', versao_do_processo_de_emissao_do_evento],
23
+ ['ideEmpregador/tpInsc', tipo_de_inscricao_do_empregador],
24
+ ['ideEmpregador/nrInsc', numero_de_inscricao_do_empregador],
25
+ ['ideVinculo/cpfTrab', cpf_do_trabalhador],
26
+ ['ideVinculo/matricula', matricula],
27
+ ['dtExame', data_do_exame],
28
+ ['cnpjLab', evento['toxicologico/cnpjLab']],
29
+ ['codSeqExame', evento['toxicologico/codSeqExame']],
30
+ ['nmMed', evento['toxicologico/nmMed']],
31
+ ['nrCRM', evento['toxicologico/nrCRM']],
32
+ ['ufCRM', evento['toxicologico/ufCRM']],
33
+ ['nrRecibo', numero_do_recibo]
34
+ ]
35
+ end
36
+
37
+ def cpf_do_trabalhador
38
+ @cpf_do_trabalhador ||= evento['ideVinculo/cpfTrab']
39
+ end
40
+
41
+ def matricula
42
+ @matricula ||= evento['ideVinculo/matricula']
43
+ end
44
+
45
+ def data_do_exame
46
+ @data_do_exame ||= evento['toxicologico/dtExame']
47
+ end
48
+ end
49
+ end
50
+ end
@@ -1,3 +1,3 @@
1
1
  module Teodoro
2
- VERSION = '0.68.0'.freeze
2
+ VERSION = '0.69.0'.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.68.0
4
+ version: 0.69.0
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-07 00:00:00.000000000 Z
11
+ date: 2024-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -115,6 +115,7 @@ files:
115
115
  - lib/teodoro/leiaute/arquivo_s2206.rb
116
116
  - lib/teodoro/leiaute/arquivo_s2210.rb
117
117
  - lib/teodoro/leiaute/arquivo_s2220.rb
118
+ - lib/teodoro/leiaute/arquivo_s2221.rb
118
119
  - lib/teodoro/leiaute/arquivo_s2230.rb
119
120
  - lib/teodoro/leiaute/arquivo_s2240.rb
120
121
  - lib/teodoro/leiaute/arquivo_s2250.rb