bank_statement_parser 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: ab43d3d69eb0dc317b5c102a1fd2f23e05994478
4
- data.tar.gz: 4238681f16773e1d26eac5e30b2a075d1e082a76
3
+ metadata.gz: 9ebb9e0a32fa837360a81d80ed9d064821dda018
4
+ data.tar.gz: 552e8d45b119a1082ef103f6db742cca1cd36f10
5
5
  SHA512:
6
- metadata.gz: 319c503e4a9ca1dba0474cccaa456672ad09b2dc166b7dc494048bb1182aade2f6632b4d73f639012a6f7203238af2fb6226ce1552b2b9d89b09d757de22aa5a
7
- data.tar.gz: 2407595840bd7a98eb76a505d89d63cdb5800f596bcf60430317f273a83fe03ab05f00e0404102f1af2b05c14863d666d0759b7961718a5061444c84f5b72060
6
+ metadata.gz: 29bb0bcfa68b4884e9aae49eb0ba1d5211185ea2acb1095fde446691905faba8a1dec5d242d808064ba2361b7a3195a147ba80bf127700bea9f6398f2073218e
7
+ data.tar.gz: 9618e7f2d6f245c6c417027cf2afcc83efff7d4fcc449d0d0b4516fe4f1327f5ac6f451c7f1c78d1d6184c4d5ae83f868fcbe1f9042b6b8c88a7ebf2eab3292f
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # Convert the specified bank statement PDF file to text
4
4
 
5
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
5
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
6
6
 
7
7
  # This file is part of bank_statement_parser.
8
8
  #
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # Parse the specified HSBC bank statement file to YAML
4
4
 
5
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
5
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
6
6
 
7
7
  # This file is part of bank_statement_parser.
8
8
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -103,7 +103,7 @@ module BankStatementParser
103
103
  when StatementFormat::FORMAT_2ND
104
104
  headings = COLUMN_HEADINGS_2ND
105
105
  end
106
- logger.debug { "Parsing potential record line (format #{@statement_format})" }
106
+ logger.debug { "Parsing potential record line (format #{@statement_format}): #{line}" }
107
107
  parse_record_line_format(line, headings)
108
108
 
109
109
  end
@@ -140,7 +140,7 @@ module BankStatementParser
140
140
  "Balance \\(\\)"]
141
141
 
142
142
  COLUMN_HEADINGS_2ND = ["Date",
143
- "Pay\\s?m\\s?e\\s?nt t\\s?y\\s?p\\s?e and de\\s?t\\s?ails",
143
+ "Pay\\s?m\\s?e\\s?nt t\\s?y\\s?p\\s?e and d\\s?e\\s?t\\s?ails",
144
144
  "Paid o\\s?ut",
145
145
  "Paid in",
146
146
  "Balance"]
@@ -314,6 +314,7 @@ module BankStatementParser
314
314
  return
315
315
  end
316
316
 
317
+ # Skip known "noise" lines
317
318
  return if line =~ /\A\s*A\s*\z/
318
319
 
319
320
  return if @cols.empty?
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2015-2017 Simon Dawson <spdawson@gmail.com>
1
+ # Copyright 2015-2018 Simon Dawson <spdawson@gmail.com>
2
2
 
3
3
  # This file is part of bank_statement_parser.
4
4
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank_statement_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Dawson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake