sticutils 2.1.3 → 3.0.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 +4 -4
- data/README.md +6 -0
- data/app/models/gestorh/folha_agrupada_id_separado.rb +1 -1
- data/lib/sticutils/version.rb +1 -1
- data/sticutils.gemspec +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: d8bc0c743041a950b23004d3f5ab935714011a02b21ca99ffbbce4e9b8be6009
|
|
4
|
+
data.tar.gz: 635be2d9fce0353150d8cc1ee547412d227ab6913cb9842e17ac6db741213bab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25354d8c1d6de8b30031c726a337918257d730ed4e7a6a0d99274037462457bb4c51b8be6db4194dc62c7aa45be4cf66f5d9a1d69cc68e60e24744b6f70a4ea9
|
|
7
|
+
data.tar.gz: 0d7a85af849c5b58abbac353072f516cc6a27db802cb668658eaa2c03ba7c9c12f8b0688cf80e10d1ea1a0a447d3d4f86324d4d034e55ac6d1a5e84ea4facfc4
|
data/README.md
CHANGED
|
@@ -4,6 +4,12 @@ Welcome to your new gem! In this directory, you'll find the files you need to be
|
|
|
4
4
|
|
|
5
5
|
TODO: Delete this and the text above, and describe your gem
|
|
6
6
|
|
|
7
|
+
## Requisitos
|
|
8
|
+
|
|
9
|
+
- **Rails >= 7.2** (o `has_many :dependentes` de `Gestorh::FolhaAgrupadaIdSeparado`
|
|
10
|
+
usa `foreign_key:` com array, API aceita a partir do Rails 7.2 e obrigatória no
|
|
11
|
+
Rails 8+, onde `query_constraints:` foi removido das associações).
|
|
12
|
+
|
|
7
13
|
## Installation
|
|
8
14
|
|
|
9
15
|
Add this line to your application's Gemfile:
|
|
@@ -9,7 +9,7 @@ class Gestorh::FolhaAgrupadaIdSeparado < Gestorh::GestorhRecord
|
|
|
9
9
|
belongs_to :lotacao, foreign_key: :mvps_reglotacao, primary_key: :lt_registro
|
|
10
10
|
belongs_to :nivel_salario, foreign_key: :mvps_nivelsalario, primary_key: :ns_registro
|
|
11
11
|
|
|
12
|
-
has_many :dependentes,
|
|
12
|
+
has_many :dependentes, foreign_key: [:dpf_matriculatitular, :dpf_regfolha], primary_key: [:matricula, :folhas]
|
|
13
13
|
|
|
14
14
|
def liquido_total
|
|
15
15
|
rendimento_total - desconto_total
|
data/lib/sticutils/version.rb
CHANGED
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', '>=
|
|
33
|
+
spec.add_dependency 'rails', '>= 7.2'
|
|
34
34
|
|
|
35
35
|
spec.add_development_dependency "bundler", "~> 1.16"
|
|
36
36
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sticutils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ricardo Viana
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
18
|
+
version: '7.2'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '
|
|
25
|
+
version: '7.2'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: bundler
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|