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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/credit_card_sanitizer.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91ced181f495dcc979ca941111571ca0480ac27e
4
- data.tar.gz: cb74c94b7063871d9a9495711e79745dafa7c4bd
3
+ metadata.gz: c8640635e8befbc2048e354e705bd824eda92ddf
4
+ data.tar.gz: 447736aa16f358f1c470e3fe6ad07307a954debe
5
5
  SHA512:
6
- metadata.gz: ffe9c44a8576697ced931554e94b70dc3af49a45c72117fedadfdca3877b48a6a64f9b5df6edf5fa5e91c75e1617868887f6316e5ff797a40cf6984923e6b7c6
7
- data.tar.gz: bc35ebcf22f812fb7abd95cb7970a7dfdd503952a18edafb99e345445245defbf09b718c0696852e6eae359c5529a27ac31d6e5e9357757f73ec177555639c7c
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.2
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-14 00:00:00.000000000 Z
13
+ date: 2017-02-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake