ibandit 0.11.3 → 0.11.4

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
  SHA1:
3
- metadata.gz: 80501a5289264551642783a61e29f3945e5f9887
4
- data.tar.gz: 6cdd2b4ca9dcbf371f5a931bed37b50142f8a29d
3
+ metadata.gz: 1050e2a3560a4eee3107926d777859c4a8d3a446
4
+ data.tar.gz: 6b67128dda086406a3c747f2366e13ec2de6ca5e
5
5
  SHA512:
6
- metadata.gz: 3169d8e8b92c4249ba37daea8ab1ac5300527d184421fb4b46e4efe7fe484f03bbe05e719ea546a9322067185281e2fef5bda7ef3333910920b5c10ef941ef23
7
- data.tar.gz: 9018fcda5c13367d8a82b8059ca685c6fc5912f6aa93460c8307f07acd63e81bce41ee794809a3935d7d2ed9ca56a02221c97ab4cb9458ce317c6a61bb488bf2
6
+ metadata.gz: 5db1134591217e1708418e6de74d7145693e4f6ae73468a41e7de79b24a8d6cb8b08638866d3c067cdc68bcdee0d998af217b303b88b51218842d9108f6a3e00
7
+ data.tar.gz: 11c7dba5aa2898e00121a5840c49d4a934ddd2365e70464cfbf02d4328f26ec8a9fe7d49545f98489ca3055909893b528e12c42b1c3406a0346274859a2675d4
@@ -1,3 +1,8 @@
1
+ ## 0.11.4 - March 13, 2017
2
+
3
+ - Fix `swift_national_id` for Slovenian IBANs. Previously it was
4
+ returning two digits, instead of five.
5
+
1
6
  ## 0.11.3 - March 9, 2017
2
7
 
3
8
  - Fix bug: Previously, constructing an `Ibandit::IBAN` object with
@@ -83,6 +83,7 @@ SE:
83
83
  SI:
84
84
  :bank_code_format: \d{5}
85
85
  :account_number_format: \d{8}\d{2}
86
+ :national_id_length: 5
86
87
  SK:
87
88
  :local_check_digit_position: 14
88
89
  :local_check_digit_length: 1
@@ -8,10 +8,10 @@ AD:
8
8
  :account_number_length: 12
9
9
  :total_length: 24
10
10
  :national_id_length: 8
11
- :bban_format: \d{4}\d{4}[A-Z0-9]{12}
12
- :bank_code_format: \d{4}
13
- :branch_code_format: \d{4}
14
- :account_number_format: '[A-Z0-9]{12}'
11
+ :bban_format: "\\d{4}\\d{4}[A-Z0-9]{12}"
12
+ :bank_code_format: "\\d{4}"
13
+ :branch_code_format: "\\d{4}"
14
+ :account_number_format: "[A-Z0-9]{12}"
15
15
  AE:
16
16
  :bank_code_position: 5
17
17
  :bank_code_length: 3
@@ -21,9 +21,9 @@ AE:
21
21
  :account_number_length: 16
22
22
  :total_length: 23
23
23
  :national_id_length: 3
24
- :bban_format: \d{3}\d{16}
25
- :bank_code_format: \d{3}
26
- :account_number_format: \d{16}
24
+ :bban_format: "\\d{3}\\d{16}"
25
+ :bank_code_format: "\\d{3}"
26
+ :account_number_format: "\\d{16}"
27
27
  AL:
28
28
  :bank_code_position: 5
29
29
  :bank_code_length: 3
@@ -33,10 +33,10 @@ AL:
33
33
  :account_number_length: 16
34
34
  :total_length: 28
35
35
  :national_id_length: 8
36
- :bban_format: \d{8}[A-Z0-9]{16}
37
- :bank_code_format: \d{3}
38
- :account_number_format: '[A-Z0-9]{16}'
39
- :branch_code_format: \d{5}
36
+ :bban_format: "\\d{8}[A-Z0-9]{16}"
37
+ :bank_code_format: "\\d{3}"
38
+ :account_number_format: "[A-Z0-9]{16}"
39
+ :branch_code_format: "\\d{5}"
40
40
  AT:
41
41
  :bank_code_position: 5
42
42
  :bank_code_length: 5
@@ -46,9 +46,9 @@ AT:
46
46
  :account_number_length: 11
47
47
  :total_length: 20
48
48
  :national_id_length: 5
49
- :bban_format: \d{5}\d{11}
50
- :bank_code_format: \d{5}
51
- :account_number_format: \d{11}
49
+ :bban_format: "\\d{5}\\d{11}"
50
+ :bank_code_format: "\\d{5}"
51
+ :account_number_format: "\\d{11}"
52
52
  AZ:
53
53
  :bank_code_position: 5
54
54
  :bank_code_length: 4
@@ -58,9 +58,9 @@ AZ:
58
58
  :account_number_length: 20
59
59
  :total_length: 28
60
60
  :national_id_length: 4
61
- :bban_format: '[A-Z]{4}[A-Z0-9]{20}'
62
- :bank_code_format: '[A-Z]{4}'
63
- :account_number_format: '[A-Z0-9]{20}'
61
+ :bban_format: "[A-Z]{4}[A-Z0-9]{20}"
62
+ :bank_code_format: "[A-Z]{4}"
63
+ :account_number_format: "[A-Z0-9]{20}"
64
64
  BA:
65
65
  :bank_code_position: 5
66
66
  :bank_code_length: 3
@@ -70,10 +70,10 @@ BA:
70
70
  :account_number_length: 10
71
71
  :total_length: 20
72
72
  :national_id_length: 3
73
- :bban_format: \d{3}\d{3}\d{8}\d{2}
74
- :bank_code_format: \d{3}
75
- :branch_code_format: \d{3}
76
- :account_number_format: \d{8}\d{2}
73
+ :bban_format: "\\d{3}\\d{3}\\d{8}\\d{2}"
74
+ :bank_code_format: "\\d{3}"
75
+ :branch_code_format: "\\d{3}"
76
+ :account_number_format: "\\d{8}\\d{2}"
77
77
  BE:
78
78
  :bank_code_position: 5
79
79
  :bank_code_length: 3
