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