budget_validator 0.1.0 → 0.2.0
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/budget_validator-0.1.0.gem +0 -0
- data/lib/budget_validator/version.rb +1 -1
- data/lib/budget_validator.rb +9 -7
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92a2fa5f8028f389b84b7707bafa5d9fd82b40a238f5fd23a28524b75b300602
|
|
4
|
+
data.tar.gz: 06dc6d1b196d9e1a056127bf8e6afbe23f470b8f01c39fc3500fab7059e07d32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 266e477c16f278853b1ab95c74f04e96699012c30750e7bfcf017bc793e9546c18a733e1ca507a9267446e387d6e4c3952e88123d122d916b7946c268c5058b4
|
|
7
|
+
data.tar.gz: 00a2cce81df7f0b003e9f6f2d5c77f869a8f14ab3da713e4265794a50986e49f3c947815624ee6061f2fd63cc4a315205777ff6dd5de6966c174173e1eb25295
|
|
Binary file
|
data/lib/budget_validator.rb
CHANGED
|
@@ -19,15 +19,17 @@ module BudgetValidator
|
|
|
19
19
|
"Budget has been exceeded. Total is: #{new_total}, Budget is: #{@budget}"
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
@total_expenses = new_total
|
|
23
|
+
@total_expenses
|
|
24
|
+
end
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
def total_expenses
|
|
27
|
+
@total_expenses
|
|
28
|
+
end
|
|
28
29
|
end
|
|
30
|
+
end
|
|
29
31
|
|
|
30
32
|
|
|
31
|
-
class Error < StandardError; end
|
|
33
|
+
#class Error < StandardError; end
|
|
32
34
|
# Your code goes here...
|
|
33
|
-
end
|
|
35
|
+
#end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: budget_validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shaneburk3
|
|
@@ -20,6 +20,7 @@ extra_rdoc_files: []
|
|
|
20
20
|
files:
|
|
21
21
|
- README.md
|
|
22
22
|
- Rakefile
|
|
23
|
+
- budget_validator-0.1.0.gem
|
|
23
24
|
- lib/budget_validator.rb
|
|
24
25
|
- lib/budget_validator/version.rb
|
|
25
26
|
- sig/budget_validator.rbs
|
|
@@ -45,5 +46,5 @@ requirements: []
|
|
|
45
46
|
rubygems_version: 3.5.23
|
|
46
47
|
signing_key:
|
|
47
48
|
specification_version: 4
|
|
48
|
-
summary:
|
|
49
|
+
summary: If the user goes over the budget, an error will be displayed.
|
|
49
50
|
test_files: []
|