ibandit 0.11.20 → 0.11.22

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: e3f94e719c75ae4ffb2c6ddae2412ae27b3cca57
4
- data.tar.gz: 2aa1489dab17b0fa534f3c720dc2a80b65b3f5f0
3
+ metadata.gz: 03fd3b123a87b4af8d7e3162d14c250760c73973
4
+ data.tar.gz: 7f6df9d62b84ce3c0fe4822ea411e5207aca1af7
5
5
  SHA512:
6
- metadata.gz: 3c08763237ed36144a0ab42a8fcef5f13204e4c3ae86db1f43ea092da70a9a4262cac0a79d9ceb6c42911349d4c458e667034ddf5da7609cf3eda3ff3606f64f
7
- data.tar.gz: 54f039ca73d46e43164b21185884e24445a7f31b11df376add970978de7367d2ace07a9d4394408c398f7776a95b8e6cf6d4a63e54a90d248fcbefbb145dfeeb
6
+ metadata.gz: e4e0e6b0e0aad1313031236bbb4d39a46f0692a75f1156a39db21b3de3a0c9d690e89ffe14215bcbe11132addd01a3fc08be5a554580ba534cdc5fb0bb9285f8
7
+ data.tar.gz: 9e9958c1cbccb467ef84ca4e22e6d81a8563d90af3ce7cc095f098a00a5e71e253f110271aa6c5d4b466e6189f753c966755351bd85e66ff4e3b9ec7293f5f8f
@@ -1,3 +1,9 @@
1
+ ## 0.11.22 - October 18, 2018
2
+
3
+ - Skipped 0.11.21
4
+ - Added national_id_length for CA IBANs to prevent segfault when building from
5
+ local details.
6
+
1
7
  ## 0.11.20 - October 18, 2018
2
8
 
3
9
  - Generate valid CA IBANs from local details
@@ -893,6 +893,7 @@ CA:
893
893
  :bank_code_format: "\\d{4}"
894
894
  :branch_code_format: "\\d{5}"
895
895
  :account_number_format: "\\d{7,12}"
896
+ :national_id_length: 4
896
897
  :pseudo_iban_bank_code_length: 4
897
898
  :pseudo_iban_branch_code_length: 5
898
899
  :pseudo_iban_account_number_length: 12
@@ -1,3 +1,3 @@
1
1
  module Ibandit
2
- VERSION = "0.11.20".freeze
2
+ VERSION = "0.11.22".freeze
3
3
  end
@@ -383,6 +383,7 @@ describe Ibandit::IBAN do
383
383
  its(:swift_bank_code) { is_expected.to eq("0036") }
384
384
  its(:swift_branch_code) { is_expected.to eq("00063") }
385
385
  its(:swift_account_number) { is_expected.to eq("000000123456") }
386
+ its(:swift_national_id) { is_expected.to eq("0036") }
386
387
  its(:pseudo_iban) { is_expected.to eq("CAZZ003600063000000123456") }
387
388
 
388
389
  its(:iban) { is_expected.to be_nil }
@@ -400,6 +401,7 @@ describe Ibandit::IBAN do
400
401
  its(:swift_bank_code) { is_expected.to eq("0036") }
401
402
  its(:swift_branch_code) { is_expected.to eq("00063") }
402
403
  its(:swift_account_number) { is_expected.to eq("012345678900") }
404
+ its(:swift_national_id) { is_expected.to eq("0036") }
403
405
  its(:pseudo_iban) { is_expected.to eq("CAZZ003600063012345678900") }
404
406
 
405
407
  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: 0.11.20
4
+ version: 0.11.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-18 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gc_ruboconfig