bsb 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/sync-bank-details.yml +24 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +15 -7
- data/README.md +4 -0
- data/Rakefile +5 -3
- data/bsb.gemspec +1 -0
- data/config/bsb_bank_list.json +1 -1
- data/config/bsb_db.json +1 -1
- data/lib/auspaynet/client.rb +35 -0
- data/lib/bsb/bank_list_generator.rb +6 -13
- data/lib/bsb/base_generator.rb +21 -0
- data/lib/bsb/database_generator.rb +10 -14
- data/lib/bsb/version.rb +3 -1
- data/lib/bsb.rb +11 -7
- data/lib/bsb_number_validator.rb +3 -3
- data/lib/tasks/bsb_tasks.rake +24 -6
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5a9db63bcfe7a7703c68b05f6799df463409e2e259a2af6b85d2bbf8ff40ba
|
4
|
+
data.tar.gz: 67aaac7689185cf853e8edd09f3d5f3aa40253897e15f6ba14ccd6a7c5c39624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64928f44e0d015ebbd574bf7dbc147d34578511ce0ea0d895efbf039ff6fda31a7dbc95115f7f9e9d00acf66f1a10a330119da83cccfa1f3bf70a97414c033e0
|
7
|
+
data.tar.gz: 7155b22f6406303957a1d02f11e465041634e1c686b5d9f16acca05e5964f982954bac45ade2e88e3a285bf51b6a966b5fb903c4de845f45f35f675c354ca87d
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: Sync Bank List and Database
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: "0 0 1 * *"
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Sync
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v3
|
13
|
+
- name: Set up Ruby 2.6
|
14
|
+
uses: actions/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 2.6.x
|
17
|
+
- name: Sync gem
|
18
|
+
run: |
|
19
|
+
bundle exec rake bsb:sync
|
20
|
+
git config user.name github-actions
|
21
|
+
git config user.email github-actions@github.com
|
22
|
+
git add .
|
23
|
+
git commit -m "fix: Sync update on ${date}"
|
24
|
+
git push
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,28 +1,35 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bsb (0.0.
|
4
|
+
bsb (0.0.16)
|
5
5
|
activemodel
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activesupport (
|
10
|
+
activemodel (7.0.3)
|
11
|
+
activesupport (= 7.0.3)
|
12
|
+
activesupport (7.0.3)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 1.6, < 2)
|
15
15
|
minitest (>= 5.1)
|
16
16
|
tzinfo (~> 2.0)
|
17
|
-
zeitwerk (~> 2.3)
|
18
17
|
concurrent-ruby (1.1.10)
|
18
|
+
date (3.2.2)
|
19
19
|
i18n (1.10.0)
|
20
20
|
concurrent-ruby (~> 1.0)
|
21
|
-
minitest (5.
|
21
|
+
minitest (5.16.0)
|
22
|
+
net-ftp (0.1.3)
|
23
|
+
net-protocol
|
24
|
+
time
|
25
|
+
net-protocol (0.1.3)
|
26
|
+
timeout
|
22
27
|
rake (13.0.1)
|
28
|
+
time (0.2.0)
|
29
|
+
date
|
30
|
+
timeout (0.3.0)
|
23
31
|
tzinfo (2.0.4)
|
24
32
|
concurrent-ruby (~> 1.0)
|
25
|
-
zeitwerk (2.5.4)
|
26
33
|
|
27
34
|
PLATFORMS
|
28
35
|
ruby
|
@@ -30,6 +37,7 @@ PLATFORMS
|
|
30
37
|
DEPENDENCIES
|
31
38
|
bsb!
|
32
39
|
bundler (~> 2.0)
|
40
|
+
net-ftp (~> 0.1.3)
|
33
41
|
rake (~> 13.0)
|
34
42
|
|
35
43
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -68,6 +68,10 @@ Two data sources are used:
|
|
68
68
|
|
69
69
|
Other formats of APCA BSB data is available from http://bsb.apca.com.au.
|
70
70
|
|
71
|
+
## Update source
|
72
|
+
|
73
|
+
Run this `rake bsb:sync` command to complete sync of the latest data
|
74
|
+
|
71
75
|
## Contributing
|
72
76
|
|
73
77
|
1. Fork it ( https://github.com/zhoutong/bsb/fork )
|
data/Rakefile
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
2
4
|
load 'lib/tasks/bsb_tasks.rake'
|
3
5
|
|
4
6
|
require 'rake/testtask'
|
@@ -7,5 +9,5 @@ Rake::TestTask.new do |t|
|
|
7
9
|
t.libs << 'test'
|
8
10
|
end
|
9
11
|
|
10
|
-
desc
|
11
|
-
task :
|
12
|
+
desc 'Run tests'
|
13
|
+
task default: :test
|
data/bsb.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
23
|
+
spec.add_development_dependency 'net-ftp', '~> 0.1.3'
|
23
24
|
spec.add_development_dependency 'rake', '~> 13.0'
|
24
25
|
spec.add_dependency 'activemodel'
|
25
26
|
end
|
data/config/bsb_bank_list.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"642":"Australian Military Bank Limited","939":"AMP Bank Limited","917":"Arab Bank Australia Limited","01":"Australia & New Zealand Banking Group Limited","15":"T&C Town & Country Bank (a division of Australia & New Zealand Banking Group Limited)","90":"Australia Post (Money Orders)","57":"Australian Settlements Limited","259":"Alex Bank Pty Ltd","890":"Avenue Bank Ltd","656":"Auswide Bank Ltd","632":"B&E Ltd trading as Bank of Us","23":"Bank of America National Association","35":"Bank of China","980":"Bank of China (Australia) Limited","818":"Bank of Communications Co., Ltd Sydney Branch","941":"Delphi Bank (a division of Bendigo and Adelaide Bank Limited)","12":"Bank of Queensland Limited","639":"HOM Home Building Society (a division of Bank of Queensland Limited)","653":"PPB Pioneer Permanent Building Society (a division of Bank of Queensland Limited)","951":"INV BOQ Specialist (a division of Bank of Queensland Limited)","29":"MUFG Bank, Ltd.","325":"Beyond Bank Australia Limited","942":"Bank of Sydney Ltd","633":"Bendigo and Adelaide Bank Limited","610":"ADL Adelaide Bank (a division of Bendigo and Adelaide Bank Limited)","22":"BNP Paribas","255":"BNP Paribas Securities Services","813":"Capricornian Ltd (The)","888":"China Construction Bank Corporation, Sydney Branch","512":"Community First Credit Union Limited","510":"Citibank N.A.","24":"
|
1
|
+
{"642":"Australian Military Bank Limited","939":"AMP Bank Limited","917":"Arab Bank Australia Limited","01":"Australia & New Zealand Banking Group Limited","15":"T&C Town & Country Bank (a division of Australia & New Zealand Banking Group Limited)","90":"Australia Post (Money Orders)","57":"Australian Settlements Limited","259":"Alex Bank Pty Ltd","890":"Avenue Bank Ltd","656":"Auswide Bank Ltd","632":"B&E Ltd trading as Bank of Us","23":"Bank of America National Association","35":"Bank of China","980":"Bank of China (Australia) Limited","818":"Bank of Communications Co., Ltd Sydney Branch","941":"Delphi Bank (a division of Bendigo and Adelaide Bank Limited)","12":"Bank of Queensland Limited","639":"HOM Home Building Society (a division of Bank of Queensland Limited)","653":"PPB Pioneer Permanent Building Society (a division of Bank of Queensland Limited)","951":"INV BOQ Specialist (a division of Bank of Queensland Limited)","29":"MUFG Bank, Ltd.","325":"Beyond Bank Australia Limited","942":"Bank of Sydney Ltd","633":"Bendigo and Adelaide Bank Limited","610":"ADL Adelaide Bank (a division of Bendigo and Adelaide Bank Limited)","22":"BNP Paribas","255":"BNP Paribas Securities Services","813":"Capricornian Ltd (The)","888":"China Construction Bank Corporation, Sydney Branch","512":"Community First Credit Union Limited","510":"Citibank N.A.","24":"CTI Citibank N.A.","06":"Commonwealth Bank of Australia","76":"Commonwealth Bank of Australia","30":"BWA Bankwest (a division of Commonwealth Bank of Australia)","40":"CST Commonwealth Bank of Australia","42":"TBT Commonwealth Bank of Australia","52":"TBT Commonwealth Bank of Australia","814":"Credit Union Australia Ltd (trading as Great Southern Bank)","80":"Cuscal Limited","889":"DBS Bank Ltd. (Australia Branch)","41":"Deutsche Bank Aktiengesellschaft","833":"Defence Bank Limited","823":"Australian Mutual Bank Limited","611":"SEL Australian Mutual Bank Limited","676":"Gateway Bank Ltd","659":"G&C Mutual Bank Limited","630":"Greater Bank Ltd","637":"Greater Bank Ltd","680":"Greater Bank Ltd","820":"Global Payments Australia 1 Pty Ltd","636":"Cuscal Limited","638":"Heritage Bank Limited","880":"Heritage Bank Limited","721":"Holiday Coast (now known as Regional Australia Bank Ltd)","985":"Hongkong & Shanghai Banking Corporation Limited (The), Australian Branch","34":"HSBC Bank Australia Limited","640":"Hume Bank Limited","641":"IMB Ltd","647":"IMB Ltd","824":"STH IMB Ltd","70":"Indue Ltd","819":"Industrial and Commercial Bank of China Limited","923":"ING Bank (Australia) Limited (trading as ING)","936":"ING Bank, NV (Sydney Branch)","21":"JP Morgan Chase Bank, National Association","725":"Judo Bank Pty Ltd","323":"KEB Hana Bank","18":"Macquarie Bank Limited","646":"Maitland Mutual Limited trading as The Mutual Bank","882":"Unity Bank Limited","313":"Bank Australia Limited","931":"Mega International Commercial Bank Co, Ltd","944":"Members Equity Bank Limited (a division of Bank of Queensland Limited)","918":"Mizuho Bank, Ltd","645":"Auswide Bank Ltd","969":"Tyro Payments Limited","08":"National Australia Bank Limited","650":"Newcastle Permanent Building Society Ltd","45":"Oversea-Chinese Banking Corporation Limited","311":"in1bank Limited","815":"Police Bank Ltd (trading as Police Bank)","723":"Bank of Heritage Isle, a division of Police Bank Ltd","777":"Police & Nurses Limited","533":"BCC Police & Nurses Limited","14":"Rabobank Australia Limited","654":"Queensland Country Bank Limited","514":"Members Banking Group Limited Trading as RACQ Bank","724":"Railways Credit Union Limited t/a MOVE Bank","932":"Regional Australia Bank Limited","09":"Reserve Bank of Australia","655":"MyState Bank Limited","43":"Standard Chartered Bank, Australia Branch","722":"Southern Cross Credit Union Ltd","840":"Zepto Payments Pty Ltd","913":"State Street Bank and Trust Company","911":"Sumitomo Mitsui Banking Corporation","728":"Summerland Financial Servces Limited (Trading as Summerland Credit Union)","825":"Australian Unity Bank Limited","48":"Suncorp-Metway Limited","66":"SUN Suncorp-Metway Limited","943":"Taiwan Business Bank, Sydney Branch","812":"Teachers Mutual Bank Limited","946":"UBS AG, Australia Branch","922":"United Overseas Bank Limited","634":"Uniting Financial Services","517":"Volt Bank Limited","03":"Westpac Banking Corporation","04":"Westpac Banking Corporation","73":"Westpac Banking Corporation","74":"Westpac Banking Corporation","11":"STG St.George Bank (a division of Westpac Banking Corp) ","10":"BSA BankSA (a division of Westpac Banking Corp)","19":"BOM Bank of Melbourne (a division of Westpac Banking Corp)","26":"BTA Bankers Trust Australia (a division of Westpac Banking Corp)","33":"SGP St.George Bank (a division of Westpac Banking Corp)","46":"ADV Advance Bank Australia (a division of Westpac Banking Corp)","47":"CBL Challenge Bank (a division of Westpac Banking Corp)","55":"BML Bank of Melbourne (a division of Westpac Banking Corp)","817":"Warwick Credit Union Ltd","774":"Wise Australia Pty Ltd","670":"86400 Holdings Pty Ltd (Acquired by NAB)"}
|