formulas 0.1.1.4 → 0.1.1.5

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: 4f95bf8ae022a90b5073d2421bdcad92aa870cc53c0a9c99db8954389e9c832c
4
- data.tar.gz: a2502bbb84087d04237173f139ed0edd13b6adb172016a747f3c093a1e249416
3
+ metadata.gz: 83d6fc2b5bb6cca7fd953251292a8c7a6ca875d9863baca8172e3a28b3adb9d4
4
+ data.tar.gz: 7ccc7609cf9eeb47e90997c9a119801c04a573c8ae7501726a4f9b56f6d0367f
5
5
  SHA512:
6
- metadata.gz: f4382114d2679c7c9e622750bc24407441f70c689bffefb76293bf7de38077d62f34564e6c8d0dc845dccc19eba3d0836420aad03d5bab9a89de58ab2922a670
7
- data.tar.gz: 6d687293ba712f2861b1a7dfd0f78da9a7ce0b0c40b9bd52923c35b17886b6aa9516549b3117497633c357fd8266b18628ec81b6d5a954d533c305f3260a9e77
6
+ metadata.gz: 5ee13fdf52c560cda1700fb92e14c84759444bb2550504cdf2066a92fa273b6ee61ad701a3b3589d2a577b32274db66a9cefa0b57f4c64ba4ea74082d9028792
7
+ data.tar.gz: 3391896c0adc427c1edb1a568c8a4578df8ee339831fc4245ac45acb37b99a8b88fd7d76a1bc0e54c53446fa8aa3e4fbfea25ca3e4ec62616f4b07407451f724
data/formulas.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'formulas'
3
- s.version = '0.1.1.4'
3
+ s.version = '0.1.1.5'
4
4
  s.summary = "formulas"
5
5
  s.description = "Home loan formulas"
6
6
  s.authors = ["formulas"]
@@ -40,12 +40,11 @@ module Formulas
40
40
  def annual_tax
41
41
  annual_result = 0
42
42
 
43
- if gross_pay_tax_index > 0
44
- @tax_rate[0..gross_pay_tax_index].each_with_index do |current, index|
45
- l = (index == gross_pay_tax_index) ? annual_gross_pay : current[0][1]
46
- annual_result += ((l - current[0][0]) * (current[1].to_f / 100))
47
- end
43
+ @tax_rate[0..gross_pay_tax_index].each_with_index do |current, index|
44
+ l = (index == gross_pay_tax_index) ? annual_gross_pay : current[0][1]
45
+ annual_result += ((l - current[0][0]) * (current[1].to_f / 100))
48
46
  end
47
+
49
48
  annual_result
50
49
  end
51
50
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formulas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.4
4
+ version: 0.1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - formulas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-05 00:00:00.000000000 Z
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.0.9
82
+ rubygems_version: 3.1.2
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: formulas