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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60bd4d04204c93b4dbae3ee5becb5def771886eb36c88a75834b71dc8743aeb5
4
- data.tar.gz: c4b8d7afc258181edac4d231ce2bf4a5e8108794bcbc3f1a5b71acf3c37aa12f
3
+ metadata.gz: 6c230ed99ba0f6d76fa738cc6ff8a3ea55173c6051765bff9971591b669df8fc
4
+ data.tar.gz: 12a1a50bd2fed725e4b339b212e2ba71342a240ef4a98639faa69894e60fa1c1
5
5
  SHA512:
6
- metadata.gz: 7a58423aa15b4f3fc8d77f7ed6f671f1949bbe4afb8f479fd363be2cd945ac3875d352ff4d3b11f9a2686539be541636b4df5605417bcbfff3c78941b3378cb1
7
- data.tar.gz: 5c6da026e9223430eaf325c2f3d0b758ba43dd0aaae7dc75efc57307e614ddf5f5d74c8ee64b6653c85bb5c2aeabe920d0b992b2c407b0e616ac038457a5ebfd
6
+ metadata.gz: ee6561fc735f9ecbda6673c264c48d9ef71bfb8a1f2483e6a9feee865469c0a7f2d36c1d239e9220ff1ab71350575b2af5b000447035e20ce95ec0f47eba8be0
7
+ data.tar.gz: ef5106aad369fd69f76c0425127db3fb0287281914075417a863ce501f902baa5d81d6b2ee365edda16e3b34f66dfa06bad7c8ee1e10317dac1ceec3a44ebacd
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017 Ian Marley
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
- report = Reporter.new(reader.csv_file_name, reader.report_name, reader.all_from_csv)
15
+ Reporter.new(reader.csv_file_name, reader.report_name, reader.all_from_csv)
16
16
  end
17
17
 
18
18
  Viewable::hello
@@ -13,7 +13,7 @@ module Banco
13
13
  end
14
14
 
15
15
  def convert(money)
16
- money.nil? ? money = BigDecimal('0') : money = BigDecimal(money)
16
+ money.nil? ? BigDecimal('0') : BigDecimal(money)
17
17
  end
18
18
 
19
19
  def to_s
@@ -40,7 +40,7 @@ module Banco
40
40
  end
41
41
 
42
42
  def transactions_all
43
- output = output_s = ""
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 = output_s = ""
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 = output_s = ""
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 = output_s = ""
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 = output_s = ""
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.1
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-09 00:00:00.000000000 Z
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: "Welcome to Banco !\n\nBanco has been developed to summarize statements
28
- downloaded from your bank. \nInstall as a Rubygem, navigate to the directory your
29
- .csv files are in and execute from the command line with 'banco'.\n\nBanco will
30
- only accept comma seperated value files (.csv) and will produce a summary for the
31
- period uploaded from the file. \n\nRemove the header line from your downloaded bank
32
- statement, ensure the columns are ordered date, description, type of charge, money
33
- in an money out from left to right, any columns right of the fifth will be ignored.
34
- Banco will total the incoming & outgoing transactions for the period. Reporting
35
- the bottom line aswell as summing up the values for similar transactions. This is
36
- achieved by matching the description name, currently set at the first 9 characters
37
- of the string, you can change this to be more or less exact.\n\nHope your numbers
38
- are positive !\nhttps://github.com/s33dco/banco\nhttps://rubygems.org/gems/banco"
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