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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf3085d741f4692de92318de22d52c924e2b50a41430eb17aeda82d823c9b846
4
- data.tar.gz: 16d156a824a25061b2ae5a19fdaacbc8f336d1fdd684470fa44f1d7f2e80fc2a
3
+ metadata.gz: d8bc0c743041a950b23004d3f5ab935714011a02b21ca99ffbbce4e9b8be6009
4
+ data.tar.gz: 635be2d9fce0353150d8cc1ee547412d227ab6913cb9842e17ac6db741213bab
5
5
  SHA512:
6
- metadata.gz: f6f7ca2fec3f971df0dec44bda1fe55e7f2feb6b9d63fdfb6815308bd0154eb31a7e3f96d00a7ccfd9d51f2991556f1d9db5daf361bffda7ea078ae096ae05ea
7
- data.tar.gz: e59a7fe117ef52b5b42b52a9158ed698656ef4205413dd4af964d62bac676b7c2f8f0d37f370a1dcd246cf7c0a5df014d7f51a90e43258d83c04089c22316f1a
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, query_constraints: [:dpf_matriculatitular, :dpf_regfolha], primary_key: [:matricula, :folhas]
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
@@ -1,3 +1,3 @@
1
1
  module Sticutils
2
- VERSION = "2.1.3"
2
+ VERSION = "3.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', '>= 5.0'
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: 2.1.3
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: '5.0'
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: '5.0'
25
+ version: '7.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
28
  requirement: !ruby/object:Gem::Requirement