sticutils 1.4.1 → 2.0.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: 46a9fe2516c0cda974638b2d5761309281c00642a6d2fbbe3296a482b048e797
4
- data.tar.gz: 71aceffbd5aa1f9edf644da60b229b6c8eb408683ef4d3a4f8562217e20f4a71
3
+ metadata.gz: 0cce7648391b8023dad3eda6a8f3da5ea6ecc2a31c235ff99e88fc21f9996326
4
+ data.tar.gz: 23e5d31b3a4a7d5c7bcf8e4464ab7b1d6448f1318bc299b071a856045fa923fd
5
5
  SHA512:
6
- metadata.gz: e8e62b4fc05d5def3eb8d02429937b998f0ae030511a4550e118ec3e658c40953d8a21c0807f45dc7461e4eaad197480ef691f080989f969284971f6fd9ee80e
7
- data.tar.gz: 83d44504eda2f709df81870df3a7800663abb81cb58dc8b34532f6dc8aada8cbb696ba55fe6b56bdc6f63e38a38379cf97f35a82d79c7e91b3cebfba5af209bb
6
+ metadata.gz: f5c03a7a55ff53af3d19e1e6375be888bbaa29a8e7df6a9f8634e2a922a184ae906619fb135360eb15b1e95da7db8aef9329b6c69a192954d20af19e87357e9b
7
+ data.tar.gz: bdc6996beec9f58f21d74072f78dcc10257b1bd9e9537651469766a0b3d57b16ad0ae25d024651308653841176780f09fcff2b5a6f534e861e2e9b5cff38b2cf
@@ -1,18 +1,20 @@
1
1
  class Intranet::GlobalPessoafisica < Intranet::IntranetRecord
2
2
  self.table_name = 'global_pessoafisica'
3
3
 
4
- has_many :global_orgaos, :class_name => 'GlobalOrgao'
5
- belongs_to :cidade_nascimento, :class_name => 'GlobalCidade', :foreign_key => :nascimentoCidade_id
6
- belongs_to :global_endereco, :class_name => 'GlobalEndereco', :foreign_key => :endereco_id
7
- belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :user_login
8
- belongs_to :cidade_titulo, :class_name => 'GlobalCidade', :foreign_key => :tituloEleitorCidade_id
9
- belongs_to :estado_rg, :class_name => 'GlobalEstado', :foreign_key => :rgOrgaoExpedidorUF_sigla
10
- belongs_to :global_prepessoafisica, :class_name => 'GlobalPrepessoafisica', foreign_key: :cpf, primary_key: :cpf
4
+ has_many :global_orgaos, class_name: 'GlobalOrgao'
5
+ belongs_to :cidade_nascimento, class_name: 'GlobalCidade', foreign_key: :nascimentoCidade_id
6
+ belongs_to :global_endereco, class_name: 'GlobalEndereco', foreign_key: :endereco_id
7
+ belongs_to :admin_user, class_name: 'AdminUser', foreign_key: :user_login
8
+ belongs_to :cidade_titulo, class_name: 'GlobalCidade', foreign_key: :tituloEleitorCidade_id
9
+ belongs_to :estado_rg, class_name: 'GlobalEstado', foreign_key: :rgOrgaoExpedidorUF_sigla
10
+ belongs_to :global_prepessoafisica, class_name: 'GlobalPrepessoafisica', foreign_key: :cpf, primary_key: :cpf
11
11
 
12
- has_many :global_pessoafisica_contasbancarias, :class_name => 'GlobalPessoafisicaContasbancaria'
13
- has_many :global_pessoafisica_contatos, :class_name => 'GlobalPessoafisicaContato', foreign_key: :pessoaFisica_id
12
+ has_many :global_pessoafisica_contasbancarias, class_name: 'GlobalPessoafisicaContasbancaria'
13
+ has_many :global_pessoafisica_contatos, class_name: 'GlobalPessoafisicaContato', foreign_key: :pessoaFisica_id
14
14
  has_many :global_contatos, through: :global_pessoafisica_contatos
15
-
16
- has_one :tjpi_vinculado, :class_name => 'TjpiVinculado', foreign_key: :pessoaFisica_id
15
+
16
+ has_one :tjpi_vinculado, class_name: 'TjpiVinculado', foreign_key: :pessoaFisica_id
17
17
  has_many :tjpi_vinculos, through: :tjpi_vinculado, source: :tjpi_vinculo_principal
