credit_card_validator 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,12 +8,21 @@ module CreditCardValidator
8
8
  :discover => /^6(?:011|5[0-9]{2})[0-9]{12}$/
9
9
  }
10
10
 
11
- TEST_NUMBERS = %w{
12
- 378282246310005 371449635398431 378734493671000
13
- 30569309025904 38520000023237 6011111111111117
14
- 6011000990139424 5555555555554444 5105105105105100
15
- 4111111111111111 4012888888881881 4222222222222
16
- }
11
+ TEST_NUMBERS = {
12
+ :amex => %w{
13
+ 378282246310005 371449635398431 378734493671000 },
14
+ :diners_club => %w{
15
+ 30569309025904 38520000023237 },
16
+ :discover => %w{
17
+ 6011000990139424 6011111111111117 },
18
+ :master_card => %w{
19
+ 5555555555554444 5105105105105100 },
20
+ :visa => %w{
21
+ 4111111111111111 4012888888881881 4222222222222
22
+ 4005519200000004 4009348888881881 4012000033330026
23
+ 4012000077777777 4217651111111119 4500600000000061
24
+ 4000111111111115 }
25
+ }.values.flatten
17
26
 
18
27
  class Validator
19
28
  class << self
metadata CHANGED
@@ -1,23 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credit_card_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Crawley
14
14
  - Bruce Hauman
15
15
  - Phil McClure
16
+ - Gabriel Reis
17
+ - Eric Young
16
18
  autorequire:
17
19
  bindir: bin
18
20
  cert_chain: []
19
21
 
20
- date: 2011-06-07 00:00:00 Z
22
+ date: 2011-06-17 00:00:00 Z
21
23
  dependencies:
22
24
  - !ruby/object:Gem::Dependency
23
25
  name: newgem