ibandit 1.3.0 → 1.4.0
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/CHANGELOG.md +6 -0
- data/data/structures.yml +1 -1
- data/lib/ibandit/version.rb +1 -1
- data/spec/ibandit/iban_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd9995eaf5ee5234723077679edc4d0a392f2e94179f29dc3dde3957f9164ce9
|
|
4
|
+
data.tar.gz: 77487285fcfaf55c76c6ec12c7122a3c7ba33e659ab03211f8720181d0315a72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e99899a1576356e2580619ab63eec53ca8d83259e1de48d4b8d939468e3629724559a39dc6db2265d0e6a058295f962b16aa6294048c9afa156e299a3a269366
|
|
7
|
+
data.tar.gz: 5862d478bd2a01ed65b9fffe6df750b085a3cd027a13f9c27803d02c875be0880c9db3eb85135540f81a76de18c5fc960a331e9f64f401f9b2992216572efd0f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 1.4.0 - February 22, 2021
|
|
2
|
+
|
|
3
|
+
- [Breaking] Correct `swift_national_id` for Canadian Psudo Ibans. Before `swift_national_id`
|
|
4
|
+
would return the institution code only. Now it returns the `{institution_code}{branch_code}` as
|
|
5
|
+
per the format for electronic transfers - `0YYYXXXXX`
|
|
6
|
+
|
|
1
7
|
## 1.3.0 - February 18, 2021
|
|
2
8
|
|
|
3
9
|
- Add support for BY, EG, FO, IQ, LC, SC, UA and VA
|
data/data/structures.yml
CHANGED
|
@@ -997,7 +997,7 @@ CA:
|
|
|
997
997
|
:bank_code_format: "\\d{4}"
|
|
998
998
|
:branch_code_format: "\\d{5}"
|
|
999
999
|
:account_number_format: "\\d{7,12}"
|
|
1000
|
-
:national_id_length:
|
|
1000
|
+
:national_id_length: 9
|
|
1001
1001
|
:pseudo_iban_bank_code_length: 4
|
|
1002
1002
|
:pseudo_iban_branch_code_length: 5
|
|
1003
1003
|
:pseudo_iban_account_number_length: 12
|
data/lib/ibandit/version.rb
CHANGED
data/spec/ibandit/iban_spec.rb
CHANGED
|
@@ -422,7 +422,7 @@ describe Ibandit::IBAN do
|
|
|
422
422
|
its(:swift_bank_code) { is_expected.to eq("0036") }
|
|
423
423
|
its(:swift_branch_code) { is_expected.to eq("00063") }
|
|
424
424
|
its(:swift_account_number) { is_expected.to eq("000000123456") }
|
|
425
|
-
its(:swift_national_id) { is_expected.to eq("
|
|
425
|
+
its(:swift_national_id) { is_expected.to eq("003600063") }
|
|
426
426
|
its(:pseudo_iban) { is_expected.to eq("CAZZ003600063000000123456") }
|
|
427
427
|
|
|
428
428
|
its(:iban) { is_expected.to be_nil }
|
|
@@ -441,7 +441,7 @@ describe Ibandit::IBAN do
|
|
|
441
441
|
its(:swift_bank_code) { is_expected.to eq("36") }
|
|
442
442
|
its(:swift_branch_code) { is_expected.to eq("00063") }
|
|
443
443
|
its(:swift_account_number) { is_expected.to eq("000000123456") }
|
|
444
|
-
its(:swift_national_id) { is_expected.to eq("
|
|
444
|
+
its(:swift_national_id) { is_expected.to eq("3600063") }
|
|
445
445
|
its(:pseudo_iban) { is_expected.to eq("CAZZ__3600063000000123456") }
|
|
446
446
|
|
|
447
447
|
its(:iban) { is_expected.to be_nil }
|
|
@@ -460,7 +460,7 @@ describe Ibandit::IBAN do
|
|
|
460
460
|
its(:swift_bank_code) { is_expected.to eq("0036") }
|
|
461
461
|
its(:swift_branch_code) { is_expected.to eq("00063") }
|
|
462
462
|
its(:swift_account_number) { is_expected.to eq("000000123456") }
|
|
463
|
-
its(:swift_national_id) { is_expected.to eq("
|
|
463
|
+
its(:swift_national_id) { is_expected.to eq("003600063") }
|
|
464
464
|
its(:pseudo_iban) { is_expected.to eq("CAZZ003600063000000123456") }
|
|
465
465
|
|
|
466
466
|
its(:iban) { is_expected.to be_nil }
|
|
@@ -486,7 +486,7 @@ describe Ibandit::IBAN do
|
|
|
486
486
|
its(:swift_bank_code) { is_expected.to eq("0036") }
|
|
487
487
|
its(:swift_branch_code) { is_expected.to eq("00063") }
|
|
488
488
|
its(:swift_account_number) { is_expected.to eq("012345678900") }
|
|
489
|
-
its(:swift_national_id) { is_expected.to eq("
|
|
489
|
+
its(:swift_national_id) { is_expected.to eq("003600063") }
|
|
490
490
|
its(:pseudo_iban) { is_expected.to eq("CAZZ003600063012345678900") }
|
|
491
491
|
|
|
492
492
|
its(:iban) { is_expected.to be_nil }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ibandit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GoCardless
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gc_ruboconfig
|