@@ -83,9 +83,9 @@ BE:
83
83
  :account_number_length: 12
84
84
  :total_length: 16
85
85
  :national_id_length: 3
86
- :bban_format: \d{3}\d{7}\d{2}
87
- :bank_code_format: \d{3}
88
- :account_number_format: \d{7}\d{2}
86
+ :bban_format: "\\d{3}\\d{7}\\d{2}"
87
+ :bank_code_format: "\\d{3}"
88
+ :account_number_format: "\\d{7}\\d{2}"
89
89
  :local_check_digit_position: 15
90
90
  :local_check_digit_length: 2
91
91
  BG:
@@ -97,10 +97,10 @@ BG:
97
97
  :account_number_length: 10
98
98
  :total_length: 22
99
99
  :national_id_length: 8
100
- :bban_format: '[A-Z]{4}\d{4}\d{2}[A-Z0-9]{8}'
101
- :bank_code_format: '[A-Z]{4}'
102
- :branch_code_format: \d{4}
103
- :account_number_format: \d{2}[A-Z0-9]{8}
100
+ :bban_format: "[A-Z]{4}\\d{4}\\d{2}[A-Z0-9]{8}"
101
+ :bank_code_format: "[A-Z]{4}"
102
+ :branch_code_format: "\\d{4}"
103
+ :account_number_format: "\\d{2}[A-Z0-9]{8}"
104
104
  BH:
105
105
  :bank_code_position: 5
106
106
  :bank_code_length: 4
@@ -110,9 +110,9 @@ BH:
110
110
  :account_number_length: 14
111
111
  :total_length: 22
112
112
  :national_id_length: 4
113
- :bban_format: '[A-Z]{4}[A-Z0-9]{14}'
114
- :bank_code_format: '[A-Z]{4}'
115
- :account_number_format: '[A-Z0-9]{14}'
113
+ :bban_format: "[A-Z]{4}[A-Z0-9]{14}"
114
+ :bank_code_format: "[A-Z]{4}"
115
+ :account_number_format: "[A-Z0-9]{14}"
116
116
  BR:
117
117
  :bank_code_position: 5
118
118
  :bank_code_length: 8
@@ -122,10 +122,10 @@ BR:
122
122
  :account_number_length: 12
123
123
  :total_length: 29
124
124
  :national_id_length: 8
125
- :bban_format: \d{8}\d{5}\d{10}[A-Z]{1}[A-Z0-9]{1}
126
- :bank_code_format: \d{8}
127
- :account_number_format: \d{10}[A-Z]{1}[A-Z0-9]{1}
128
- :branch_code_format: \d{5}
125
+ :bban_format: "\\d{8}\\d{5}\\d{10}[A-Z]{1}[A-Z0-9]{1}"
126
+ :bank_code_format: "\\d{8}"
127
+ :account_number_format: "\\d{10}[A-Z]{1}[A-Z0-9]{1}"
128
+ :branch_code_format: "\\d{5}"
129
129
  CH:
130
130
  :bank_code_position: 5
131
131
  :bank_code_length: 5
@@ -135,9 +135,9 @@ CH:
135
135
  :account_number_length: 12
136
136
  :total_length: 21
137
137
  :national_id_length: 5
138
- :bban_format: \d{5}[A-Z0-9]{12}
139
- :bank_code_format: \d{5}
140
- :account_number_format: '[A-Z0-9]{12}'
138
+ :bban_format: "\\d{5}[A-Z0-9]{12}"
139
+ :bank_code_format: "\\d{5}"
140
+ :account_number_format: "[A-Z0-9]{12}"
141
141
  CR:
142
142
  :bank_code_position: 5
143
143
  :bank_code_length: 3
@@ -147,9 +147,9 @@ CR:
147
147
  :account_number_length: 14
148
148
  :total_length: 21
149
149
  :national_id_length: 3
150
- :bban_format: \d{3}\d{14}
151
- :bank_code_format: \d{3}
152
- :account_number_format: \d{14}
150
+ :bban_format: "\\d{3}\\d{14}"
151
+ :bank_code_format: "\\d{3}"
152
+ :account_number_format: "\\d{14}"
153
153
  CY:
154
154
  :bank_code_position: 5
155
155
  :bank_code_length: 3
@@ -159,10 +159,10 @@ CY:
159
159
  :account_number_length: 16
160
160
  :total_length: 28
161
161
  :national_id_length: 8
162
- :bban_format: \d{3}\d{5}[A-Z0-9]{16}
163
- :bank_code_format: \d{3}
164
- :branch_code_format: \d{5}
165
- :account_number_format: '[A-Z0-9]{16}'
162
+ :bban_format: "\\d{3}\\d{5}[A-Z0-9]{16}"
163
+ :bank_code_format: "\\d{3}"
164
+ :branch_code_format: "\\d{5}"
165
+ :account_number_format: "[A-Z0-9]{16}"
166
166
  CZ:
167
167
  :bank_code_position: 5
168
168
  :bank_code_length: 4
@@ -172,9 +172,9 @@ CZ:
172
172
  :account_number_length: 16
173
173
  :total_length: 24
174
174
  :national_id_length: 4
175
- :bban_format: \d{4}\d{6}\d{10}
176
- :bank_code_format: \d{4}
177
- :account_number_format: \d{6}\d{10}
175
+ :bban_format: "\\d{4}\\d{6}\\d{10}"
176
+ :bank_code_format: "\\d{4}"
177
+ :account_number_format: "\\d{6}\\d{10}"
178
178
  DE:
179
179
  :bank_code_position: 5
180
180
  :bank_code_length: 8
@@ -184,9 +184,9 @@ DE:
184
184
  :account_number_length: 10
185
185
  :total_length: 22
186
186
  :national_id_length: 8
187
- :bban_format: \d{8}\d{10}
188
- :bank_code_format: \d{8}
189
- :account_number_format: \d{10}
187
+ :bban_format: "\\d{8}\\d{10}"
188
+ :bank_code_format: "\\d{8}"
189
+ :account_number_format: "\\d{10}"
190
190
  DK:
191
191
  :bank_code_position: 5
192
192
  :bank_code_length: 4
@@ -196,9 +196,9 @@ DK:
196
196
  :account_number_length: 10
