train-tax-calculator 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: 61280b3a2f140b9094d0922b9057341dbbd3d6c8
4
- data.tar.gz: 6e37031bd76580def680e0b8dce8345c432cb240
3
+ metadata.gz: e75c2fa63da77c900496e7560a2d6527c4b44060
4
+ data.tar.gz: 668c9b05b5f7bedc7b5ad3342f4b45106fd0c793
5
5
  SHA512:
6
- metadata.gz: c36bbe82c1802ed3c741bb2b977d25a27326f4c7b3144145aa12d0b64ad99899498747cc6c8d1115543572984edf5101957cfd2b9871ea3599ddd37d0664e160
7
- data.tar.gz: e76dd09f0fa1999e295595c571ea3bc2d69789d242b43117232f1edf65c43a430d80443f4bae1be14d2fec81d745981a2b3c102bf27a9b719ffe3ba4d5426c23
6
+ metadata.gz: 697bc9288a0cd1556a3c94199eb96e7f10dc0558ef46e53de365c17eae16947ff278cbe219146ae71ff8a861eec710f712ee43588cf58f814e1dcec88bcff9b2
7
+ data.tar.gz: dbc755e9e52d489f6aabc6e6b943a5bc09820da4b116bee82921900c11fb37d32e19686cbea8f4c8b2943faf3622a652494d92dd880884aaba6b12ab02f85f29
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Train::Tax::Calculator
1
+ # TRAIN Tax Calculator for PH 2018
2
2
 
3
3
  ## Installation
4
4
 
@@ -15,7 +15,7 @@ module Train
15
15
  hash[:pagibig] = for_pagibig(basic_salary)
16
16
  hash[:total_deductions] = hash[:sss] + hash[:philhealth] + hash[:pagibig]
17
17
  hash[:withholding_tax] = withholding_tax(basic_salary)
18
- hash[:net_income] = net_income(basic_salary)
18
+ hash[:net_income] = basic_salary - hash[:withholding_tax]
19
19
 
20
20
  hash
21
21
  end
@@ -37,10 +37,6 @@ module Train
37
37
  compute_withholding_for(taxable_income).round(2)
38
38
  end
39
39
 
40
- def net_income(basic_salary)
41
- basic_salary - withholding_tax(basic_salary)
42
- end
43
-
44
40
  def compute_withholding_for(income)
45
41
  if income >= HIGHEST_BRACKET
46
42
 
@@ -1,7 +1,7 @@
1
1
  module Train
2
2
  module Tax
3
3
  module Calculator
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -6,8 +6,8 @@ require "train/tax/calculator/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "train-tax-calculator"
8
8
  spec.version = Train::Tax::Calculator::VERSION
9
- spec.authors = ["Mark Chavez"]
10
- spec.email = ["markchav3z@gmail.com"]
9
+ spec.authors = ["Mark Chavez", "Christopher Celestial", "Beverly Monungolh", "Jean Marie Catibog"]
10
+ spec.email = ["markchav3z@gmail.com", "celestialchristopher@gmail.com", "beverlyamonungolh@gmail.com", "jeancatibog@gmail.com"]
11
11
 
12
12
  spec.summary = %q{TRAIN Tax Calculator for PH 2018}
13
13
  spec.description = %q{Computes withholding tax and net income}
metadata CHANGED
@@ -1,10 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-tax-calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez
8
+ - Christopher Celestial
9
+ - Beverly Monungolh
10
+ - Jean Marie Catibog
8
11
  autorequire:
9
12
  bindir: exe
10
13
  cert_chain: []
@@ -55,6 +58,9 @@ dependencies:
55
58
  description: Computes withholding tax and net income
56
59
  email:
57
60
  - markchav3z@gmail.com
61
+ - celestialchristopher@gmail.com
62
+ - beverlyamonungolh@gmail.com
63
+ - jeancatibog@gmail.com
58
64
  executables: []
59
65
  extensions: []
60
66
  extra_rdoc_files: []