credit_debit_card_number_validator 16.09.6 → 16.09.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/credit_debit_card_number_validator.rb +2 -2
- data/lib/information.rb +1 -1
- data/lib/validator.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12970371ef5fd0f6ed604f6a12a7701bf6431e9
|
4
|
+
data.tar.gz: f4c6658151cf1b47173a19fff55add2104205af2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6444b5fc29abb48e717822dc68c3112f8b3f4c24cccb541f21db33b51dbcf0d33179fa635e3e8e34a0fd5076db230959bc0498dcc88b97fc1141700973d1415b
|
7
|
+
data.tar.gz: 59230fd2eeabb63ad331c5130bbde602074929a4542c42455b5526f65c0d059327861a80c8c54ce65f9f056bc3fc5b776a70ae5f844b51505fd4937a30e4fa8b
|
@@ -4,7 +4,7 @@
|
|
4
4
|
# bc4 | Bankcard | 16 | Luhn | 5610
|
5
5
|
# bc6 | Bankcard | 16 | Luhn | 560221 - 560225
|
6
6
|
|
7
|
-
# cebi | CARDGUARD
|
7
|
+
# cebi | CARDGUARD | 16 | Luhn | 5392
|
8
8
|
|
9
9
|
# cup | China UnionPay | 16, 17, 18, 19 | Unk | 622, 624 - 626, 628
|
10
10
|
|
@@ -74,7 +74,7 @@ require 'validator'
|
|
74
74
|
require 'information'
|
75
75
|
|
76
76
|
# CreditDebitCardNumberValidator module
|
77
|
-
# main module
|
77
|
+
# main module contain gem classes
|
78
78
|
# use this module to deal with gem classes,
|
79
79
|
# create objects and work with class methods
|
80
80
|
# to validate your data
|
data/lib/information.rb
CHANGED
data/lib/validator.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# CreditDebitCardNumberValidator module
|
2
|
-
# main module
|
2
|
+
# main module contain gem classes
|
3
3
|
# use this module to deal with gem classes,
|
4
4
|
# create objects and work with class methods
|
5
5
|
# to validate your data
|
@@ -122,7 +122,7 @@ module CreditDebitCardNumberValidator
|
|
122
122
|
[iin6.to_i, 'Bankcard']
|
123
123
|
# {'IIN' => iin6.to_i, 'Company Name' => 'Bankcard'}
|
124
124
|
elsif iin4 == '5392' && length == 16
|
125
|
-
[iin4.to_i, 'CARDGUARD
|
125
|
+
[iin4.to_i, 'CARDGUARD']
|
126
126
|
# {'IIN' => iin4.to_i, 'Company Name' => 'CARDGUARD EAD BG ILS'}
|
127
127
|
elsif (['622', '624', '625', '626', '628'].include? (iin3)) && (length >= 16 && length <= 19)
|
128
128
|
[iin3.to_i, 'China UnionPay']
|