197
197
  :total_length: 18
198
198
  :national_id_length: 4
199
- :bban_format: \d{4}\d{9}\d{1}
200
- :bank_code_format: \d{4}
201
- :account_number_format: \d{9}\d{1}
199
+ :bban_format: "\\d{4}\\d{9}\\d{1}"
200
+ :bank_code_format: "\\d{4}"
201
+ :account_number_format: "\\d{9}\\d{1}"
202
202
  DO:
203
203
  :bank_code_position: 5
204
204
  :bank_code_length: 4
@@ -208,9 +208,9 @@ DO:
208
208
  :account_number_length: 20
209
209
  :total_length: 28
210
210
  :national_id_length: 4
211
- :bban_format: '[A-Z0-9]{4}\d{20}'
212
- :bank_code_format: '[A-Z]{4}'
213
- :account_number_format: '{4}\d{20}'
211
+ :bban_format: "[A-Z0-9]{4}\\d{20}"
212
+ :bank_code_format: "[A-Z]{4}"
213
+ :account_number_format: "{4}\\d{20}"
214
214
  EE:
215
215
  :bank_code_position: 5
216
216
  :bank_code_length: 2
@@ -220,9 +220,9 @@ EE:
220
220
  :account_number_length: 14
221
221
  :total_length: 20
222
222
  :national_id_length: 2
223
- :bban_format: \d{2}\d{2}\d{11}\d{1}
224
- :bank_code_format: '[1-9][0-9]'
225
- :account_number_format: \d{2}\d{11}\d{1}
223
+ :bban_format: "\\d{2}\\d{2}\\d{11}\\d{1}"
224
+ :bank_code_format: "[1-9][0-9]"
225
+ :account_number_format: "\\d{2}\\d{11}\\d{1}"
226
226
  :local_check_digit_position: 20
227
227
  :local_check_digit_length: 1
228
228
  ES:
@@ -234,10 +234,10 @@ ES:
234
234
  :account_number_length: 12
235
235
  :total_length: 24
236
236
  :national_id_length: 4
237
- :bban_format: \d{4}\d{4}\d{1}\d{1}\d{10}
238
- :bank_code_format: \d{4}
239
- :branch_code_format: \d{4}
240
- :account_number_format: \d{1}\d{1}\d{10}
237
+ :bban_format: "\\d{4}\\d{4}\\d{1}\\d{1}\\d{10}"
238
+ :bank_code_format: "\\d{4}"
239
+ :branch_code_format: "\\d{4}"
240
+ :account_number_format: "\\d{1}\\d{1}\\d{10}"
241
241
  :local_check_digit_position: 13
242
242
  :local_check_digit_length: 2
243
243
  FI:
@@ -249,9 +249,9 @@ FI:
249
249
  :account_number_length: 8
250
250
  :total_length: 18
251
251
  :national_id_length: 3
252
- :bban_format: \d{6}\d{7}\d{1}
253
- :bank_code_format: \d{6}
254
- :account_number_format: \d{7}\d{1}
252
+ :bban_format: "\\d{6}\\d{7}\\d{1}"
253
+ :bank_code_format: "\\d{6}"
254
+ :account_number_format: "\\d{7}\\d{1}"
255
255
  :local_check_digit_position: 18
256
256
  :local_check_digit_length: 1
257
257
  FO:
@@ -263,9 +263,9 @@ FO:
263
263
  :account_number_length: 10
264
264
  :total_length: 18
265
265
  :national_id_length: 4
266
- :bban_format: \d{4}\d{9}\d{1}
267
- :bank_code_format: \d{4}
268
- :account_number_format: \d{9}\d{1}
266
+ :bban_format: "\\d{4}\\d{9}\\d{1}"
267
+ :bank_code_format: "\\d{4}"
268
+ :account_number_format: "\\d{9}\\d{1}"
269
269
  FR:
270
270
  :bank_code_position: 5
271
271
  :bank_code_length: 5
@@ -275,10 +275,10 @@ FR:
275
275
  :account_number_length: 13
276
276
  :total_length: 27
277
277
  :national_id_length: 10
278
- :bban_format: \d{5}\d{5}[A-Z0-9]{11}\d{2}
279
- :bank_code_format: \d{5}
280
- :account_number_format: '[A-Z0-9]{11}\d{2}'
281
- :branch_code_format: \d{5}
278
+ :bban_format: "\\d{5}\\d{5}[A-Z0-9]{11}\\d{2}"
279
+ :bank_code_format: "\\d{5}"
280
+ :account_number_format: "[A-Z0-9]{11}\\d{2}"
281
+ :branch_code_format: "\\d{5}"
282
282
  :local_check_digit_position: 26
283
283
  :local_check_digit_length: 2
284
284
  GB:
@@ -290,10 +290,10 @@ GB:
290
290
  :account_number_length: 8
291
291
  :total_length: 22
292
292
  :national_id_length: 10
293
- :bban_format: '[A-Z]{4}\d{6}\d{8}'
294
- :bank_code_format: '[A-Z]{4}'
295
- :account_number_format: \d{8}
296
- :branch_code_format: \d{6}
293
+ :bban_format: "[A-Z]{4}\\d{6}\\d{8}"
294
+ :bank_code_format: "[A-Z]{4}"
295
+ :account_number_format: "\\d{8}"
296
+ :branch_code_format: "\\d{6}"
297
297
  GE:
298
298
  :bank_code_position: 5
299
299
  :bank_code_length: 2
@@ -303,9 +303,9 @@ GE:
303
303
  :account_number_length: 16
304
304
  :total_length: 22
305
305
  :national_id_length: 2
306
- :bban_format: '[A-Z]{2}\d{16}'
307
- :bank_code_format: '[A-Z]{2}'
308
- :account_number_format: \d{16}
306
+ :bban_format: "[A-Z]{2}\\d{16}"
307
+ :bank_code_format: "[A-Z]{2}"
308
+ :account_number_format: "\\d{16}"
309
309
  GI:
310
310
  :bank_code_position: 5
311
311
  :bank_code_length: 4
@@ -315,9 +315,9 @@ GI:
315
315
  :account_number_length: 15
316
316
  :total_length: 23
317
317
  :national_id_length: 4
318
- :bban_format: '[A-Z]{4}[A-Z0-9]{15}'
319
- :bank_code_format: '[A-Z]{4}'
320
- :account_number_format: '[A-Z0-9]{15}'
318
+ :bban_format: "[A-Z]{4}[A-Z0-9]{15}"
319
+ :bank_code_format: "[A-Z]{4}"
320
+ :account_number_format: "[A-Z0-9]{15}"
321
321
  GL:
322
322
  :bank_code_position: 5
323
323
  :bank_code_length: 4
@@ -327,9 +327,9 @@ GL:
327
327
  :account_number_length: 10
328
328
  :total_length: 18
329
329
  :national_id_length: 4
330
- :bban_format: \d{4}\d{9}\d{1}
331
- :bank_code_format: \d{4}
332
- :account_number_format: \d{9}\d{1}
330
+ :bban_format: "\\d{4}\\d{9}\\d{1}"
331
+ :bank_code_format: "\\d{4}"
332
+ :account_number_format: "\\d{9}\\d{1}"
333
333
  GR:
334
334
  :bank_code_position: 5
335
335
  :bank_code_length: 3
@@ -339,10 +339,10 @@ GR:
339
339
  :account_number_length: 16
340
340
  :total_length: 27
341
341
  :national_id_length: 3
342
- :bban_format: \d{3}\d{4}[A-Z0-9]{16}
343
- :bank_code_format: \d{3}
344
- :branch_code_format: \d{4}
345
- :account_number_format: '[A-Z0-9]{16}'
342
+ :bban_format: "\\d{3}\\d{4}[A-Z0-9]{16}"
343
+ :bank_code_format: "\\d{3}"
344
+ :branch_code_format: "\\d{4}"
345
+ :account_number_format: "[A-Z0-9]{16}"
346
346
  GT:
347
347
  :bank_code_position: 5
348
348
  :bank_code_length: 4
@@ -352,9 +352,9 @@ GT:
352
352
  :account_number_length: 20
353
353
  :total_length: 28
354
354
  :national_id_length: 4
355
- :bban_format: '[A-Z0-9]{4}[A-Z0-9]{20}'
356
- :bank_code_format: '[A-Z0-9]{4}'
357
- :account_number_format: '[A-Z0-9]{20}'
355
+ :bban_format: "[A-Z0-9]{4}[A-Z0-9]{20}"
356
+ :bank_code_format: "[A-Z0-9]{4}"
357
+ :account_number_format: "[A-Z0-9]{20}"
358
358
  HR:
359
359
  :bank_code_position: 5
360
360
  :bank_code_length: 7
@@ -364,9 +364,9 @@ HR:
364
364
  :account_number_length: 10
365
365
  :total_length: 21
366
366
  :national_id_length: 7
367
- :bban_format: \d{7}\d{10}
368
- :bank_code_format: \d{7}
369
- :account_number_format: \d{10}
367
+ :bban_format: "\\d{7}\\d{10}"
368
+ :bank_code_format: "\\d{7}"
369
+ :account_number_format: "\\d{10}"
370
370
  HU:
371
371
  :bank_code_position: 5
372
372
  :bank_code_length: 3
@@ -376,10 +376,10 @@ HU:
376
376
  :account_number_length: 17
377
377
  :total_length: 28
378
378
  :national_id_length: 7
379
- :bban_format: \d{3}\d{4}\d{1}\d{15}\d{1}
380
- :bank_code_format: \d{3}
381
- :branch_code_format: \d{4}
382
- :account_number_format: \d{1}\d{15}\d{1}
379
+ :bban_format: "\\d{3}\\d{4}\\d{1}\\d{15}\\d{1}"
380
+ :bank_code_format: "\\d{3}"
381
+ :branch_code_format: "\\d{4}"
382
+ :account_number_format: "\\d{1}\\d{15}\\d{1}"
383
383
  IE:
384
384
  :bank_code_position: 5
385
385
  :bank_code_length: 4
@@ -389,10 +389,10 @@ IE:
389
389
  :account_number_length: 8
390
390
  :total_length: 22
391
391
  :national_id_length: 10
392
- :bban_format: '[A-Z]{4}\d{6}\d{8}'
393
- :bank_code_format: '[A-Z]{4}'
394
- :branch_code_format: \d{6}
395
- :account_number_format: \d{8}
392
+ :bban_format: "[A-Z]{4}\\d{6}\\d{8}"
393
+ :bank_code_format: "[A-Z]{4}"
394
+ :branch_code_format: "\\d{6}"
395
+ :account_number_format: "\\d{8}"
396
396
  IL:
397
397
  :bank_code_position: 5
398
398
  :bank_code_length: 3
@@ -402,10 +402,10 @@ IL:
402
402
  :account_number_length: 13
403
403
  :total_length: 23
404
404
  :national_id_length: 6
405
- :bban_format: \d{3}\d{3}\d{13}
406
- :bank_code_format: \d{3}
407
- :branch_code_format: \d{3}
408
- :account_number_format: \d{13}
405
+ :bban_format: "\\d{3}\\d{3}\\d{13}"
406
+ :bank_code_format: "\\d{3}"
407
+ :branch_code_format: "\\d{3}"
408
+ :account_number_format: "\\d{13}"
409
409
  IS:
410
410
  :bank_code_position: 5
411
411
  :bank_code_length: 4
@@ -415,9 +415,9 @@ IS:
415
415
  :account_number_length: 18
416
416
  :total_length: 26
417
417
  :national_id_length: 4
418
- :bban_format: \d{4}\d{2}\d{6}\d{10}
419
- :bank_code_format: \d{4}
420
- :account_number_format: \d{2}\d{6}\d{10}
418
+ :bban_format: "\\d{4}\\d{2}\\d{6}\\d{10}"
419
+ :bank_code_format: "\\d{4}"
420
+ :account_number_format: "\\d{2}\\d{6}\\d{10}"
421
421
  :local_check_digit_position: 25
422
422
  :local_check_digit_length: 1
423
423
  IT:
@@ -429,10 +429,10 @@ IT:
429
429
  :account_number_length: 12
430
430
  :total_length: 27
431
431
  :national_id_length: 10