18
+
19
+ belongs_to :endereco_secundario, class_name: 'GlobalEndereco', foreign_key: :enderecoSecundario_id
18
20
  end
@@ -2,16 +2,19 @@ class Intranet::PresencaFrequentador < Intranet::IntranetRecord
2
2
  self.table_name = 'presenca_frequentador'
3
3
 
4
4
  has_many :presenca_calculodiarios, :class_name => 'PresencaCalculodiario'
5
- has_many :presenca_direitos, :class_name => 'PresencaDireito'
6
5
  belongs_to :global_predio, :class_name => 'GlobalPredio', :foreign_key => :localTrabalhoPresenca_id
7
6
  belongs_to :presenca_regimefrequentador, :class_name => 'PresencaRegimefrequentador', :foreign_key => :diferenciado_id
8
7
  belongs_to :presenca_regimefrequentador, :class_name => 'PresencaRegimefrequentador', :foreign_key => :temporario_id
9
8
  belongs_to :presenca_regimefrequentador, :class_name => 'PresencaRegimefrequentador', :foreign_key => :oficial_id
10
- belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
11
9
  belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :cadastrador_id
12
10
  has_many :presenca_regimefrequentadors, :class_name => 'PresencaRegimefrequentador'
13
11
  has_many :presenca_registrofrequencia, :class_name => 'PresencaRegistrofrequencium'
14
12
  has_many :presenca_registromensalfrequencia, :class_name => 'PresencaRegistromensalfrequencium'
15
13
  has_many :presenca_relatoriofrequentadors, :class_name => 'PresencaRelatoriofrequentador'
16
14
  has_many :presenca_valorretroativos, :class_name => 'PresencaValorretroativo'
15
+
16
+ belongs_to :tjpi_vinculo, class_name: 'TjpiVinculado', foreign_key: :vinculoPrincipal_id
17
+ belongs_to :tjpi_vinculado, class_name: 'TjpiVinculado', foreign_key: :vinculado_id
18
+
19
+ has_many :presenca_direitos, class_name: 'PresencaDireito', foreign_key: :frequentador_id
17
20
  end
@@ -14,13 +14,10 @@ class Intranet::TjpiPrevinculado < Intranet::IntranetRecord
14
14
 
15
15
  belongs_to :tjpi_vinculo_principal, :class_name => 'TjpiVinculo', foreign_key: :vinculoPrincipal_id
16
16
  belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', foreign_key: :vinculoPrincipal_id
17
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo', foreign_key: :cadastro_id
17
18
 
18
19
  has_many :tjpi_previnculado_declaracoes, class_name: 'TjpiPrevinculadoDeclaracao', foreign_key: :preVinculado_id
19
20
  belongs_to :tjpi_previnculadointervencao_ultima, class_name: 'TjpiPrevinculadointervencao', foreign_key: :intervencao_id
20
21
  belongs_to :tjpi_previnculadointervencao_anterior, class_name: 'TjpiPrevinculadointervencao', foreign_key: :anterior_id
21
22
  has_many :tjpi_previnculadointervencoes, class_name: 'TjpiPrevinculadointervencao', foreign_key: :preVinculado_id
22
-
23
- def tjpi_vinculos
24
- [self.tjpi_vinculo_principal]
25
- end
26
23
  end
@@ -1,7 +1,6 @@
1
1
  class Intranet::TjpiVinculado < Intranet::IntranetRecord
2
2
  self.table_name = 'tjpi_vinculado'
3
3
 
4
- has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
5
4
  has_many :sistema_usuarios, :class_name => 'SistemaUsuario'
6
5
  has_many :tjpi_habilitacaovinculados, :class_name => 'TjpiHabilitacaovinculado'
7
6
  belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :pessoaFisica_id
@@ -13,4 +12,6 @@ class Intranet::TjpiVinculado < Intranet::IntranetRecord
13
12
  belongs_to :tjpi_vinculo_principal, :class_name => 'TjpiVinculo', foreign_key: :vinculoPrincipal_id
14
13
  belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', foreign_key: :vinculoPrincipal_id
15
14
  has_many :tjpi_vinculos, :class_name => 'TjpiVinculo', foreign_key: :vinculado_id
15
+
16
+ has_one :presenca_frequentador, class_name: 'PresencaFrequentador', foreign_key: :vinculado_id
16
17
  end
