From e4fe82783913b9c9cafebad1850833190801bc35 Mon Sep 17 00:00:00 2001 From: Onyekachi Date: Thu, 17 Sep 2015 00:03:48 +0100 Subject: [PATCH] re-add firstbank to Banks array --- lib/ng-bank-parser/banks.rb | 49 +++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/lib/ng-bank-parser/banks.rb b/lib/ng-bank-parser/banks.rb index d9370df..a8c5fe7 100644 --- a/lib/ng-bank-parser/banks.rb +++ b/lib/ng-bank-parser/banks.rb @@ -4,29 +4,40 @@ class Banks key: "gtb", name: "Guaranty Trust Bank", parsers: [{ - format: "excel", - valid: "lib/ng-bank-parser/fixtures/gtb-excel-valid.xlsx", - invalid: "lib/ng-bank-parser/fixtures/gtb-excel-invalid.pdf", - extensions: ["xls","xlsx"] - }] + format: "excel", + valid: "lib/ng-bank-parser/fixtures/gtb-excel-valid.xlsx", + invalid: "lib/ng-bank-parser/fixtures/gtb-excel-invalid.pdf", + extensions: ["xls","xlsx"] + }] },{ key: "uba", name: "United Bank for Africa", parsers: [{ - format: "pdf", - valid: "lib/ng-bank-parser/fixtures/uba-pdf-valid.pdf", - invalid: "lib/ng-bank-parser/fixtures/uba-pdf-invalid.pdf", - extensions: ["pdf"] - }] + format: "pdf", + valid: "lib/ng-bank-parser/fixtures/uba-pdf-valid.pdf", + invalid: "lib/ng-bank-parser/fixtures/uba-pdf-invalid.pdf", + extensions: ["pdf"] + }] },{ - key: "accessbank", - name: "Access Bank Plc", - parsers: [{ - format: "pdf", - valid: "lib/ng-bank-parser/fixtures/accessbank-pdf-valid.pdf", - invalid: "lib/ng-bank-parser/fixtures/accessbank-pdf-invalid.pdf", - extensions: ["pdf"] - }] - }] + key: "firstbank", + name: "First Bank", + parsers: [{ + format: "pdf", + valid: "lib/ng-bank-parser/fixtures/firstbank-pdf-valid.pdf", + fixture_password: 19856, + invalid: "lib/ng-bank-parser/fixtures/firstbank-pdf-invalid.pdf", + extensions: ["pdf"] + }] + },{ + key: "accessbank", + name: "Access Bank Plc", + parsers: [{ + format: "pdf", + valid: "lib/ng-bank-parser/fixtures/accessbank-pdf-valid.pdf", + invalid: "lib/ng-bank-parser/fixtures/accessbank-pdf-invalid.pdf", + extensions: ["pdf"] + }] + } + ] end end