432
- :bban_format: '[A-Z]{1}\d{5}\d{5}[A-Z0-9]{12}'
433
- :bank_code_format: \d{5}
434
- :branch_code_format: \d{5}
435
- :account_number_format: '[A-Z0-9]{12}'
432
+ :bban_format: "[A-Z]{1}\\d{5}\\d{5}[A-Z0-9]{12}"
433
+ :bank_code_format: "\\d{5}"
434
+ :branch_code_format: "\\d{5}"
435
+ :account_number_format: "[A-Z0-9]{12}"
436
436
  :local_check_digit_position: 5
437
437
  :local_check_digit_length: 1
438
438
  KW:
@@ -444,9 +444,9 @@ KW:
444
444
  :account_number_length: 22
445
445
  :total_length: 30
446
446
  :national_id_length: 4
447
- :bban_format: '[A-Z]{4}[A-Z0-9]{22}'
448
- :bank_code_format: '[A-Z]{4}'
449
- :account_number_format: '[A-Z0-9]{22}'
447
+ :bban_format: "[A-Z]{4}[A-Z0-9]{22}"
448
+ :bank_code_format: "[A-Z]{4}"
449
+ :account_number_format: "[A-Z0-9]{22}"
450
450
  KZ:
451
451
  :bank_code_position: 5
452
452
  :bank_code_length: 3
@@ -456,9 +456,9 @@ KZ:
456
456
  :account_number_length: 13
457
457
  :total_length: 20
458
458
  :national_id_length: 3
459
- :bban_format: \d{3}[A-Z0-9]{13}
460
- :bank_code_format: \d{3}
461
- :account_number_format: '[A-Z0-9]{13}'
459
+ :bban_format: "\\d{3}[A-Z0-9]{13}"
460
+ :bank_code_format: "\\d{3}"
461
+ :account_number_format: "[A-Z0-9]{13}"
462
462
  LB:
463
463
  :bank_code_position: 5
464
464
  :bank_code_length: 4
@@ -468,9 +468,9 @@ LB:
468
468
  :account_number_length: 14
469
469
  :total_length: 28
470
470
  :national_id_length: 4
471
- :bban_format: \d{4}[A-Z0-9]{20}
472
- :bank_code_format: \d{4}
473
- :account_number_format: '[A-Z0-9]{14}'
471
+ :bban_format: "\\d{4}[A-Z0-9]{20}"
472
+ :bank_code_format: "\\d{4}"
473
+ :account_number_format: "[A-Z0-9]{14}"
474
474
  LI:
475
475
  :bank_code_position: 5
476
476
  :bank_code_length: 5
@@ -480,9 +480,9 @@ LI:
480
480
  :account_number_length: 12
481
481
  :total_length: 21
482
482
  :national_id_length: 5
483
- :bban_format: \d{5}[A-Z0-9]{12}
484
- :bank_code_format: \d{5}
485
- :account_number_format: '[A-Z0-9]{12}'
483
+ :bban_format: "\\d{5}[A-Z0-9]{12}"
484
+ :bank_code_format: "\\d{5}"
485
+ :account_number_format: "[A-Z0-9]{12}"
486
486
  LT:
487
487
  :bank_code_position: 5
488
488
  :bank_code_length: 5
@@ -492,9 +492,9 @@ LT:
492
492
  :account_number_length: 11
493
493
  :total_length: 20
494
494
  :national_id_length: 5
495
- :bban_format: \d{5}\d{11}
496
- :bank_code_format: \d{5}
497
- :account_number_format: \d{11}
495
+ :bban_format: "\\d{5}\\d{11}"
496
+ :bank_code_format: "\\d{5}"
497
+ :account_number_format: "\\d{11}"
498
498
  LU:
499
499
  :bank_code_position: 5
500
500
  :bank_code_length: 3
@@ -504,9 +504,9 @@ LU:
504
504
  :account_number_length: 13
505
505
  :total_length: 20
506
506
  :national_id_length: 3
507
- :bban_format: \d{3}[A-Z0-9]{13}
508
- :bank_code_format: \d{3}
509
- :account_number_format: '[A-Z0-9]{13}'
507
+ :bban_format: "\\d{3}[A-Z0-9]{13}"
508
+ :bank_code_format: "\\d{3}"
509
+ :account_number_format: "[A-Z0-9]{13}"
510
510
  LV:
511
511
  :bank_code_position: 5
512
512
  :bank_code_length: 4
@@ -516,9 +516,9 @@ LV:
516
516
  :account_number_length: 13
517
517
  :total_length: 21
518
518
  :national_id_length: 4
519
- :bban_format: '[A-Z]{4}[A-Z0-9]{13}'
520
- :bank_code_format: '[A-Z]{4}'
521
- :account_number_format: '[A-Z0-9]{13}'
519
+ :bban_format: "[A-Z]{4}[A-Z0-9]{13}"
520
+ :bank_code_format: "[A-Z]{4}"
521
+ :account_number_format: "[A-Z0-9]{13}"
522
522
  MC:
523
523
  :bank_code_position: 5
524
524
  :bank_code_length: 5
@@ -528,10 +528,10 @@ MC:
528
528
  :account_number_length: 13
529
529
  :total_length: 27
530
530
  :national_id_length: 10
531
- :bban_format: \d{5}\d{5}[A-Z0-9]{11}\d{2}
532
- :bank_code_format: \d{5}
533
- :branch_code_format: \d{5}
534
- :account_number_format: '[A-Z0-9]{11}\d{2}'
531
+ :bban_format: "\\d{5}\\d{5}[A-Z0-9]{11}\\d{2}"
532
+ :bank_code_format: "\\d{5}"
533
+ :branch_code_format: "\\d{5}"
534
+ :account_number_format: "[A-Z0-9]{11}\\d{2}"
535
535
  :local_check_digit_position: 26
536
536
  :local_check_digit_length: 2
537
537
  MD:
@@ -543,9 +543,9 @@ MD:
543
543
  :account_number_length: 18
544
544
  :total_length: 24
545
545
  :national_id_length: 2