@@ -13,29 +13,34 @@ class Intranet::TjpiVinculo < Intranet::IntranetRecord
13
13
  has_many :tjpi_vinculados, :class_name => 'TjpiVinculado'
14
14
  belongs_to :tjpi_cargo, :class_name => 'TjpiCargo', :foreign_key => :cargo_id
15
15
  belongs_to :tjpi_terceirizacao_contrato, :class_name => 'TjpiTerceirizacaoContrato', :foreign_key => :contratoTerceirizacao_id
16
- belongs_to :tjpi_areaestagio, :class_name => 'TjpiAreaestagio', :foreign_key => :areaEstagio_id
17
16
  belongs_to :tjpi_categoriavinculoconfig, :class_name => 'TjpiCategoriavinculoconfig', :foreign_key => :categoria
18
17
  belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :seccionalOAB_sigla
19
18
  belongs_to :tjpi_terceirizacao_postodetrabalho, :class_name => 'TjpiTerceirizacaoPostodetrabalho', :foreign_key => :postoDeTrabalho_id
20
19
  belongs_to :tjpi_contratocargotemporario, :class_name => 'TjpiContratocargotemporario', :foreign_key => :contrato_id
21
- belongs_to :global_orgao_instituicao, :class_name => 'GlobalOrgao', :foreign_key => :instituicaoDeEnsino_id
22
20
  belongs_to :tjpi_nivelreferencium, :class_name => 'TjpiNivelreferencium', :foreign_key => :nivelReferenciaAtual_id
23
21
  belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculoOrigem_id
24
22
  belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
25
23
  has_one :tjpi_vinculado_principal, :class_name => 'TjpiVinculado', :foreign_key => :vinculoPrincipal_id
26
24
  belongs_to :global_orgao_atual, :class_name => 'GlobalOrgao', :foreign_key => :lotacaoAtual_id
27
25
  belongs_to :global_orgao_origem, :class_name => 'GlobalOrgao', :foreign_key => :orgaoOrigem_id
28
- belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :vagaOrigem_id
29
26
  has_many :tjpi_vinculo_documentos, :class_name => 'TjpiVinculoDocumento', :foreign_key => :vinculo_id
30
27
  belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :lotacaoAtual_id
31
28
  belongs_to :orgao_origem_cargo, :class_name => 'GlobalOrgao', :foreign_key => :origemCargo_id
32
29
  belongs_to :instituidor, class_name: 'GlobalPrepessoafisica', foreign_key: :instituidor_id
33
30
  belongs_to :procurador, class_name: 'GlobalPrepessoafisica', foreign_key: :procurador_id
34
31
  belongs_to :conta_bancaria, class_name: 'GlobalContabancaria', foreign_key: :contaBancaria_id
35
-
32
+
36
33
  has_many :tjpi_previnculados, class_name: 'TjpiPrevinculado', foreign_key: :vinculoPrincipal_id
37
34
  belongs_to :tjpi_previnculado, class_name: 'TjpiPrevinculado', foreign_key: :cadastro_id
38
35
 
39
36
  has_many :tjpi_contrachequeagrupados, class_name: "TjpiContrachequeagrupado", foreign_key: :matricula, primary_key: :matricula
40
37
  has_many :tjpi_contrachequelegados, class_name: "TjpiContrachequelegado", foreign_key: :matricula, primary_key: :matricula
38
+
39
+ # estagio
40
+ belongs_to :area_estagio, :class_name => 'TjpiAreaestagio', :foreign_key => :areaEstagio_id
41
+ belongs_to :instituicao_ensino, :class_name => 'GlobalOrgao', :foreign_key => :instituicaoDeEnsino_id
42
+ belongs_to :vaga_origem, :class_name => 'GlobalCidade', :foreign_key => :vagaOrigem_id
43
+
44
+ has_one :presenca_frequentador, class_name: 'PresencaFrequentador', foreign_key: :vinculoPrincipal_id
45
+ has_many :presenca_direitos, through: :presenca_frequentador
41
46
  end
@@ -1,3 +1,3 @@
1
1
  module Sticutils
2
- VERSION = "1.4.1"
2
+ VERSION = "2.0.0"
3
3
  end
data/sticutils.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency 'rails', '~> 6.0'
33
+ spec.add_dependency 'rails', '>= 5.0'
34
34
 
35
35
  spec.add_development_dependency "bundler", "~> 1.16"
36
36
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.0'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement