teodoro 0.33.1 → 0.34.0

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: a66f3396cc3707b9f142ea1cd9fff19e85207ea1080b04dce352307de1d12727
4
- data.tar.gz: bdcee38fee19eab6fba5f1eed85ec83c68709720f5af9318d1169d0cc32240b1
3
+ metadata.gz: 362bd430629bbdfd7dcac333707b1e63d9cdf8c70e94d158736ec15f632747a5
4
+ data.tar.gz: 8c9e1e6786b99817a96071d1eb18afa06ca218f791b946a88c2c24876efa3786
5
5
  SHA512:
6
- metadata.gz: 7317f6ea8393488bae0abbe781386bae5a3d6def92e925a436df56909a58968be171974e7fc6250644552070b459cc10d4a20d87abac1d0c4ef4272420d3253c
7
- data.tar.gz: cfaa6fccf1bd93099c39f0ec4d512bceb086db6416ee0c9040e6d4aa429898218024849d44fa93fd6da97eaead87b2b6f0643b9018f553f593207ee2280fbbfa
6
+ metadata.gz: 16f6481ca7a99b5620ce232c5f01585184768a8128c8997474a3dc445547fab9a3017a4b69b304bc3300bfbaf51d2c2c4a08d68e2ffae6ec66b5cf5836bd32c2
7
+ data.tar.gz: c9b526568684505334a02652de60ca1d8ae777a4fd72335a226a8802ea3d2a8a381eff706c067e47e2e83ba49f0cbf1b992ab578ddacd707482a51602d1ec479
data/lib/teodoro.rb CHANGED
@@ -12,7 +12,7 @@ require_relative 'teodoro/empresa'
12
12
  require_relative 'teodoro/obj'
13
13
 
14
14
  module Teodoro
15
- VERSION = '0.33.1'.freeze
15
+ VERSION = '0.34.0'.freeze
16
16
 
17
17
  CBOs = __FILE__
18
18
  .then { File.dirname(_1) }
@@ -11,8 +11,8 @@ module Teodoro
11
11
  nome: "PRE[#{cpf_do_trabalhador}]",
12
12
  itens_do_conteudo: [
13
13
  ['NrRecibo', recibo['recibo/nrRecibo']],
14
- ['CPF', evento['infoRegPrelim/cpfTrab']],
15
- ['Nome'],
14
+ ['CPF', cpf_do_trabalhador],
15
+ ['Nome', cpf_do_trabalhador.then { "#{_1[0..2]}.#{_1[3..5]}.#{_1[6..8]}-#{_1[9..10]}" }],
16
16
  ['DataNascimento', evento['infoRegPrelim/dtNascto'], :data],
17
17
  ['DataAdmissao', evento['infoRegPrelim/dtAdm'], :data],
18
18
  ['IdEvento', id_do_evento]
@@ -22,7 +22,7 @@ module Teodoro
22
22
  end
23
23
 
24
24
  def cpf_do_trabalhador
25
- evento['infoRegPrelim/cpfTrab']
25
+ @cpf_do_trabalhador ||= evento['infoRegPrelim/cpfTrab']
26
26
  end
27
27
  end
28
28
  end
@@ -25,7 +25,7 @@ module Teodoro
25
25
  ['cpfTrabalhador'],
26
26
  ['nomeTrabalhador'],
27
27
  ['TipoInscricaoEmpregador', recibo['ideEmpregador/tpInsc']],
28
- ['AlteracaoContratual_DataAlteracao'],
28
+ ['AlteracaoContratual_DataAlteracao', data_da_alteracao, :data],
29
29
  ['AlteracaoContratual_DataEfeito'],
30
30
  ['AlteracaoContratual_DescricaoAlteracao'],
31
31
  ['IdentificacaoVinculo_Nis', evento['ideTrabSemVinculo/nisTrab']],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.1
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clavius Tales