546
- :bban_format: '[A-Z0-9]{2}[A-Z0-9]{18}'
547
- :bank_code_format: '[A-Z0-9]{2}'
548
- :account_number_format: '[A-Z0-9]{18}'
546
+ :bban_format: "[A-Z0-9]{2}[A-Z0-9]{18}"
547
+ :bank_code_format: "[A-Z0-9]{2}"
548
+ :account_number_format: "[A-Z0-9]{18}"
549
549
  ME:
550
550
  :bank_code_position: 5
551
551
  :bank_code_length: 3
@@ -555,9 +555,9 @@ ME:
555
555
  :account_number_length: 15
556
556
  :total_length: 22
557
557
  :national_id_length: 3
558
- :bban_format: \d{3}\d{13}\d{2}
559
- :bank_code_format: \d{3}
560
- :account_number_format: \d{13}\d{2}
558
+ :bban_format: "\\d{3}\\d{13}\\d{2}"
559
+ :bank_code_format: "\\d{3}"
560
+ :account_number_format: "\\d{13}\\d{2}"
561
561
  MK:
562
562
  :bank_code_position: 5
563
563
  :bank_code_length: 3
@@ -567,9 +567,9 @@ MK:
567
567
  :account_number_length: 12
568
568
  :total_length: 19
569
569
  :national_id_length: 3
570
- :bban_format: \d{3}[A-Z0-9]{10}\d{2}
571
- :bank_code_format: \d{3}
572
- :account_number_format: '[A-Z0-9]{10}\d{2}'
570
+ :bban_format: "\\d{3}[A-Z0-9]{10}\\d{2}"
571
+ :bank_code_format: "\\d{3}"
572
+ :account_number_format: "[A-Z0-9]{10}\\d{2}"
573
573
  MR:
574
574
  :bank_code_position: 5
575
575
  :bank_code_length: 5
@@ -579,10 +579,10 @@ MR:
579
579
  :account_number_length: 13
580
580
  :total_length: 27
581
581
  :national_id_length: 10
582
- :bban_format: \d{5}\d{5}\d{11}\d{2}
583
- :bank_code_format: \d{5}
584
- :branch_code_format: \d{5}
585
- :account_number_format: \d{11}\d{2}
582
+ :bban_format: "\\d{5}\\d{5}\\d{11}\\d{2}"
583
+ :bank_code_format: "\\d{5}"
584
+ :branch_code_format: "\\d{5}"
585
+ :account_number_format: "\\d{11}\\d{2}"
586
586
  MT:
587
587
  :bank_code_position: 5
588
588
  :bank_code_length: 4
@@ -592,10 +592,10 @@ MT:
592
592
  :account_number_length: 18
593
593
  :total_length: 31
594
594
  :national_id_length: 9
595
- :bban_format: '[A-Z]{4}\d{5}[A-Z0-9]{18}'
596
- :bank_code_format: '[A-Z]{4}'
597
- :branch_code_format: \d{5}
598
- :account_number_format: '[A-Z0-9]{18}'
595
+ :bban_format: "[A-Z]{4}\\d{5}[A-Z0-9]{18}"
596
+ :bank_code_format: "[A-Z]{4}"
597
+ :branch_code_format: "\\d{5}"
598
+ :account_number_format: "[A-Z0-9]{18}"
599
599
  MU:
600
600
  :bank_code_position: 5
601
601
  :bank_code_length: 6
@@ -605,10 +605,10 @@ MU:
605
605
  :account_number_length: 18
606
606
  :total_length: 30
607
607
  :national_id_length: 8
608
- :bban_format: '[A-Z]{4}\d{2}\d{2}\d{12}\d{3}[A-Z]{3}'
609
- :bank_code_format: '[A-Z]{4}\d{2}'
610
- :branch_code_format: \d{2}
611
- :account_number_format: \d{12}\d{3}[A-Z]{3}
608
+ :bban_format: "[A-Z]{4}\\d{2}\\d{2}\\d{12}\\d{3}[A-Z]{3}"
609
+ :bank_code_format: "[A-Z]{4}\\d{2}"
610
+ :branch_code_format: "\\d{2}"
611
+ :account_number_format: "\\d{12}\\d{3}[A-Z]{3}"
612
612
  NL:
613
613
  :bank_code_position: 5
614
614
  :bank_code_length: 4
@@ -618,9 +618,9 @@ NL:
618
618
  :account_number_length: 10
619
619
  :total_length: 18
620
620
  :national_id_length: 4
621
- :bban_format: '[A-Z]{4}\d{10}'
622
- :bank_code_format: '[A-Z]{4}'
623
- :account_number_format: \d{10}
621
+ :bban_format: "[A-Z]{4}\\d{10}"
622
+ :bank_code_format: "[A-Z]{4}"
623
+ :account_number_format: "\\d{10}"
624
624
  :local_check_digit_position: 18
625
625
  :local_check_digit_length: 1
626
626
  'NO':
@@ -632,9 +632,9 @@ NL:
632
632
  :account_number_length: 7
633
633
  :total_length: 15
634
634
  :national_id_length: 4
635
- :bban_format: \d{4}\d{6}\d{1}
636
- :bank_code_format: \d{4}
637
- :account_number_format: \d{6}\d{1}
635
+ :bban_format: "\\d{4}\\d{6}\\d{1}"
636
+ :bank_code_format: "\\d{4}"
637
+ :account_number_format: "\\d{6}\\d{1}"
638
638
  :local_check_digit_position: 15
639
639
  :local_check_digit_length: 1
640
640
  PK:
@@ -646,9 +646,9 @@ PK:
646
646
  :account_number_length: 16
647
647
  :total_length: 24
648
648
  :national_id_length: 4
649
- :bban_format: '[A-Z]{4}[A-Z0-9]{16}'
650
- :bank_code_format: '[A-Z]{4}'
651
- :account_number_format: '[A-Z0-9]{16}'
649
+ :bban_format: "[A-Z]{4}[A-Z0-9]{16}"
650
+ :bank_code_format: "[A-Z]{4}"
651
+ :account_number_format: "[A-Z0-9]{16}"
652
652
  PL:
653
653
  :bank_code_position: 5
654
654
  :bank_code_length: 8
@@ -658,9 +658,9 @@ PL:
658
658
  :account_number_length: 16
659
659
  :total_length: 28
660
660
  :national_id_length: 8
