inss_calculator 0.3.0 → 0.3.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: e12311e6e06783b04c8602f840b94674b7fbb935a20c86c302de4c3801d899fd
4
- data.tar.gz: 8798314565756151e4821114d5c27dde36c33285eb453cb59a6e84c6ecc66530
3
+ metadata.gz: 930151d58edfe02aeb3b597a2b51b569cba243a6560c56a5d345869f498570ab
4
+ data.tar.gz: 665e637c5662127e28ddd1785fde22697f315f71954106b03a3d33d52b764ae7
5
5
  SHA512:
6
- metadata.gz: 48c832e1fb4bc2543b72bb9f78f87fbb98eb6a0dc129b9c927422da978bfff8f688f9f45587630887a5be9fded9a8c2ee5267eee929d28e0309b1d0e0be8dad8
7
- data.tar.gz: 695c126b9665d5efb414f9c7b8e1339394e6798b2ecb40cb5b20b6120e447129217ceca69bc5e5b16a42bf9faf47fa193c1b2bdb92c6ca12548353a3ff94cbe9
6
+ metadata.gz: ca58062897e260e5c1c4e8863d95f16d9cbc9179645119ecdf5bd7b3af1d1b279577cf8b7602a0ad2292b496b095c0431123725f5b904aef639b8bff1ff75c28
7
+ data.tar.gz: 4a8f8ef91bbab45fc4dd03b3169a962d98a075dfed9ddc90f2c681ec66f1e43fb6a231712e8b54188d62be2b4c224bac2206df8e9bfeb2d6d29c810699b05014
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- inss_calculator (0.2.0)
4
+ inss_calculator (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -15,11 +15,11 @@ module InssCalculator
15
15
  SecondDiscountCalculator.new(salary).contribution,
16
16
  ThirdDiscountCalculator.new(salary).contribution,
17
17
  FourthDiscountCalculator.new(salary).contribution
18
- ].reduce(:+).truncate(2)
18
+ ].reduce(:+).round(2)
19
19
  end
20
20
 
21
21
  def net_salary
22
- salary - contribution
22
+ (salary - contribution).round(2)
23
23
  end
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InssCalculator
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
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.3.0
4
+ version: 0.3.1
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: 2024-07-03 00:00:00.000000000 Z
11
+ date: 2024-07-09 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.