ibandit 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ibandit/german_details_converter.rb +132 -132
- data/lib/ibandit/sweden/validator.rb +1 -0
- data/lib/ibandit/version.rb +1 -1
- data/spec/ibandit/sweden/validator_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9234545e3b5c740bd66377f5bbd7c953acca6608
|
4
|
+
data.tar.gz: 24b8485010fdfaaec1e0f322551baf24d425115b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 721390a0eea238bfc2e0a82c4ba62ce82cef50824950dea2fba6d1363a07fbdeace1e08d2632bd0642bc210624d5c41437da1555ed1a08146ced9c273db21940
|
7
|
+
data.tar.gz: 99d83b4a47aca4580de7716cefc9e746f1f323d531f3352f873085dec9fce3084f194cfa4c73689d7a8b766bc13de3df62140f66030a83255ca8eac614721271
|
data/CHANGELOG.md
CHANGED
@@ -657,138 +657,138 @@ module Ibandit
|
|
657
657
|
'158' => '70020270', '159' => '54520194', '160' => '70020270',
|
658
658
|
'161' => '54520194', '162' => '70020270', '163' => '70020270',
|
659
659
|
'164' => '70020270', '166' => '71120078', '167' => '74320073',
|
660
|
-
'
|
661
|
-
'
|
662
|
-
'
|
663
|
-
'
|
664
|
-
'
|
665
|
-
'
|
666
|
-
'
|
667
|
-
'
|
668
|
-
'
|
669
|
-
'
|
670
|
-
'
|
671
|
-
'
|
672
|
-
'
|
673
|
-
'
|
674
|
-
'
|
675
|
-
'
|
676
|
-
'
|
677
|
-
'
|
678
|
-
'
|
679
|
-
'
|
680
|
-
'
|
681
|
-
'
|
682
|
-
'
|
683
|
-
'
|
684
|
-
'
|
685
|
-
'
|
686
|
-
'
|
687
|
-
'
|
688
|
-
'
|
689
|
-
'
|
690
|
-
'
|
691
|
-
'
|
692
|
-
'
|
693
|
-
'
|
694
|
-
'
|
695
|
-
'
|
696
|
-
'
|
697
|
-
'
|
698
|
-
'
|
699
|
-
'
|
700
|
-
'
|
701
|
-
'
|
702
|
-
'
|
703
|
-
'
|
704
|
-
'
|
705
|
-
'
|
706
|
-
'
|
707
|
-
'
|
708
|
-
'
|
709
|
-
'
|
710
|
-
'
|
711
|
-
'
|
712
|
-
'
|
713
|
-
'
|
714
|
-
'
|
715
|
-
'
|
716
|
-
'
|
717
|
-
'
|
718
|
-
'
|
719
|
-
'
|
720
|
-
'
|
721
|
-
'
|
722
|
-
'
|
723
|
-
'
|
724
|
-
'
|
725
|
-
'
|
726
|
-
'
|
727
|
-
'
|
728
|
-
'
|
729
|
-
'
|
730
|
-
'
|
731
|
-
'
|
732
|
-
'
|
733
|
-
'
|
734
|
-
'
|
735
|
-
'
|
736
|
-
'
|
737
|
-
'
|
738
|
-
'
|
739
|
-
'
|
740
|
-
'
|
741
|
-
'
|
742
|
-
'
|
743
|
-
'
|
744
|
-
'
|
745
|
-
'
|
746
|
-
'
|
747
|
-
'
|
748
|
-
'
|
749
|
-
'
|
750
|
-
'
|
751
|
-
'
|
752
|
-
'
|
753
|
-
'
|
754
|
-
'
|
755
|
-
'
|
756
|
-
'
|
757
|
-
'
|
758
|
-
'
|
759
|
-
'
|
760
|
-
'
|
761
|
-
'
|
762
|
-
'
|
763
|
-
'
|
764
|
-
'
|
765
|
-
'
|
766
|
-
'
|
767
|
-
'
|
768
|
-
'
|
769
|
-
'
|
770
|
-
'
|
771
|
-
'
|
772
|
-
'
|
773
|
-
'
|
774
|
-
'
|
775
|
-
'
|
776
|
-
'
|
777
|
-
'
|
778
|
-
'
|
779
|
-
'
|
780
|
-
'
|
781
|
-
'
|
782
|
-
'
|
783
|
-
'
|
784
|
-
'
|
785
|
-
'
|
786
|
-
'
|
787
|
-
'
|
788
|
-
'
|
789
|
-
'
|
790
|
-
'
|
791
|
-
'
|
660
|
+
'168' => '70320090', '169' => '79020076', '170' => '70020270',
|
661
|
+
'172' => '70020270', '174' => '70020270', '175' => '72120078',
|
662
|
+
'176' => '74020074', '177' => '74320073', '178' => '70020270',
|
663
|
+
'181' => '77320072', '182' => '79520070', '183' => '70020270',
|
664
|
+
'185' => '70020270', '186' => '79020076', '188' => '70020270',
|
665
|
+
'189' => '70020270', '190' => '76020070', '191' => '77020070',
|
666
|
+
'192' => '70025175', '193' => '85020086', '194' => '76020070',
|
667
|
+
'196' => '72020070', '198' => '76320072', '199' => '70020270',
|
668
|
+
'201' => '76020070', '202' => '76020070', '203' => '76020070',
|
669
|
+
'204' => '76020070', '205' => '79520070', '206' => '79520070',
|
670
|
+
'207' => '71120078', '208' => '73120075', '209' => '18020086',
|
671
|
+
'210' => '10020890', '211' => '60020290', '212' => '51020186',
|
672
|
+
'214' => '75020073', '215' => '63020086', '216' => '75020073',
|
673
|
+
'217' => '79020076', '218' => '59020090', '219' => '79520070',
|
674
|
+
'220' => '73322380', '221' => '73120075', '222' => '73421478',
|
675
|
+
'223' => '74320073', '224' => '73322380', '225' => '74020074',
|
676
|
+
'227' => '75020073', '228' => '71120078', '229' => '80020086',
|
677
|
+
'230' => '72120078', '231' => '72020070', '232' => '75021174',
|
678
|
+
'233' => '71020072', '234' => '71022182', '235' => '74320073',
|
679
|
+
'236' => '71022182', '237' => '76020070', '238' => '63020086',
|
680
|
+
'239' => '70020270', '240' => '75320075', '241' => '76220073',
|
681
|
+
'243' => '72020070', '245' => '72120078', '246' => '74320073',
|
682
|
+
'247' => '60020290', '248' => '85020086', '249' => '73321177',
|
683
|
+
'250' => '73420071', '251' => '70020270', '252' => '70020270',
|
684
|
+
'253' => '70020270', '254' => '10020890', '255' => '50820292',
|
685
|
+
'256' => '71022182', '257' => '83020086', '258' => '79320075',
|
686
|
+
'259' => '71120077', '260' => '10020890', '261' => '70025175',
|
687
|
+
'262' => '72020070', '264' => '74020074', '267' => '63020086',
|
688
|
+
'268' => '70320090', '269' => '71122183', '270' => '82020086',
|
689
|
+
'271' => '75020073', '272' => '73420071', '274' => '63020086',
|
690
|
+
'276' => '70020270', '277' => '74320073', '278' => '71120077',
|
691
|
+
'279' => '10020890', '281' => '71120078', '282' => '70020270',
|
692
|
+
'283' => '72020070', '284' => '79320075', '286' => '54520194',
|
693
|
+
'287' => '70020270', '288' => '75220070', '291' => '77320072',
|
694
|
+
'292' => '76020070', '293' => '72020070', '294' => '54520194',
|
695
|
+
'295' => '70020270', '296' => '70020270', '299' => '72020070',
|
696
|
+
'301' => '85020086', '302' => '54520194', '304' => '70020270',
|
697
|
+
'308' => '70020270', '309' => '54520194', '310' => '72020070',
|
698
|
+
'312' => '74120071', '313' => '76320072', '314' => '70020270',
|
699
|
+
'315' => '70020270', '316' => '70020270', '317' => '70020270',
|
700
|
+
'318' => '70020270', '320' => '71022182', '321' => '75220070',
|
701
|
+
'322' => '79520070', '324' => '70020270', '326' => '85020086',
|
702
|
+
'327' => '72020070', '328' => '72020070', '329' => '70020270',
|
703
|
+
'330' => '76020070', '331' => '70020270', '333' => '70020270',
|
704
|
+
'334' => '75020073', '335' => '70020270', '337' => '80020086',
|
705
|
+
'341' => '10020890', '342' => '10020890', '344' => '70020270',
|
706
|
+
'345' => '77020070', '346' => '76020070', '350' => '79320075',
|
707
|
+
'351' => '79320075', '352' => '70020270', '353' => '70020270',
|
708
|
+
'354' => '72223182', '355' => '72020070', '356' => '70020270',
|
709
|
+
'358' => '54220091', '359' => '76220073', '360' => '80020087',
|
710
|
+
'361' => '70020270', '362' => '70020270', '363' => '70020270',
|
711
|
+
'366' => '72220074', '367' => '70020270', '368' => '10020890',
|
712
|
+
'369' => '76520071', '370' => '85020086', '371' => '70020270',
|
713
|
+
'373' => '70020270', '374' => '73120075', '375' => '70020270',
|
714
|
+
'379' => '70020270', '380' => '70020270', '381' => '70020270',
|
715
|
+
'382' => '79520070', '383' => '72020070', '384' => '72020070',
|
716
|
+
'386' => '70020270', '387' => '70020270', '389' => '70020270',
|
717
|
+
'390' => '67020190', '391' => '70020270', '392' => '70020270',
|
718
|
+
'393' => '54520194', '394' => '70020270', '396' => '70020270',
|
719
|
+
'398' => '66020286', '399' => '87020088', '401' => '30220190',
|
720
|
+
'402' => '36020186', '403' => '38020090', '404' => '30220190',
|
721
|
+
'405' => '68020186', '406' => '48020086', '407' => '37020090',
|
722
|
+
'408' => '68020186', '409' => '10020890', '410' => '66020286',
|
723
|
+
'411' => '60420186', '412' => '57020086', '422' => '70020270',
|
724
|
+
'423' => '70020270', '424' => '76020070', '426' => '70025175',
|
725
|
+
'427' => '50320191', '428' => '70020270', '429' => '85020086',
|
726
|
+
'432' => '70020270', '434' => '60020290', '435' => '76020070',
|
727
|
+
'436' => '76020070', '437' => '70020270', '438' => '70020270',
|
728
|
+
'439' => '70020270', '440' => '70020270', '441' => '70020270',
|
729
|
+
'442' => '85020086', '443' => '55020486', '444' => '50520190',
|
730
|
+
'446' => '80020086', '447' => '70020270', '450' => '30220190',
|
731
|
+
'451' => '44020090', '452' => '70020270', '453' => '70020270',
|
732
|
+
'456' => '10020890', '457' => '87020086', '458' => '54520194',
|
733
|
+
'459' => '61120286', '460' => '70020270', '461' => '70020270',
|
734
|
+
'462' => '70020270', '463' => '70020270', '465' => '70020270',
|
735
|
+
'466' => '10020890', '467' => '10020890', '468' => '70020270',
|
736
|
+
'469' => '60320291', '470' => '65020186', '471' => '84020087',
|
737
|
+
'472' => '76020070', '473' => '74020074', '476' => '78320076',
|
738
|
+
'477' => '78320076', '478' => '87020088', '480' => '70020270',
|
739
|
+
'481' => '70020270', '482' => '84020087', '484' => '70020270',
|
740
|
+
'485' => '50320191', '486' => '70020270', '488' => '67220286',
|
741
|
+
'489' => '10020890', '490' => '10020890', '491' => '16020086',
|
742
|
+
'492' => '10020890', '494' => '79020076', '495' => '87020088',
|
743
|
+
'497' => '87020087', '499' => '79020076', '502' => '10020890',
|
744
|
+
'503' => '10020890', '505' => '70020270', '506' => '10020890',
|
745
|
+
'507' => '87020086', '508' => '86020086', '509' => '83020087',
|
746
|
+
'510' => '80020086', '511' => '83020086', '513' => '85020086',
|
747
|
+
'515' => '17020086', '518' => '82020086', '519' => '83020086',
|
748
|
+
'522' => '10020890', '523' => '70020270', '524' => '85020086',
|
749
|
+
'525' => '70020270', '527' => '82020088', '528' => '10020890',
|
750
|
+
'530' => '10020890', '531' => '10020890', '533' => '50320191',
|
751
|
+
'534' => '70020270', '536' => '85020086', '538' => '82020086',
|
752
|
+
'540' => '65020186', '541' => '80020087', '545' => '18020086',
|
753
|
+
'546' => '10020890', '547' => '10020890', '548' => '10020890',
|
754
|
+
'549' => '82020087', '555' => '79020076', '560' => '79320075',
|
755
|
+
'567' => '86020086', '572' => '10020890', '580' => '70020270',
|
756
|
+
'581' => '70020270', '601' => '74320073', '602' => '70020270',
|
757
|
+
'603' => '70020270', '604' => '70020270', '605' => '70020270',
|
758
|
+
'606' => '70020270', '607' => '74320073', '608' => '72020070',
|
759
|
+
'609' => '72020070', '610' => '72020070', '611' => '72020070',
|
760
|
+
'612' => '71120077', '613' => '70020270', '614' => '72020070',
|
761
|
+
'615' => '70025175', '616' => '73420071', '617' => '68020186',
|
762
|
+
'618' => '73120075', '619' => '60020290', '620' => '71120077',
|
763
|
+
'621' => '71120077', '622' => '74320073', '623' => '72020070',
|
764
|
+
'624' => '71020072', '625' => '71023173', '626' => '71020072',
|
765
|
+
'627' => '71021270', '628' => '71120077', '629' => '73120075',
|
766
|
+
'630' => '71121176', '631' => '71022182', '632' => '70020270',
|
767
|
+
'633' => '74320073', '634' => '70020270', '635' => '70320090',
|
768
|
+
'636' => '70320090', '637' => '72120078', '638' => '72120078',
|
769
|
+
'640' => '70020270', '641' => '70020270', '643' => '74320073',
|
770
|
+
'644' => '70020270', '645' => '70020270', '646' => '70020270',
|
771
|
+
'647' => '70020270', '648' => '72120078', '649' => '72122181',
|
772
|
+
'650' => '54520194', '652' => '71021270', '653' => '70020270',
|
773
|
+
'654' => '70020270', '655' => '72120078', '656' => '71120078',
|
774
|
+
'657' => '71020072', '658' => '68020186', '659' => '54520194',
|
775
|
+
'660' => '54620093', '661' => '74320073', '662' => '73120075',
|
776
|
+
'663' => '70322192', '664' => '72120078', '665' => '70321194',
|
777
|
+
'666' => '73322380', '667' => '60020290', '668' => '60020290',
|
778
|
+
'669' => '73320073', '670' => '75020073', '671' => '74220075',
|
779
|
+
'672' => '74020074', '673' => '74020074', '674' => '74120071',
|
780
|
+
'675' => '74020074', '676' => '74020074', '677' => '72020070',
|
781
|
+
'678' => '72020070', '679' => '54520194', '680' => '71120077',
|
782
|
+
'681' => '67020190', '682' => '78020070', '683' => '71020072',
|
783
|
+
'684' => '70020270', '685' => '70020270', '686' => '70020270',
|
784
|
+
'687' => '70020270', '688' => '70020270', '689' => '70020270',
|
785
|
+
'690' => '76520071', '692' => '70020270', '693' => '73420071',
|
786
|
+
'694' => '70021180', '695' => '70320090', '696' => '74320073',
|
787
|
+
'697' => '54020090', '698' => '73320073', '710' => '30220190',
|
788
|
+
'711' => '70020270', '712' => '10020890', '714' => '76020070',
|
789
|
+
'715' => '75020073', '717' => '74320073', '718' => '87020086',
|
790
|
+
'719' => '37020090', '720' => '30220190', '723' => '77320072',
|
791
|
+
'733' => '83020087', '798' => '70020270'
|
792
792
|
}.freeze
|
793
793
|
end
|
794
794
|
|
@@ -18,6 +18,7 @@ module Ibandit
|
|
18
18
|
|
19
19
|
def self.valid_serial_number_length?(clearing_code: nil,
|
20
20
|
serial_number: nil)
|
21
|
+
return false unless serial_number
|
21
22
|
return unless bank_code_exists_for_clearing_code?(clearing_code)
|
22
23
|
|
23
24
|
bank_info = Sweden::BankLookup.for_clearing_code(clearing_code)
|
data/lib/ibandit/version.rb
CHANGED
@@ -92,6 +92,12 @@ describe Ibandit::Sweden::Validator do
|
|
92
92
|
let(:serial_number) { '12345678901' }
|
93
93
|
it { is_expected.to eq(false) }
|
94
94
|
end
|
95
|
+
|
96
|
+
context 'without a serial number' do
|
97
|
+
let(:clearing_code) { '9960' }
|
98
|
+
let(:serial_number) { nil }
|
99
|
+
it { is_expected.to eq(false) }
|
100
|
+
end
|
95
101
|
end
|
96
102
|
|
97
103
|
describe '.bank_code_exists?' do
|
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.8.
|
4
|
+
version: 0.8.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: 2015-
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|