661
- :bban_format: \d{8}\d{16}
662
- :bank_code_format: \d{8}
663
- :account_number_format: \d{16}
661
+ :bban_format: "\\d{8}\\d{16}"
662
+ :bank_code_format: "\\d{8}"
663
+ :account_number_format: "\\d{16}"
664
664
  PS:
665
665
  :bank_code_position: 5
666
666
  :bank_code_length: 4
@@ -670,9 +670,9 @@ PS:
670
670
  :account_number_length: 21
671
671
  :total_length: 29
672
672
  :national_id_length: 4
673
- :bban_format: '[A-Z]{4}[A-Z0-9]{21}'
673
+ :bban_format: "[A-Z]{4}[A-Z0-9]{21}"
674
674
  :bank_code_format: '4'
675
- :account_number_format: '}[A-Z0-9]{21}'
675
+ :account_number_format: "}[A-Z0-9]{21}"
676
676
  PT:
677
677
  :bank_code_position: 5
678
678
  :bank_code_length: 4
@@ -682,10 +682,10 @@ PT:
682
682
  :account_number_length: 13
683
683
  :total_length: 25
684
684
  :national_id_length: 4
685
- :bban_format: \d{4}\d{4}\d{11}\d{2}
686
- :bank_code_format: \d{4}
687
- :account_number_format: \d{11}\d{2}
688
- :branch_code_format: \d{4}
685
+ :bban_format: "\\d{4}\\d{4}\\d{11}\\d{2}"
686
+ :bank_code_format: "\\d{4}"
687
+ :account_number_format: "\\d{11}\\d{2}"
688
+ :branch_code_format: "\\d{4}"
689
689
  :local_check_digit_position: 24
690
690
  :local_check_digit_length: 2
691
691
  RO:
@@ -697,9 +697,9 @@ RO:
697
697
  :account_number_length: 16
698
698
  :total_length: 24
699
699
  :national_id_length: 4
700
- :bban_format: '[A-Z]{4}[A-Z0-9]{16}'
701
- :bank_code_format: '[A-Z]{4}'
702
- :account_number_format: '[A-Z0-9]{16}'
700
+ :bban_format: "[A-Z]{4}[A-Z0-9]{16}"
701
+ :bank_code_format: "[A-Z]{4}"
702
+ :account_number_format: "[A-Z0-9]{16}"
703
703
  RS:
704
704
  :bank_code_position: 5
705
705
  :bank_code_length: 3
@@ -709,9 +709,9 @@ RS:
709
709
  :account_number_length: 15
710
710
  :total_length: 22
711
711
  :national_id_length: 3
712
- :bban_format: \d{3}\d{13}\d{2}
713
- :bank_code_format: \d{3}
714
- :account_number_format: \d{13}\d{2}
712
+ :bban_format: "\\d{3}\\d{13}\\d{2}"
713
+ :bank_code_format: "\\d{3}"
714
+ :account_number_format: "\\d{13}\\d{2}"
715
715
  SA:
716
716
  :bank_code_position: 5
717
717
  :bank_code_length: 2
@@ -721,9 +721,9 @@ SA:
721
721
  :account_number_length: 18
722
722
  :total_length: 24
723
723
  :national_id_length: 2
724
- :bban_format: \d{2}[A-Z0-9]{18}
725
- :bank_code_format: \d{2}
726
- :account_number_format: '[A-Z0-9]{18}'
724
+ :bban_format: "\\d{2}[A-Z0-9]{18}"
725
+ :bank_code_format: "\\d{2}"
726
+ :account_number_format: "[A-Z0-9]{18}"
727
727
  SE:
728
728
  :bank_code_position: 5
729
729
  :bank_code_length: 3
@@ -733,9 +733,9 @@ SE:
733
733
  :account_number_length: 17
734
734
  :total_length: 24
735
735
  :national_id_length: 3
736
- :bban_format: \d{3}\d{16}\d{1}
737
- :bank_code_format: \d{3}
738
- :account_number_format: \d{16}\d{1}
736
+ :bban_format: "\\d{3}\\d{16}\\d{1}"
737
+ :bank_code_format: "\\d{3}"
738
+ :account_number_format: "\\d{16}\\d{1}"
739
739
  :pseudo_iban_bank_code_length: 0
740
740
  :pseudo_iban_branch_code_length: 5
741
741
  :pseudo_iban_account_number_length: 10
@@ -747,10 +747,10 @@ SI:
747
747
  :account_number_position: 10
748
748
  :account_number_length: 10
749
749
  :total_length: 19
750
- :national_id_length: 2
751
- :bban_format: \d{5}\d{8}\d{2}
752
- :bank_code_format: \d{5}
753
- :account_number_format: \d{8}\d{2}
750
+ :national_id_length: 5
751
+ :bban_format: "\\d{5}\\d{8}\\d{2}"
752
+ :bank_code_format: "\\d{5}"
753
+ :account_number_format: "\\d{8}\\d{2}"
754
754
  SK:
755
755
  :bank_code_position: 5
756
756
  :bank_code_length: 4
@@ -760,9 +760,9 @@ SK:
760
760
  :account_number_length: 16
761
761
  :total_length: 24
762
762
  :national_id_length: 4
763
- :bban_format: \d{4}\d{6}\d{10}
764
- :bank_code_format: \d{4}
765
- :account_number_format: \d{6}\d{10}
763
+ :bban_format: "\\d{4}\\d{6}\\d{10}"
764
+ :bank_code_format: "\\d{4}"
765
+ :account_number_format: "\\d{6}\\d{10}"
766
766
  :local_check_digit_position: 14
767
767
  :local_check_digit_length: 1
768
768
  SM:
@@ -774,10 +774,10 @@ SM:
774
774
  :account_number_length: 12
775
775
  :total_length: 27
776
776
  :national_id_length: 10
777
- :bban_format: '[A-Z]{1}\d{5}\d{5}[A-Z0-9]{12}'
778
- :bank_code_format: \d{5}
779
- :branch_code_format: \d{5}
780
- :account_number_format: '[A-Z0-9]{12}'
777
+ :bban_format: "[A-Z]{1}\\d{5}\\d{5}[A-Z0-9]{12}"
778
+ :bank_code_format: "\\d{5}"
779
+ :branch_code_format: "\\d{5}"
780
+ :account_number_format: "[A-Z0-9]{12}"
781
781
  :local_check_digit_position: 5
