US_2018_Tax 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +35 -0
- data/lib/US_2018_Tax/builder.rb +4 -4
- data/lib/US_2018_Tax/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 128c06418b8b59883480e802867f8c93e28690c2
|
|
4
|
+
data.tar.gz: a43a5976903cc67ee153a8c4d10be01ab5510d7c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f92ef5405f19d383d749f1c058b16b86830a1d012fd035deffaaa81608f821657742b264806d474eb10721ddb944308a8d535116867cd06a2655d135f02d8dd9
|
|
7
|
+
data.tar.gz: 6ff0de21b294813c75d20aac472275f3985adb0f75bbfb8b68ea1e8a2b8ef3b57250adfad8691dcd178df0b71b4d17fccf0c0ea9e8c169f7a1d8981daadce12b
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
US_2018_Tax (0.1.1)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
diff-lcs (1.3)
|
|
10
|
+
rake (10.5.0)
|
|
11
|
+
rspec (3.8.0)
|
|
12
|
+
rspec-core (~> 3.8.0)
|
|
13
|
+
rspec-expectations (~> 3.8.0)
|
|
14
|
+
rspec-mocks (~> 3.8.0)
|
|
15
|
+
rspec-core (3.8.0)
|
|
16
|
+
rspec-support (~> 3.8.0)
|
|
17
|
+
rspec-expectations (3.8.2)
|
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
+
rspec-support (~> 3.8.0)
|
|
20
|
+
rspec-mocks (3.8.0)
|
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
+
rspec-support (~> 3.8.0)
|
|
23
|
+
rspec-support (3.8.0)
|
|
24
|
+
|
|
25
|
+
PLATFORMS
|
|
26
|
+
ruby
|
|
27
|
+
|
|
28
|
+
DEPENDENCIES
|
|
29
|
+
US_2018_Tax!
|
|
30
|
+
bundler (~> 1.17)
|
|
31
|
+
rake (~> 10.0)
|
|
32
|
+
rspec (~> 3.0)
|
|
33
|
+
|
|
34
|
+
BUNDLED WITH
|
|
35
|
+
1.17.1
|
data/lib/US_2018_Tax/builder.rb
CHANGED
|
@@ -9,10 +9,6 @@ module US_2018_Tax
|
|
|
9
9
|
return calculate_tax(@net_income) if income_numeric?
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def gross_income
|
|
13
|
-
@net_income - calculate_tax
|
|
14
|
-
end
|
|
15
|
-
|
|
16
12
|
def income_numeric?
|
|
17
13
|
(@net_income.is_a? Numeric || @net_income.integer?)
|
|
18
14
|
end
|
|
@@ -42,6 +38,10 @@ module US_2018_Tax
|
|
|
42
38
|
calculate_tax(net_income) if income_numeric?
|
|
43
39
|
end
|
|
44
40
|
|
|
41
|
+
def gross_income
|
|
42
|
+
@net_income - calculate_tax(@net_income)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
45
|
def gross_with_deduction
|
|
46
46
|
@net_income - calculate_with_standard_deduction
|
|
47
47
|
end
|
data/lib/US_2018_Tax/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: US_2018_Tax
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- wesley sprague
|
|
@@ -64,6 +64,7 @@ files:
|
|
|
64
64
|
- ".travis.yml"
|
|
65
65
|
- CODE_OF_CONDUCT.md
|
|
66
66
|
- Gemfile
|
|
67
|
+
- Gemfile.lock
|
|
67
68
|
- LICENSE.txt
|
|
68
69
|
- README.md
|
|
69
70
|
- Rakefile
|