ibandit 1.7.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.rubocop.yml +4 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +17 -0
- data/bin/build_structure_file.rb +3 -2
- data/data/german_iban_rules.yml +13 -13
- data/data/raw/BLZ2.txt +511 -725
- data/ibandit.gemspec +3 -2
- data/lib/ibandit/check_digit.rb +1 -1
- data/lib/ibandit/german_details_converter.rb +4 -2
- data/lib/ibandit/iban.rb +3 -3
- data/lib/ibandit/local_details_cleaner.rb +2 -1
- data/lib/ibandit/version.rb +1 -1
- data/lib/ibandit.rb +3 -2
- data/spec/ibandit/german_details_converter_spec.rb +2 -2
- data/spec/ibandit/iban_spec.rb +2 -2
- data/spec/ibandit/structure_spec.rb +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4110648c4062c49d43e68116b09da947b94f254d636e4708b8a58016e656138d
|
4
|
+
data.tar.gz: 9de9b3593347b0948ad2edeff10674c0f3f35092cdcd2ff71399ec707fe44566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70780c28a8ca9bdac357a46157fa05fd683efce6f6ee1184a10c42fbfbd00b0fcf9d5058c92058f9cda3ff8737ac99072adf0cc8222c5d1375902d5a3561afda
|
7
|
+
data.tar.gz: '083c4924a8d4e6ba70dcad8c309ccbd52b15ce6d3884e51f9d4f03056f37935c3ffd52f939ef025c4303e3a837ad12dc7aa0ebdf8f7d0a7044608939bb2ca5a9'
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
inherit_gem:
|
3
3
|
gc_ruboconfig: rubocop.yml
|
4
|
+
require: rubocop-rails
|
4
5
|
|
5
6
|
AllCops:
|
6
7
|
TargetRubyVersion: 2.5
|
@@ -48,3 +49,6 @@ Layout/DotPosition:
|
|
48
49
|
# this is quite aggressive.
|
49
50
|
Gemspec/RequiredRubyVersion:
|
50
51
|
Enabled: false
|
52
|
+
|
53
|
+
Rails/Blank:
|
54
|
+
Enabled: false
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0
|
1
|
+
3.1.0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## 1.9.0 - February 16, 2022
|
2
|
+
|
3
|
+
- Update BLZ data - BLZ_20220307
|
4
|
+
|
5
|
+
## 1.8.1 - February 8, 2022
|
6
|
+
|
7
|
+
- Fix issue with structure loading - thanks @shaicoleman
|
8
|
+
|
9
|
+
## 1.8.0 - January 7, 2022
|
10
|
+
|
11
|
+
- Add Ruby 3.1 support
|
12
|
+
- Remove Ruby 2.5 support
|
13
|
+
|
14
|
+
## 1.7.1 - November 25, 2021
|
15
|
+
|
16
|
+
- Update BLZ data - BLZ_20211206
|
17
|
+
|
1
18
|
## 1.7.0 - Sept 8, 2021
|
2
19
|
|
3
20
|
- Stop padding out Australian account details to 10 digits
|
data/bin/build_structure_file.rb
CHANGED
@@ -153,8 +153,9 @@ if __FILE__ == $PROGRAM_NAME
|
|
153
153
|
iban_registry_file,
|
154
154
|
)
|
155
155
|
|
156
|
-
structure_additions = YAML.
|
157
|
-
File.expand_path("../data/raw/structure_additions.yml", __dir__),
|
156
|
+
structure_additions = YAML.safe_load(
|
157
|
+
File.read(File.expand_path("../data/raw/structure_additions.yml", __dir__)),
|
158
|
+
permitted_classes: [Range, Symbol],
|
158
159
|
)
|
159
160
|
|
160
161
|
complete_structures = merge_structures(iban_structures, structure_additions)
|
data/data/german_iban_rules.yml
CHANGED
@@ -236,6 +236,9 @@
|
|
236
236
|
'10310600':
|
237
237
|
:check_digit_rule: '09'
|
238
238
|
:iban_rule: '000000'
|
239
|
+
'10310666':
|
240
|
+
:check_digit_rule: '09'
|
241
|
+
:iban_rule: '000000'
|
239
242
|
'11010100':
|
240
243
|
:check_digit_rule: '09'
|
241
244
|
:iban_rule: '000000'
|
@@ -1661,9 +1664,6 @@
|
|
1661
1664
|
'25690009':
|
1662
1665
|
:check_digit_rule: '28'
|
1663
1666
|
:iban_rule: '000000'
|
1664
|
-
'25690010':
|
1665
|
-
:check_digit_rule: '28'
|
1666
|
-
:iban_rule: '000000'
|
1667
1667
|
'25691633':
|
1668
1668
|
:check_digit_rule: '28'
|
1669
1669
|
:iban_rule: '000000'
|
@@ -1799,9 +1799,6 @@
|
|
1799
1799
|
'26251425':
|
1800
1800
|
:check_digit_rule: '00'
|
1801
1801
|
:iban_rule: '000000'
|
1802
|
-
'26261396':
|
1803
|
-
:check_digit_rule: '28'
|
1804
|
-
:iban_rule: '000000'
|
1805
1802
|
'26261492':
|
1806
1803
|
:check_digit_rule: '28'
|
1807
1804
|
:iban_rule: '000000'
|
@@ -2579,6 +2576,9 @@
|
|
2579
2576
|
'30040063':
|
2580
2577
|
:check_digit_rule: '09'
|
2581
2578
|
:iban_rule: '000503'
|
2579
|
+
'30040099':
|
2580
|
+
:check_digit_rule: '13'
|
2581
|
+
:iban_rule: '000503'
|
2582
2582
|
'30050000':
|
2583
2583
|
:check_digit_rule: '08'
|
2584
2584
|
:iban_rule: '000000'
|
@@ -5477,6 +5477,9 @@
|
|
5477
5477
|
'51210802':
|
5478
5478
|
:check_digit_rule: '09'
|
5479
5479
|
:iban_rule: '002900'
|
5480
|
+
'51210803':
|
5481
|
+
:check_digit_rule: '09'
|
5482
|
+
:iban_rule: '002900'
|
5480
5483
|
'51211000':
|
5481
5484
|
:check_digit_rule: '09'
|
5482
5485
|
:iban_rule: '000000'
|
@@ -5576,12 +5579,12 @@
|
|
5576
5579
|
'51420300':
|
5577
5580
|
:check_digit_rule: '17'
|
5578
5581
|
:iban_rule: '000000'
|
5579
|
-
'51420600':
|
5580
|
-
:check_digit_rule: '09'
|
5581
|
-
:iban_rule: '000000'
|
5582
5582
|
'51430400':
|
5583
5583
|
:check_digit_rule: '09'
|
5584
5584
|
:iban_rule: '000100'
|
5585
|
+
'51430410':
|
5586
|
+
:check_digit_rule: '09'
|
5587
|
+
:iban_rule: '000000'
|
5585
5588
|
'51432100':
|
5586
5589
|
:check_digit_rule: '09'
|
5587
5590
|
:iban_rule: '000000'
|
@@ -6174,7 +6177,7 @@
|
|
6174
6177
|
:check_digit_rule: '13'
|
6175
6178
|
:iban_rule: '000503'
|
6176
6179
|
'55350010':
|
6177
|
-
:check_digit_rule:
|
6180
|
+
:check_digit_rule: A7
|
6178
6181
|
:iban_rule: '000000'
|
6179
6182
|
'55361202':
|
6180
6183
|
:check_digit_rule: '32'
|
@@ -9158,9 +9161,6 @@
|
|
9158
9161
|
'73350000':
|
9159
9162
|
:check_digit_rule: '00'
|
9160
9163
|
:iban_rule: '000000'
|
9161
|
-
'73351635':
|
9162
|
-
:check_digit_rule: '00'
|
9163
|
-
:iban_rule: '000000'
|
9164
9164
|
'73369264':
|
9165
9165
|
:check_digit_rule: '88'
|
9166
9166
|
:iban_rule: '000000'
|