782
782
  :local_check_digit_length: 1
783
783
  TN:
@@ -789,10 +789,10 @@ TN:
789
789
  :account_number_length: 15
790
790
  :total_length: 24
791
791
  :national_id_length: 2
792
- :bban_format: \d{2}\d{3}\d{13}\d{2}
793
- :bank_code_format: \d{2}
794
- :branch_code_format: \d{3}
795
- :account_number_format: \d{13}\d{2}
792
+ :bban_format: "\\d{2}\\d{3}\\d{13}\\d{2}"
793
+ :bank_code_format: "\\d{2}"
794
+ :branch_code_format: "\\d{3}"
795
+ :account_number_format: "\\d{13}\\d{2}"
796
796
  TR:
797
797
  :bank_code_position: 5
798
798
  :bank_code_length: 5
@@ -802,9 +802,9 @@ TR:
802
802
  :account_number_length: 17
803
803
  :total_length: 26
804
804
  :national_id_length: 5
805
- :bban_format: \d{5}[A-Z0-9]{1}[A-Z0-9]{16}
806
- :bank_code_format: \d{5}
807
- :account_number_format: '[A-Z0-9]{1}[A-Z0-9]{16}'
805
+ :bban_format: "\\d{5}[A-Z0-9]{1}[A-Z0-9]{16}"
806
+ :bank_code_format: "\\d{5}"
807
+ :account_number_format: "[A-Z0-9]{1}[A-Z0-9]{16}"
808
808
  VG:
809
809
  :bank_code_position: 5
810
810
  :bank_code_length: 4
@@ -814,9 +814,9 @@ VG:
814
814
  :account_number_length: 16
815
815
  :total_length: 24
816
816
  :national_id_length: 4
817
- :bban_format: '[A-Z]{4}\d{16}'
818
- :bank_code_format: '[A-Z]{4}'
819
- :account_number_format: \d{16}
817
+ :bban_format: "[A-Z]{4}\\d{16}"
818
+ :bank_code_format: "[A-Z]{4}"
819
+ :account_number_format: "\\d{16}"
820
820
  JO:
821
821
  :bank_code_position: 5
822
822
  :bank_code_length: 4
@@ -826,9 +826,9 @@ JO:
826
826
  :account_number_length: 22
827
827
  :total_length: 30
828
828
  :national_id_length: 4
829
- :bban_format: '[A-Z]{4}\d{4}[A-Z0-9]{18}'
830
- :bank_code_format: '[A-Z]{4}'
831
- :account_number_format: \d{4}[A-Z0-9]{18}
829
+ :bban_format: "[A-Z]{4}\\d{4}[A-Z0-9]{18}"
830
+ :bank_code_format: "[A-Z]{4}"
831
+ :account_number_format: "\\d{4}[A-Z0-9]{18}"
832
832
  QA:
833
833
  :bank_code_position: 5
834
834
  :bank_code_length: 4
@@ -838,9 +838,9 @@ QA:
838
838
  :account_number_length: 21
839
839
  :total_length: 29
840
840
  :national_id_length: 4
841
- :bban_format: '[A-Z]{4}[A-Z0-9]{21}'
842
- :bank_code_format: '[A-Z]{4}'
843
- :account_number_format: '[A-Z0-9]{21}'
841
+ :bban_format: "[A-Z]{4}[A-Z0-9]{21}"
842
+ :bank_code_format: "[A-Z]{4}"
843
+ :account_number_format: "[A-Z0-9]{21}"
844
844
  XK:
845
845
  :bank_code_position: 5
846
846
  :bank_code_length: 4
@@ -850,9 +850,9 @@ XK:
850
850
  :account_number_length: 16
851
851
  :total_length: 20
852
852
  :national_id_length: 4
853
- :bban_format: \d{4}\d{10}\d{2}
854
- :bank_code_format: \d{4}
855
- :account_number_format: \d{10}\d{2}
853
+ :bban_format: "\\d{4}\\d{10}\\d{2}"
854
+ :bank_code_format: "\\d{4}"
855
+ :account_number_format: "\\d{10}\\d{2}"
856
856
  TL:
857
857
  :bank_code_position: 5
858
858
  :bank_code_length: 3
@@ -862,6 +862,6 @@ TL:
862
862
  :account_number_length: 16
863
863
  :total_length: 23
864
864
  :national_id_length: 3
865
- :bban_format: \d{3}\d{14}\d{2}
866
- :bank_code_format: \d{3}
867
- :account_number_format: ' \d{14} \d{2}'
865
+ :bban_format: "\\d{3}\\d{14}\\d{2}"
866
+ :bank_code_format: "\\d{3}"
867
+ :account_number_format: " \\d{14} \\d{2}"
@@ -1,3 +1,3 @@
1
1
  module Ibandit
2
- VERSION = '0.11.3'.freeze
2
+ VERSION = '0.11.4'.freeze
3
3
  end
@@ -88,6 +88,19 @@ describe Ibandit::IBAN do
88
88
  its(:local_check_digits) { is_expected.to be_nil }
89
89
  end
90
90
 
91
+ context 'when the IBAN was created from a Slovenian IBAN' do
92
+ let(:iban_code) { 'SI56 1910 0000 0123 438' }
93
+ its(:country_code) { is_expected.to eq('SI') }
94
+ its(:bank_code) { is_expected.to eq('19100') }
95
+ its(:branch_code) { is_expected.to be_nil }
96
+ its(:account_number) { is_expected.to eq('0000123438') }
97
+ its(:swift_bank_code) { is_expected.to eq('19100') }
98
+ its(:swift_branch_code) { is_expected.to be_nil }
99
+ its(:swift_account_number) { is_expected.to eq('0000123438') }
100
+ its(:swift_national_id) { is_expected.to eq('19100') }
101
+ its(:local_check_digits) { is_expected.to be_nil }
102
+ end
103
+
91
104
  context 'when the IBAN was created with local details' do
92
105
  let(:arg) do
93
106
  {
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.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grey Baker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-09 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec