banktools-de 3.1.13 → 3.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a0d26f497cc75d0aad70eeb7d3b461a06c85b4fbc5424d2ec237312139bb2c9
4
- data.tar.gz: f7e884061c862d42354b2e3963b7616a0c5d8f3ef26e95a3ff6a2cabaf2b244c
3
+ metadata.gz: 6296a7b69a8c8214cc4c1396d9c2bd8ad449b530158a53711adbd14fcfab75e3
4
+ data.tar.gz: f38bdf48a76451bec172d7b9ea080f91ecdbebd6560e1b237b01b18eeaeb9527
5
5
  SHA512:
6
- metadata.gz: c96ce3e51af003d258c1c961df93af24b51992b22c92b6d5682c43704f5d980ae553f9d0cd96d93a525c3996fae7720a0925c8eda20638b0cbccd3dc47772f13
7
- data.tar.gz: '03629825c71d5e6d4ee398dc9c42861c5645461e8b2095765e55539000171244fcd4860ac509d0b1afcd789fe007f054a513f71ced87948003fdc078af92d1bd'
6
+ metadata.gz: 1435b7339ef49be5c7c7c3e02639c139692a808ff0567f481e8b943163400a90de1f7620b5149f1acaa0eecf16d626af293d12f11d869c658b596b253bdc1c0b
7
+ data.tar.gz: 3e7e4813cc6fa07e38a81807928f2255066b51ed6ef61121eec7c7b4de446bc355e7268de4954cf97c4e2feb9810a71ff9548bc80238e25af90e88b7e15307bb
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.5"
4
+ - "2.6"
5
+ - "2.7"
6
+
data/README.md CHANGED
@@ -1,47 +1,50 @@
1
1
  # German bank tools
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/barsoom/banktools-de.svg)](http://travis-ci.org/barsoom/banktools-de)
4
+
3
5
  Ruby gem to validate, normalize/prettify and interpret German Bankleitzahl (BLZ) and bank account numbers.
4
6
 
5
7
  When in doubt, this library aims to err on the side of allowing too much. We've yet to find clear specs, so be aware that the current validation rules are *very* forgiving.
6
8
 
7
9
  If we got anything wrong, please file an issue or contribute a fix yourself.
8
10
 
9
-
10
11
  ## Usage
11
12
 
12
- # BLZ
13
+ ```ruby
14
+ # BLZ
13
15
 
14
- blz = BankTools::DE::BLZ.new("10070024")
15
- blz.normalize # => "100 700 24"
16
- blz.valid? # => true
17
- blz.errors # => []
18
- blz.bank_name # => "Deutsche Bank PGK Berlin"
19
- BankTools::DE::BLZ.blz_to_bank_name # => { "10070024" => "Deutsche Bank PGK Berlin", … }
16
+ blz = BankTools::DE::BLZ.new("10070024")
17
+ blz.normalize # => "100 700 24"
18
+ blz.valid? # => true
19
+ blz.errors # => []
20
+ blz.bank_name # => "Deutsche Bank PGK Berlin"
21
+ BankTools::DE::BLZ.blz_to_bank_name # => { "10070024" => "Deutsche Bank PGK Berlin", … }
20
22
 
21
- bad_blz = BankTools::DE::BLZ.new("1X")
22
- bad_blz.normalize # => "1X"
23
- bad_blz.valid? # => false
24
- bad_blz.errors # => [:too_short, :invalid_characters]
25
- blz.bank_name # => nil
23
+ bad_blz = BankTools::DE::BLZ.new("1X")
24
+ bad_blz.normalize # => "1X"
25
+ bad_blz.valid? # => false
26
+ bad_blz.errors # => [:too_short, :invalid_characters]
27
+ blz.bank_name # => nil
26
28
 
27
- # Account
29
+ # Account
28
30
 
29
- account = BankTools::DE::Account.new("123456789")
30
- account.normalize # => "123 456 789"
31
- account.valid? # => true
32
- account.errors # => []
31
+ account = BankTools::DE::Account.new("123456789")
32
+ account.normalize # => "123 456 789"
33
+ account.valid? # => true
34
+ account.errors # => []
33
35
 
34
- bad_account = BankTools::DE::Account.new("1")
35
- bad_account.normalize # => "1"
36
- bad_account.valid? # => false
37
- bad_account.errors # => [:too_short]
36
+ bad_account = BankTools::DE::Account.new("1")
37
+ bad_account.normalize # => "1"
38
+ bad_account.valid? # => false
39
+ bad_account.errors # => [:too_short]
38
40
 
39
- # Convert BLZ and account number to IBAN/BIC
41
+ # Convert BLZ and account number to IBAN/BIC
40
42
 
41
- result = BankTools::DE::IbanBicConverter.call(blz: "37040044", account: "532013000")
42
- result.iban # => "DE89370400440532013000"
43
- result.bic # => "COBADEFFXXX"
44
- # Or raises an exception.
43
+ result = BankTools::DE::IbanBicConverter.call(blz: "37040044", account: "532013000")
44
+ result.iban # => "DE89370400440532013000"
45
+ result.bic # => "COBADEFFXXX"
46
+ # Or raises an exception.
47
+ ```
45
48
 
46
49
  ## Tests
47
50
 
@@ -75,7 +78,9 @@ Bump the gem tiny version (e.g. 1.1.1 -> 1.1.2) and make a new release (`rake re
75
78
 
76
79
  Add this line to your application's Gemfile:
77
80
 
78
- gem 'banktools-de'
81
+ ```ruby
82
+ gem 'banktools-de'
83
+ ```
79
84
 
80
85
  And then execute:
81
86
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- :generated_at: 2019-12-02 09:07:06.899936707 +01:00
3
- :generated_from_url: https://www.bundesbank.de/resource/blob/602708/b68d6f72d67826c37806f62a34e07a48/mL/blz-neu-xls-data.xlsx
2
+ :generated_at: 2020-06-01 11:27:31.428606104 +02:00
3
+ :generated_from_url: https://www.bundesbank.de/resource/blob/602630/ed908ce56cfd9cdc7298ce7a2ecfa992/mL/blz-aktuell-xls-data.xlsx
4
4
  :data:
5
5
  '10000000': BBk Berlin
6
6
  '10010010': Postbank Ndl DB PFK
@@ -16,7 +16,7 @@
16
16
  '10020890': UniCredit Bank-HypoVereinbk
17
17
  '10030200': Berlin Hyp
18
18
  '10030400': ABK Bank Berlin
19
- '10030500': Bankhaus Löbbecke Berlin
19
+ '10030500': M.M. Warburg (Löbbecke)
20
20
  '10030600': North Channel Bank Mainz
21
21
  '10030700': Eurocity Bank
22
22
  '10030730': Eurocity Bank Gf GAA
@@ -123,7 +123,7 @@
123
123
  '15050500': Spk Vorpommern
124
124
  '15051732': Spk Meckl-Strelitz Feldberg
125
125
  '15061618': Raiffbk Mecklenb Seenplatte
126
- '15061638': Volksbank Raiffeisenbank
126
+ '15061638': VB Vorpommern
127
127
  '15061698': Raiffeisenbank Malchin
128
128
  '15080000': Commerzbank Pasewalk
129
129
  '15091674': Volksbank Demmin
@@ -490,7 +490,7 @@
490
490
  '25050299': Kr Spk Hannover -alt-
491
491
  '25055500': LBS-Nord, Hannover
492
492
  '25060000': DZ BANK Hannover
493
- '25060180': Bankhaus Hallbaum
493
+ '25060180': M.M. Warburg (Hallbaum)
494
494
  '25069168': VB u RB Leinebgld Delligsen
495
495
  '25069262': Raiff-VB Neustadt
496
496
  '25069270': Volksbank Aller-Oker
@@ -514,7 +514,7 @@
514
514
  '25151371': Stadtsparkasse Burgdorf
515
515
  '25152375': Kr Spk Fallingbostel
516
516
  '25152490': St Spk Wunstorf
517
- '25190001': Volksbank Celle
517
+ '25190001': Hannoversche Volksbank
518
518
  '25190088': HanVB - GS nur für GAA
519
519
  '25193331': Volksbank
520
520
  '25250001': Kreissparkasse Peine -alt-
@@ -532,7 +532,6 @@
532
532
  '25471073': Deutsche Bank Rinteln
533
533
  '25480021': Commerzbank Hameln
534
534
  '25491273': Volksbank Aerzen
535
- '25491744': Volksbank Bad Münder
536
535
  '25541426': Commerzbank Bückeburg
537
536
  '25551480': Sparkasse Schaumburg
538
537
  '25591413': Volksbank in Schaumburg
@@ -545,6 +544,7 @@
545
544
  '25690009': Volksbank Nienburg
546
545
  '25690010': Volksbank Nienburg (GAA)
547
546
  '25691633': Volksbank Sulingen
547
+ '25691699': Volksbank Sulingen
548
548
  '25740061': Commerzbank Celle
549
549
  '25750001': Sparkasse Bergen Celle
550
550
  '25761894': Volksbank Wittingen-Klötze
@@ -737,7 +737,7 @@
737
737
  '28069706': Volksbank Nordhümmling
738
738
  '28069755': Raiffeisenbank Oldersum
739
739
  '28069773': Raiffbk Wiesederm-Wiesede-M
740
- '28069878': Raiffbk Emsland-Mitte
740
+ '28069878': Raiffeisenbank Ems-Vechte
741
741
  '28069926': VB Niedergrafschaft
742
742
  '28069930': VB Langen-Gersten
743
743
  '28069935': Raiffeisenbank Lorup
@@ -788,7 +788,7 @@
788
788
  '29020000': Bankhaus Neelmeyer Bremen
789
789
  '29020100': Oldb Landesbank Bremen
790
790
  '29020200': Greensill Bank Bremen
791
- '29030400': Plumpbank Bremen
791
+ '29030400': M.M. Warburg (Plump)
792
792
  '29040060': Commerzbank CC Bremen
793
793
  '29040061': Commerzbank CC Bremen
794
794
  '29040090': Commerzbank Achim Bremen
@@ -1043,9 +1043,6 @@
1043
1043
  '37020500': Bank für Sozialwirtschaft
1044
1044
  '37020600': Santander Consumer Bk Köln
1045
1045
  '37020900': Ford Bank Köln
1046
- '37021100': Ford Bank, Köln
1047
- '37021300': Ford Bank, Köln
1048
- '37021400': Ford Bank (Gf EG), Köln
1049
1046
  '37021500': Ford Bank, Köln
1050
1047
  '37021548': Ford Bank (GF EG), Köln
1051
1048
  '37030200': Deutsche Oppenheim Köln
@@ -1262,7 +1259,6 @@
1262
1259
  '41261324': VB Enniger-Ostenfelde-Westk
1263
1260
  '41261419': VB Oelde-Ennigerloh-Neubeck
1264
1261
  '41262501': Volksbank
1265
- '41262621': Ver VB Telgte
1266
1262
  '41280043': Commerzbank Lippstadt
1267
1263
  '41440018': Commerzbank Soest Westf
1268
1264
  '41450075': Sparkasse SoestWerl
@@ -1577,8 +1573,14 @@
1577
1573
  '50060417': DZ BANK Gf VK 7
1578
1574
  '50060418': DZ BANK Gf VK8
1579
1575
  '50060419': DZ BANK Gf VK9
1576
+ '50060420': DZ BANK Gf V20
1577
+ '50060421': DZ BANK Gf V21
1578
+ '50060422': DZ BANK Gf V22
1579
+ '50060423': DZ BANK Gf V23
1580
+ '50060424': DZ BANK Gf V24
1581
+ '50060425': DZ BANK Gf V25
1580
1582
  '50060474': DZ BANK
1581
- '50061741': Raiffeisenbank Oberursel
1583
+ '50061741': RB im Hochtaunus Bad Hom
1582
1584
  '50069126': VRB Alzey-Land-Schwabenheim
1583
1585
  '50069146': Volksbank Grebenhain
1584
1586
  '50069187': Volksbank Egelsbach -alt-
@@ -1869,7 +1871,6 @@
1869
1871
  '52053458': St Spk Schwalmstadt
1870
1872
  '52060000': DZ BANK
1871
1873
  '52060208': Kurhessische Landbk Kassel
1872
- '52060400': Evangelische Bank Gf Kassel
1873
1874
  '52060410': Evangelische Bank Stuttgart
1874
1875
  '52061303': Raiffbk Borken Nordhessen
1875
1876
  '52062200': VR-Bank Chattengau
@@ -2229,7 +2230,7 @@
2229
2230
  '60010424': Aareal Bank
2230
2231
  '60010700': L-Bank Stuttgart -alt-
2231
2232
  '60020030': BW Bank Stuttgart
2232
- '60020100': Schwäbische Bank Stuttgart
2233
+ '60020100': M.M. Warburg (Schwäb. Bk.)
2233
2234
  '60020290': UniCredit Bank-HypoVereinbk
2234
2235
  '60020300': BNP Paribas Ndl. Dt.
2235
2236
  '60030000': Mercedes-Benz Bank
@@ -2832,7 +2833,7 @@
2832
2833
  '70120400': BNP Paribas Deutschland
2833
2834
  '70120500': CACEIS Bank, München
2834
2835
  '70120600': Airbus Bank
2835
- '70120700': Oberbank Heilbronn
2836
+ '70120700': Oberbank Freiburg
2836
2837
  '70130700': Lenz Bank München
2837
2838
  '70130799': Lenz Bank München Gf GAA
2838
2839
  '70130800': Merkur Bank München
@@ -3014,7 +3015,7 @@
3014
3015
  '72191600': Hallertauer Volksbank
3015
3016
  '72220074': UniCredit Bank-HypoVereinbk
3016
3017
  '72223182': UniCredit Bank-HypoVereinbk
3017
- '72250000': Sparkasse Nördlingen
3018
+ '72250000': Sparkasse Nördlingen -alt-
3018
3019
  '72250160': Spk Donauwörth
3019
3020
  '72251520': Spk Dillingen-Nördlingen
3020
3021
  '72261754': Raiffeisenbank Rain am Lech
@@ -3240,7 +3241,7 @@
3240
3241
  '76230000': BSQ Bauspar Nürnberg
3241
3242
  '76240011': Commerzbank Zirndorf
3242
3243
  '76250000': Spk Fürth
3243
- '76251020': Spk i Landkreis Neustadt
3244
+ '76251020': Sparkasse i. Lkr. NEA-BWI
3244
3245
  '76260451': Raiffeisen-Volksbank Fürth
3245
3246
  '76320072': UniCredit Bank-HypoVereinbk
3246
3247
  '76340061': Commerzbank Erlangen
@@ -3294,7 +3295,7 @@
3294
3295
  '77350110': Sparkasse Bayreuth
3295
3296
  '77361600': Raiff-VB Kronach-Ludwigssta
3296
3297
  '77363749': Raiffeisenbank Gefrees
3297
- '77365792': Raiffbk Hollfeld-Waischenfd
3298
+ '77365792': RB Fränkische Schweiz
3298
3299
  '77390000': VB-Raiffbk Bayreuth
3299
3300
  '77390628': apoBank Bayreuth
3300
3301
  '78020070': UniCredit Bank-HypoVereinbk
@@ -1,5 +1,5 @@
1
1
  module BankTools
2
2
  module DE
3
- VERSION = "3.1.13"
3
+ VERSION = "3.1.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banktools-de
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.13
4
+ version: 3.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Nyh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-02 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attr_extras
@@ -116,6 +116,7 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
+ - ".travis.yml"
119
120
  - Gemfile
120
121
  - README.md
121
122
  - Rakefile
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubygems_version: 3.0.3
156
+ rubygems_version: 3.1.2
156
157
  signing_key:
157
158
  specification_version: 4
158
159
  summary: Validate and normalize German Bankleitzahl (BLZ) and bank account numbers.