sticutils 1.4.2 → 2.0.1

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: 27f936d59e69a6d8c36c1f72b4138cb690e10416b6044440c3840fc093e8b43a
4
- data.tar.gz: 233a8ca8564663f6e0d2fecc459bb7869177fdb64e1f0227b9943969068a6e87
3
+ metadata.gz: 3a5ad2176049e33437f700e3c180a6b87d244a98592804ee6bd0df2f0fd3e448
4
+ data.tar.gz: 53ac8459e6b80c58f004866a0b1bc207bbf5e5f13d20b29bfbbac2f88b3b62e2
5
5
  SHA512:
6
- metadata.gz: e5bd9389e230ead9aeb77202d6fc1018dc7dc2955718c6a5803a4b9b96fdd90abd1747a1c1ccf4be24b857d48467aec7c6a5ffe6f7bbfdffa1e5dc1950e24ad3
7
- data.tar.gz: f42dd98c1f4bf9b16934bb823ac551699699e6da167de7d6699847f275d809e55509b12a812d20a9ead4836f6923883c36edebb7b52b352a33234c3605b040c2
6
+ metadata.gz: 64d0daf52c12b7db3af4631cf72fcad4df1a37464e1ca3575c0c14a7b08ed621476bfdf85dd72e56cc405585e09006fdf6c1c687d922d4ee13e35a28565bbefc
7
+ data.tar.gz: 982292e4a24e0351a0d70525a9be4874ec6e074d06a199157279e24ba590221585a83072d43d7694de7204ce768625d5802872f9494fb5bc355222b1be75b389
@@ -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
@@ -14,4 +14,6 @@ class Intranet::GlobalPrepessoafisica < Intranet::IntranetRecord
14
14
  has_one :tjpi_previnculados, :class_name => 'TjpiPrevinculado', foreign_key: :prePessoaFisica_id
15
15
  has_one :tjpi_vinculado, :class_name => 'TjpiPrevinculado', foreign_key: :prePessoaFisica_id
16
16
  has_many :tjpi_vinculos, through: :tjpi_vinculado, source: :tjpi_vinculo_principal
17
+
18
+ belongs_to :endereco_secundario, class_name: 'GlobalEndereco', foreign_key: :enderecoSecundario_id
17
19
  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
@@ -20,4 +20,6 @@ class Intranet::TjpiPrevinculado < Intranet::IntranetRecord
20
20
  belongs_to :tjpi_previnculadointervencao_ultima, class_name: 'TjpiPrevinculadointervencao', foreign_key: :intervencao_id
21
21
  belongs_to :tjpi_previnculadointervencao_anterior, class_name: 'TjpiPrevinculadointervencao', foreign_key: :anterior_id
22
22
  has_many :tjpi_previnculadointervencoes, class_name: 'TjpiPrevinculadointervencao', foreign_key: :preVinculado_id
23
+
24
+ has_one :presenca_frequentador, class_name: 'PresencaFrequentador', foreign_key: :vinculado_id
23
25
  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
@@ -40,4 +40,7 @@ class Intranet::TjpiVinculo < Intranet::IntranetRecord
40
40
  belongs_to :area_estagio, :class_name => 'TjpiAreaestagio', :foreign_key => :areaEstagio_id
41
41
  belongs_to :instituicao_ensino, :class_name => 'GlobalOrgao', :foreign_key => :instituicaoDeEnsino_id
42
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
43
46
  end
@@ -1,4 +1,3 @@
1
1
  module Sticutils
2
- # VERSION = "0.4.2"
3
- VERSION = "1.4.2"
2
+ VERSION = "2.0.1"
4
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.2
4
+ version: 2.0.1
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-31 00:00:00.000000000 Z
11
+ date: 2022-07-18 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
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  - !ruby/object:Gem::Version
267
267
  version: '0'
268
268
  requirements: []
269
- rubygems_version: 3.1.6
269
+ rubygems_version: 3.3.17
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Utilidades para aplicações rails da STIC