inss_calculator 0.4.1 → 0.4.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0c5d044bf05b0f50ac8c9b4b6fe0634e0f809fd18918fd84a8a15a5fcbfd09a
|
4
|
+
data.tar.gz: 56906b9378630a07cb21ab2fab31caf77511a2808b78d347270ccde37df6ea08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a10e9bda6faff9e6ce0765aa5ae6ceb92dbd0fe333995312860acc68bb15a6c085eb0a17097a0937fdb56d392f4fb61f4912676ae77e80d2bfd387e17e244a
|
7
|
+
data.tar.gz: 1ed31865a00db8bd38a9b782bcd0d7cd2e899e3743b221de2de85e8ffcf391e3dfaa5fb7308d7763c0df02c777fbbbad1554ecf82a6bf61b087f39166c732cd3
|
@@ -9,7 +9,7 @@ module InssCalculator
|
|
9
9
|
class Text
|
10
10
|
extend Forwardable
|
11
11
|
|
12
|
-
def_delegators :@calculator, :salary, :net_salary
|
12
|
+
def_delegators :@calculator, :salary, :net_salary
|
13
13
|
|
14
14
|
attr_reader :calculator
|
15
15
|
|
@@ -17,6 +17,10 @@ module InssCalculator
|
|
17
17
|
@calculator = inss_calculator
|
18
18
|
end
|
19
19
|
|
20
|
+
def contribution
|
21
|
+
Dinheiro.new(calculator.contribution).real_formatado
|
22
|
+
end
|
23
|
+
|
20
24
|
def present
|
21
25
|
"#{salary_text} #{contribution_text} #{net_salary_text}"
|
22
26
|
end
|
data/lib/inss_calculator.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inss_calculator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Felipe Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Calcula o valor a descontar de acordo com a faixa salarial. Os novos
|
14
14
|
valores corrente em 2024.
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- lib/inss_calculator/discount_calculator_base.rb
|
36
36
|
- lib/inss_calculator/discount_previdence_calculator.rb
|
37
37
|
- lib/inss_calculator/eigth_discount_calculator.rb
|
38
|
+
- lib/inss_calculator/error/no_method_error.rb
|
38
39
|
- lib/inss_calculator/fifth_discount_calculator.rb
|
39
40
|
- lib/inss_calculator/first_discount_calculator.rb
|
40
41
|
- lib/inss_calculator/fourth_discount_calculator.rb
|