credit_card_sanitizer 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/credit_card_sanitizer.rb +1 -1
- 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: c8640635e8befbc2048e354e705bd824eda92ddf
|
4
|
+
data.tar.gz: 447736aa16f358f1c470e3fe6ad07307a954debe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e372b34945a260da35685a148a47dcb1fc4b6e02fa69fa5aab7823e19e4f141d01d3f3a14188b041eca00d62bb37fb18aa43dbea8700a175515a08ea2ec37ec
|
7
|
+
data.tar.gz: 1741723f389d568c9555f5436d812ab47651e6c1a6c4b24979ff1bf6de804869040cd54d29cc32cc54e92ef7e65ed7dddd431a9f9027c9c550998eb5ff7d7626
|
@@ -8,7 +8,7 @@ class CreditCardSanitizer
|
|
8
8
|
|
9
9
|
# https://github.com/Shopify/active_merchant/blob/master/lib/active_merchant/billing/credit_card_methods.rb#L5-L18
|
10
10
|
CARD_COMPANIES = {
|
11
|
-
'visa' => /^4\d{12}(\d{3})?$/,
|
11
|
+
'visa' => /^4\d{12}(\d{3})?(\d{3})?$/,
|
12
12
|
'master' => /^(5[1-5]\d{4}|677189)\d{10}$/,
|
13
13
|
'discover' => /^(6011|65\d{2}|64[4-9]\d)\d{12}|(62\d{14})$/,
|
14
14
|
'american_express' => /^3[47]\d{13}$/,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_sanitizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Chapweske
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-02-
|
13
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|