take_home 1.0.3 → 1.1.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: 128ab59dc8bfa47dccb9c0748878775e47c99ab2fa0fb4e857e45f3b2591c8a9
4
- data.tar.gz: 127bf4bb406629a7049eb7b6e934d10b55648a9cc5b9decacf1a59b218748cd7
3
+ metadata.gz: 50c73ecdd374a8e6cd1b69c1360003c6f29a2618bff162fc51cc31e1c7dd323d
4
+ data.tar.gz: 913da12cce3ec4a15ea0ee9c66dccfe1f7d53914f036b11930e6681e5f0be622
5
5
  SHA512:
6
- metadata.gz: 4be98428a21d300ffe94fdd9814c1bdcf67ec880f20c820afbed681519ddc158d70672aa911a7ace3c3e1e8342310d70dfed74c7fb88745575ffaf6f7125ba21
7
- data.tar.gz: 23529cac0d9e6918266b8bb077067bcd28b79c27530c8c4ff16e3b7775194740ff8a28e9bd9d22c8ad77ce31c208ee8d9ae79de7536b2ccb037a78dcbd29ba95
6
+ metadata.gz: 554258bec0de83099a24d8a44da3f7a6fec48b96105155136b8a6cf748ea5a81991900c88ff2f98229f8d58bbb7fad554c4b68a3e3aa6314500e6e9c7de5107e
7
+ data.tar.gz: 464ff5b00761a39faf078082cad6c66bc5405c7b4c08d2287fe2ee929baef31f0d85416bf8a9afb905151e9aa67d71af7aeef66b522b13522a7848d2be309710
@@ -1,8 +1,8 @@
1
1
  module TaxConstants
2
- module FY2020
2
+ module FY2022
3
3
  NO_DEDUCTION = 0
4
- FEDERAL_SINGLE_STD_DEDUCTION = 12_200
5
- FEDERAL_MARRIED_STD_DEDUCTION = 24_400
4
+ FEDERAL_SINGLE_STD_DEDUCTION = 12_950
5
+ FEDERAL_MARRIED_STD_DEDUCTION = 25_900
6
6
 
7
7
  SOCIAL_SECURITY_TAX_RATES = {
8
8
  137_700 => 0.062,
@@ -20,27 +20,27 @@ module TaxConstants
20
20
  }
21
21
 
22
22
  FEDERAL_SINGLE_INCOME_TAX_RATES = {
23
- 9700 => 0.10,
24
- 39_475 => 0.12,
25
- 84_200 => 0.22,
26
- 160_725 => 0.24,
27
- 204_100 => 0.32,
28
- 510_300 => 0.35,
23
+ 10_275 => 0.10,
24
+ 41_775 => 0.12,
25
+ 89_075 => 0.22,
26
+ 170_050 => 0.24,
27
+ 215_950 => 0.32,
28
+ 539_900 => 0.35,
29
29
  Float::INFINITY => 0.37
30
30
  }
31
31
 
32
32
  FEDERAL_MARRIED_INCOME_TAX_RATES = {
33
- 19_400 => 0.10,
34
- 78_950 => 0.12,
35
- 168_400 => 0.22,
36
- 321_450 => 0.24,
37
- 408_200 => 0.32,
38
- 612_350 => 0.35,
33
+ 20_550 => 0.10,
34
+ 83_550 => 0.12,
35
+ 178_150 => 0.22,
36
+ 340_100 => 0.24,
37
+ 431_900 => 0.32,
38
+ 647_850 => 0.35,
39
39
  Float::INFINITY => 0.37
40
40
  }
41
41
 
42
- GEORGIA_SINGLE_STD_DEDUCTION = 4600
43
- GEORGIA_MARRIED_STD_DEDUCTION = 6000
42
+ GEORGIA_SINGLE_STD_DEDUCTION = 5400
43
+ GEORGIA_MARRIED_STD_DEDUCTION = 7100
44
44
 
45
45
  GEORGIA_SINGLE_INCOME_TAX_RATES = {
46
46
  750 => 0.01,
data/lib/take_home.rb CHANGED
@@ -1,4 +1,4 @@
1
- require_relative 'fy2020.rb'
1
+ require_relative 'fy2022.rb'
2
2
 
3
3
  class TaxablePerson
4
4
  attr_reader :income
@@ -60,7 +60,7 @@ class TaxablePerson
60
60
  attr_accessor :medicare_deduction
61
61
 
62
62
  def configure(opts)
63
- constants = TaxConstants::FY2020::LOOKUP[tax_type]
63
+ constants = TaxConstants::FY2022::LOOKUP[tax_type]
64
64
  self.state_tax_rates = opts[:state_tax_rates] || constants[state][:rates]
65
65
  self.federal_tax_rates = opts[:federal_tax_rates] || constants[:federal][:rates]
66
66
  self.social_security_tax_rates = opts[:social_security_tax_rate] || constants[:social_security][:rates]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: take_home
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Wiseman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2022-12-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Help folks figure out their take home pay and taxes.
14
14
  email: patrick.wiseman@deft.services
@@ -16,13 +16,13 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/fy2020.rb
19
+ - lib/fy2022.rb
20
20
  - lib/take_home.rb
21
21
  homepage: https://github.com/thephw/take_home
22
22
  licenses:
23
23
  - MIT
24
24
  metadata: {}
25
- post_install_message:
25
+ post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
28
  - lib
@@ -37,8 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  requirements: []
40
- rubygems_version: 3.0.3
41
- signing_key:
40
+ rubygems_version: 3.3.7
41
+ signing_key:
42
42
  specification_version: 4
43
43
  summary: Calculate take home pay and taxes
44
44
  test_files: []