bsb 0.0.16 → 1.0.1
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/.github/workflows/ci.yml +19 -0
- data/.github/workflows/release.yml +56 -0
- data/.github/workflows/update-database.yml +33 -0
- data/.gitignore +5 -0
- data/.release-please-manifest.json +1 -0
- data/.rubocop.yml +16 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +71 -0
- data/Rakefile +7 -0
- data/bsb.gemspec +9 -1
- data/config/bsb_bank_list.json +1 -1
- data/config/bsb_db.json +1 -1
- data/lib/auspaynet/client.rb +12 -9
- data/lib/bsb/base_generator.rb +1 -1
- data/lib/bsb/version.rb +1 -1
- data/lib/bsb.rb +3 -3
- data/lib/bsb_number_validator.rb +0 -1
- data/lib/tasks/bsb_tasks.rake +8 -27
- data/test/bsb_number_validator_test.rb +10 -0
- data/test/bsb_test.rb +28 -0
- data/test/test_helper.rb +13 -0
- metadata +30 -8
- data/.github/workflows/gem-push.yml +0 -45
- data/.github/workflows/sync-bank-details.yml +0 -24
- data/Gemfile.lock +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4032090cdb3b06b162104db1a8f6e72a9b0674949c1719849cdceb45c913e126
|
4
|
+
data.tar.gz: 66dd183e4e397787dd13bec46372f4ce262a1d55000121f161d23f80cebae480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04dd352296bed873583ffc5fcd81dc74254ce17e3db9802a1f64370b2e09ae27115d39944b7209bbfc13f1ecb40f4ee39d11e7d55c4b6b6cf26c089c79baa133
|
7
|
+
data.tar.gz: 00f81b80989f3ce8b182bc89532ab1986af60a59c00c230f5b4a58c74c0c31a03817443013ab58d70ef1bb57d6a92f84bd6ce168e30561ac6a4e92f63fe81f01
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: Continuous Integration
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby: [ '2.7', '3.1' ]
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
18
|
+
bundler-cache: true
|
19
|
+
- run: bundle exec rake
|
@@ -0,0 +1,56 @@
|
|
1
|
+
name: Release Please
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
release-please:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: google-github-actions/release-please-action@v3
|
13
|
+
id: release
|
14
|
+
with:
|
15
|
+
# https://github.com/google-github-actions/release-please-action
|
16
|
+
default-branch: master
|
17
|
+
release-type: ruby
|
18
|
+
package-name: bsb
|
19
|
+
version-file: lib/bsb/version.rb
|
20
|
+
fork: false
|
21
|
+
bump-minor-pre-major: true
|
22
|
+
bump-patch-for-minor-pre-major: true
|
23
|
+
|
24
|
+
- if: ${{ steps.release.outputs.release_created }}
|
25
|
+
uses: actions/checkout@v3
|
26
|
+
|
27
|
+
- if: ${{ steps.release.outputs.release_created }}
|
28
|
+
name: Set up Ruby
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
bundler-cache: true
|
32
|
+
|
33
|
+
- if: ${{ steps.release.outputs.release_created }}
|
34
|
+
name: Publish to GPR
|
35
|
+
run: |
|
36
|
+
mkdir -p $HOME/.gem
|
37
|
+
touch $HOME/.gem/credentials
|
38
|
+
chmod 0600 $HOME/.gem/credentials
|
39
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
40
|
+
gem build *.gemspec
|
41
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
42
|
+
env:
|
43
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
44
|
+
OWNER: ${{ github.repository_owner }}
|
45
|
+
|
46
|
+
- if: ${{ steps.release.outputs.release_created }}
|
47
|
+
name: Publish to RubyGems
|
48
|
+
run: |
|
49
|
+
mkdir -p $HOME/.gem
|
50
|
+
touch $HOME/.gem/credentials
|
51
|
+
chmod 0600 $HOME/.gem/credentials
|
52
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
53
|
+
gem build *.gemspec
|
54
|
+
gem push *.gem
|
55
|
+
env:
|
56
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: Update BSB Database
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
# https://crontab.guru/every-month
|
6
|
+
# At 00:00 on day-of-month 1.
|
7
|
+
- cron: "0 0 1 * *"
|
8
|
+
workflow_dispatch:
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
build:
|
12
|
+
name: Update BSB Database & Version
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v3
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
bundler-cache: true
|
20
|
+
- name: Update BSB Database & Version
|
21
|
+
run: bundle exec rake bsb:sync
|
22
|
+
- id: get-date
|
23
|
+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
24
|
+
- uses: peter-evans/create-pull-request@v4
|
25
|
+
id: raise-pr
|
26
|
+
with:
|
27
|
+
branch: "bot/${{ steps.get-date.outputs.date }}"
|
28
|
+
base: master
|
29
|
+
title: "fix: ${{ steps.get-date.outputs.date }} periodic update of config/*.json database files."
|
30
|
+
committer: GitHub Actions <actions@github.com>
|
31
|
+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
32
|
+
signoff: false
|
33
|
+
delete-branch: true
|
data/.gitignore
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{".":"1.0.1"}
|
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.2
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [1.0.1](https://github.com/coinjar/bsb/compare/v1.0.0...v1.0.1) (2022-11-04)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* 2022-11-01 periodic update of config/*.json database files. ([#26](https://github.com/coinjar/bsb/issues/26)) ([298da56](https://github.com/coinjar/bsb/commit/298da561a13a464a2d16cc612300e2d88c4c9472))
|
9
|
+
* release workflow indentation. ([#23](https://github.com/coinjar/bsb/issues/23)) ([22ac41b](https://github.com/coinjar/bsb/commit/22ac41bf87f979e33681ad9cf7ef394d68b3ebdb))
|
10
|
+
* release workflow outputs. ([#22](https://github.com/coinjar/bsb/issues/22)) ([9e127d3](https://github.com/coinjar/bsb/commit/9e127d3c91b8f419abb39533c813e0353bde96b7))
|
11
|
+
* release workflow permissions. ([#24](https://github.com/coinjar/bsb/issues/24)) ([75002b2](https://github.com/coinjar/bsb/commit/75002b210436abf75263d3dd107161c6870078c2))
|
12
|
+
|
13
|
+
## [1.0.0](https://github.com/coinjar/bsb/compare/v1.0.0...v1.0.0) (2022-09-25)
|
14
|
+
|
15
|
+
|
16
|
+
### Features
|
17
|
+
|
18
|
+
* may update ([760ecfc](https://github.com/coinjar/bsb/commit/760ecfca89e05d80c512e3cb21751eca5eef8435))
|
19
|
+
* release please ([#12](https://github.com/coinjar/bsb/issues/12)) ([535f071](https://github.com/coinjar/bsb/commit/535f071e008e591c225e7b98a6edd24046b6b8c1))
|
20
|
+
* sync rake task added ([4f361c5](https://github.com/coinjar/bsb/commit/4f361c57269d53ee9ef30f56730f3b6982215d84))
|
21
|
+
|
22
|
+
|
23
|
+
### Bug Fixes
|
24
|
+
|
25
|
+
* multi ruby bundle by removing .lock with gemspec resolution. ([#17](https://github.com/coinjar/bsb/issues/17)) ([21a089b](https://github.com/coinjar/bsb/commit/21a089b3c9ef4ff7433f6f7961765731c290e477))
|
26
|
+
* rubocop refactor ([d6f50c4](https://github.com/coinjar/bsb/commit/d6f50c403aaefcf3b9d8655d277be1b812a35b14))
|
27
|
+
|
28
|
+
|
29
|
+
### Miscellaneous Chores
|
30
|
+
|
31
|
+
* release 1.0.0 ([#19](https://github.com/coinjar/bsb/issues/19)) ([b7e8a42](https://github.com/coinjar/bsb/commit/b7e8a4235fbd120af9d24f760518fcb865f5e683))
|
32
|
+
|
33
|
+
## [1.0.0](https://github.com/coinjar/bsb/compare/v1.0.0...v1.0.0) (2022-09-25)
|
34
|
+
|
35
|
+
|
36
|
+
### Bug Fixes
|
37
|
+
|
38
|
+
* multi ruby bundle by removing .lock with gemspec resolution. ([#17](https://github.com/coinjar/bsb/issues/17)) ([21a089b](https://github.com/coinjar/bsb/commit/21a089b3c9ef4ff7433f6f7961765731c290e477))
|
39
|
+
|
40
|
+
|
41
|
+
### Miscellaneous Chores
|
42
|
+
|
43
|
+
* release 1.0.0 ([#19](https://github.com/coinjar/bsb/issues/19)) ([b7e8a42](https://github.com/coinjar/bsb/commit/b7e8a4235fbd120af9d24f760518fcb865f5e683))
|
44
|
+
|
45
|
+
## [1.0.0](https://github.com/coinjar/bsb/compare/v1.0.0...v1.0.0) (2022-09-25)
|
46
|
+
|
47
|
+
|
48
|
+
### Bug Fixes
|
49
|
+
|
50
|
+
* multi ruby bundle by removing .lock with gemspec resolution. ([#17](https://github.com/coinjar/bsb/issues/17)) ([21a089b](https://github.com/coinjar/bsb/commit/21a089b3c9ef4ff7433f6f7961765731c290e477))
|
51
|
+
|
52
|
+
|
53
|
+
### Miscellaneous Chores
|
54
|
+
|
55
|
+
* release 1.0.0 ([#19](https://github.com/coinjar/bsb/issues/19)) ([b7e8a42](https://github.com/coinjar/bsb/commit/b7e8a4235fbd120af9d24f760518fcb865f5e683))
|
56
|
+
|
57
|
+
## 1.0.0 (2022-09-21)
|
58
|
+
|
59
|
+
|
60
|
+
### Features
|
61
|
+
|
62
|
+
* may update ([760ecfc](https://github.com/coinjar/bsb/commit/760ecfca89e05d80c512e3cb21751eca5eef8435))
|
63
|
+
* release please ([#12](https://github.com/coinjar/bsb/issues/12)) ([535f071](https://github.com/coinjar/bsb/commit/535f071e008e591c225e7b98a6edd24046b6b8c1))
|
64
|
+
* sync rake task added ([4f361c5](https://github.com/coinjar/bsb/commit/4f361c57269d53ee9ef30f56730f3b6982215d84))
|
65
|
+
|
66
|
+
|
67
|
+
### Bug Fixes
|
68
|
+
|
69
|
+
* rubocop refactor ([d6f50c4](https://github.com/coinjar/bsb/commit/d6f50c403aaefcf3b9d8655d277be1b812a35b14))
|
70
|
+
|
71
|
+
## Changelog
|
data/Rakefile
CHANGED
@@ -6,8 +6,15 @@ load 'lib/tasks/bsb_tasks.rake'
|
|
6
6
|
require 'rake/testtask'
|
7
7
|
|
8
8
|
Rake::TestTask.new do |t|
|
9
|
+
t.libs << 'lib'
|
9
10
|
t.libs << 'test'
|
11
|
+
t.test_files = FileList['test/**/*_test.rb']
|
10
12
|
end
|
11
13
|
|
14
|
+
require 'rubocop/rake_task'
|
15
|
+
|
16
|
+
RuboCop::RakeTask.new
|
17
|
+
|
12
18
|
desc 'Run tests'
|
19
|
+
task default: :'rubocop:auto_correct'
|
13
20
|
task default: :test
|
data/bsb.gemspec
CHANGED
@@ -16,11 +16,19 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0")
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
19
|
spec.require_paths = ['lib']
|
21
20
|
|
21
|
+
spec.required_ruby_version = '>= 2.7.0'
|
22
|
+
|
22
23
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
23
24
|
spec.add_development_dependency 'net-ftp', '~> 0.1.3'
|
24
25
|
spec.add_development_dependency 'rake', '~> 13.0'
|
26
|
+
spec.add_development_dependency 'rubocop', '~> 1.26'
|
25
27
|
spec.add_dependency 'activemodel'
|
28
|
+
|
29
|
+
# N.B. needed for periodic auto update of database.
|
30
|
+
#
|
31
|
+
# rubocop:disable Gemspec/RequireMFA
|
32
|
+
spec.metadata['rubygems_mfa_required'] = 'false'
|
33
|
+
# rubocop:enable Gemspec/RequireMFA
|
26
34
|
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","
|
1
|
+
{"645":"Auswide Bank Ltd","656":"Auswide Bank Ltd","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","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","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)","944":"MEB 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)","834":"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","918":"Mizuho 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)"}
|