banco 1.0.1 → 1.0.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 +4 -4
- data/LICENSE +2 -2
- data/README +4 -4
- data/bin/banco +1 -1
- data/lib/banco/transaction.rb +1 -1
- data/lib/banco/viewable.rb +5 -5
- metadata +15 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c230ed99ba0f6d76fa738cc6ff8a3ea55173c6051765bff9971591b669df8fc
|
|
4
|
+
data.tar.gz: 12a1a50bd2fed725e4b339b212e2ba71342a240ef4a98639faa69894e60fa1c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee6561fc735f9ecbda6673c264c48d9ef71bfb8a1f2483e6a9feee865469c0a7f2d36c1d239e9220ff1ab71350575b2af5b000447035e20ce95ec0f47eba8be0
|
|
7
|
+
data.tar.gz: ef5106aad369fd69f76c0425127db3fb0287281914075417a863ce501f902baa5d81d6b2ee365edda16e3b34f66dfa06bad7c8ee1e10317dac1ceec3a44ebacd
|
data/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2017
|
|
1
|
+
Copyright (c) 2017 s33dco
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
16
16
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
-
SOFTWARE.
|
|
19
|
+
SOFTWARE.
|
data/README
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Welcome to Banco !
|
|
2
2
|
|
|
3
|
-
Banco has been developed to summarize statements downloaded from your bank.
|
|
3
|
+
Banco has been developed to summarize statements downloaded from your bank.
|
|
4
4
|
Install as a Rubygem, navigate to the directory your .csv files are in and execute from the command line with 'banco'.
|
|
5
5
|
|
|
6
|
-
Banco will only accept comma seperated value files (.csv) and will produce a summary for the period uploaded from the file.
|
|
6
|
+
Banco will only accept comma seperated value files (.csv) and will produce a summary for the period uploaded from the file.
|
|
7
7
|
|
|
8
|
-
Remove the header line from your downloaded bank statement, ensure the columns are ordered date, description, type of charge, money in an money out from left to right, any columns right of the fifth will be ignored. Banco will total the incoming & outgoing transactions for the period. Reporting the bottom line aswell as summing up the values for similar transactions. This is achieved by matching the description name, currently set at the first 9 characters of the string, you can change this to be more or less exact.
|
|
8
|
+
Remove the header line from your downloaded bank statement, ensure the columns are ordered date, description, type of charge, money in an money out from left to right, any columns right of the fifth will be ignored. Banco will total the incoming & outgoing transactions for the period. Reporting the bottom line aswell as summing up the values for similar transactions. This is achieved by matching the description name, currently set at the first 9 characters of the string, (:total_outgoing :total_incoming - class Reporter), you can change this to be more or less exact.
|
|
9
9
|
|
|
10
10
|
Hope your numbers are positive !
|
|
11
11
|
https://github.com/s33dco/banco
|
|
12
|
-
https://rubygems.org/gems/banco
|
|
12
|
+
https://rubygems.org/gems/banco
|
data/bin/banco
CHANGED
|
@@ -12,7 +12,7 @@ module Banco
|
|
|
12
12
|
file = GetFile.new
|
|
13
13
|
reader = Reader.new(file.csv_file_name, file.summary_name)
|
|
14
14
|
reader.read_in_csv_data
|
|
15
|
-
|
|
15
|
+
Reporter.new(reader.csv_file_name, reader.report_name, reader.all_from_csv)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
Viewable::hello
|
data/lib/banco/transaction.rb
CHANGED
data/lib/banco/viewable.rb
CHANGED
|
@@ -40,7 +40,7 @@ module Banco
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def transactions_all
|
|
43
|
-
output =
|
|
43
|
+
output = ""
|
|
44
44
|
output << dashes
|
|
45
45
|
output << "\n"
|
|
46
46
|
output << "All transactions:\n"
|
|
@@ -57,7 +57,7 @@ module Banco
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def transactions_out
|
|
60
|
-
output =
|
|
60
|
+
output = ""
|
|
61
61
|
output << dashes
|
|
62
62
|
output << "\n"
|
|
63
63
|
output << "Outgoing Transactions:\n"
|
|
@@ -68,7 +68,7 @@ module Banco
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def transactions_in
|
|
71
|
-
output =
|
|
71
|
+
output = ""
|
|
72
72
|
output << dashes
|
|
73
73
|
output << "\n"
|
|
74
74
|
output << "Incoming Transactions :\n"
|
|
@@ -79,7 +79,7 @@ module Banco
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
def print_summary(kind, hash, total)
|
|
82
|
-
output =
|
|
82
|
+
output = ""
|
|
83
83
|
output << dashes
|
|
84
84
|
output << "\n"
|
|
85
85
|
output << "#{kind} Summary, totals from #{hash.size} different sources :\n"
|
|
@@ -92,7 +92,7 @@ module Banco
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
def bottom_line
|
|
95
|
-
output =
|
|
95
|
+
output = ""
|
|
96
96
|
output << dashes
|
|
97
97
|
output << "\n"
|
|
98
98
|
output << "#{facts(self.all_transactions)}".rjust(54)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: banco
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- s33d
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -24,18 +24,19 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '2.8'
|
|
27
|
-
description:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
the bottom line aswell as summing up the values for similar transactions. This is
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
description: |
|
|
28
|
+
Welcome to Banco !
|
|
29
|
+
|
|
30
|
+
Banco has been developed to summarize statements downloaded from your bank.
|
|
31
|
+
Install as a Rubygem, navigate to the directory your .csv files are in and execute from the command line with 'banco'.
|
|
32
|
+
|
|
33
|
+
Banco will only accept comma seperated value files (.csv) and will produce a summary for the period uploaded from the file.
|
|
34
|
+
|
|
35
|
+
Remove the header line from your downloaded bank statement, ensure the columns are ordered date, description, type of charge, money in an money out from left to right, any columns right of the fifth will be ignored. Banco will total the incoming & outgoing transactions for the period. Reporting the bottom line aswell as summing up the values for similar transactions. This is achieved by matching the description name, currently set at the first 9 characters of the string, (:total_outgoing :total_incoming - class Reporter), you can change this to be more or less exact.
|
|
36
|
+
|
|
37
|
+
Hope your numbers are positive !
|
|
38
|
+
https://github.com/s33dco/banco
|
|
39
|
+
https://rubygems.org/gems/banco
|
|
39
40
|
email: code@s33d.co
|
|
40
41
|
executables:
|
|
41
42
|
- banco
|