teodoro 0.69.3 → 0.69.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teodoro/arquivo_data.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s2205.rb +1 -1
- data/lib/teodoro/obj.rb +5 -6
- data/lib/teodoro/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 773ae6aa81d35e06431c08b4f381143b6304e952357fe6981e71696f3808b1da
|
4
|
+
data.tar.gz: 58eabc8b5cd9188487a84e7eaffb8ffc50a4aa0444705348a181d0a439d37bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc1a0845e4829587edad0aaa2d78c559082cfbbb2d881ccd8b709158f1b6c644b866d70244a699e9b28b0aef1967f96d77a0c94b42c5a7cf5c5cd294fb67a11b
|
7
|
+
data.tar.gz: 2c13c8dd0689481dc277af5acb0bc318d8ba956ffcf337d2e3c9485e147681af1f21ae6fcf9277f009c33bc94c68b7230f8aba4cf2d9993204b79845095e70ab
|
data/lib/teodoro/arquivo_data.rb
CHANGED
@@ -36,11 +36,11 @@ module Teodoro
|
|
36
36
|
private
|
37
37
|
|
38
38
|
def inclusao_de_arquivo?
|
39
|
-
operacao == :inclusao
|
39
|
+
operacao == :inclusao || (operacao == :inclusao_atualizacao && !File.exist?(caminho))
|
40
40
|
end
|
41
41
|
|
42
42
|
def atualizacao_de_arquivo?
|
43
|
-
operacao == :atualizacao
|
43
|
+
operacao == :atualizacao || (operacao == :inclusao_atualizacao && File.exist?(caminho))
|
44
44
|
end
|
45
45
|
|
46
46
|
def salvar_conteudo_do_arquivo_original
|
@@ -149,7 +149,7 @@ module Teodoro
|
|
149
149
|
contratos_de_trabalho.sum([]) do |contrato_de_trabalho| # rubocop:disable Metrics/BlockLength
|
150
150
|
[
|
151
151
|
Obj.new(
|
152
|
-
operacao: :
|
152
|
+
operacao: :inclusao_atualizacao,
|
153
153
|
nome: [
|
154
154
|
"TRA[#{trabalhador.cpf}]",
|
155
155
|
contrato_de_trabalho.nome_do_arquivo_data_identificacao_do_contrato,
|
data/lib/teodoro/obj.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
data.
|
5
|
-
|
6
|
-
end
|
1
|
+
module Obj
|
2
|
+
@structs = {}
|
3
|
+
def self.new(data)
|
4
|
+
(@structs[data.keys] || (@structs[data.keys] = Struct.new(*data.keys)))
|
5
|
+
.new(*data.values)
|
7
6
|
end
|
8
7
|
end
|
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.5
|
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-
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
|
-
rubygems_version: 3.
|
154
|
+
rubygems_version: 3.1.6
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: ''
|