credit_card_validations 1.4.6 → 1.4.7

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: 9105630a9203f920b6b2d64850aab7f0f8e39f08
4
- data.tar.gz: 343519f6659a8cf3ba312a1946282c3299688172
3
+ metadata.gz: f8ea2ebb942c03630126dd73a4476458b633d0c7
4
+ data.tar.gz: 66da4b0c371bbf689d98a1a117c0c96a5786e0e5
5
5
  SHA512:
6
- metadata.gz: ab71f206f34ac1f9deebc045a771a774ee48d4a25b3bcd5e32b2b41216254a20f0ea0f187d93d290ecc5790e109c4a77e69873c34fce58cab84795ef54f6c040
7
- data.tar.gz: 031b123f98ae5297bd202bb412d439f15e57bb9726f981b937a565c925741e55e52d1a6a7c8854a84b13985979d5f23ca00c644c945692ba4cba8e927a84d6f1
6
+ metadata.gz: f6c5e3ce05891615ba785faca3a90528075261c309cf86e82e112267d000174d6e488e5b846d67c7fffe1b38daca47ff4307abdc6ec70a85079274a4f8dc3ec3
7
+ data.tar.gz: d267bd198b0a6c4b2fbc7986bbf676c794d6f1d24f7ed6452e6aceadc69588ac579c523c462abbdedd78ab6617a8f24d8771ea88f3e1fdf9c1b6a18bb4d72af1
@@ -43,18 +43,23 @@ module CreditCardValidations
43
43
  solo: [
44
44
  {length: [16, 18, 19], prefixes: ['6334', '6767']}
45
45
  ],
46
-
46
+
47
+ switch: [
48
+ {length: [16, 18, 19], prefixes: ['633110', '633312', '633304', '633303', '633301', '633300']}
49
+
50
+ ],
51
+
47
52
  maestro: [
48
53
  {length: [12, 13, 14, 15, 16, 17, 18, 19], prefixes: ['5010', '5011', '5012', '5013', '5014', '5015', '5016', '5017', '5018',
49
54
  '502', '503', '504', '505', '506', '507', '508',
50
55
  '6012', '6013', '6014', '6015', '6016', '6017', '6018', '6019',
51
- '602', '603', '604', '605', '606',
56
+ '602', '603', '604', '605', '6060',
57
+ '621', '627', '629',
52
58
  '677', '675', '674', '673', '672', '671', '670',
53
59
  '6760', '6761', '6762', '6763', '6764', '6765', '6766', '6768', '6769'
54
- ]
55
- }
60
+ ]}
56
61
  ],
57
-
62
+
58
63
  # Luhn validation are skipped for union pay cards because they have unknown generation algoritm
59
64
  unionpay: [
60
65
  {length: [16, 17, 18, 19], prefixes: ['622', '624', '625', '626', '628'], skip_validation: true}
@@ -63,6 +68,9 @@ module CreditCardValidations
63
68
  dankrot: [
64
69
  {length: [16], prefixes: ['5019']}
65
70
  ]
71
+
72
+
73
+
66
74
  }
67
75
  end
68
76
  end
@@ -1,3 +1,3 @@
1
1
  module CreditCardValidations
2
- VERSION = "1.4.6"
2
+ VERSION = "1.4.7"
3
3
  end
@@ -27,7 +27,8 @@ class CreditCardValidationsTest < MiniTest::Test
27
27
  jcb: ['3575 7591 5225 4876', '3566002020360505' ],
28
28
  solo: ['6767 6222 2222 2222 222'],
29
29
  unionpay: ['6264-1852-1292-2132-067', '6288997715452584', '6269 9920 5813 4322'],
30
- dankrot: ['5019717010103742']
30
+ dankrot: ['5019717010103742'],
31
+ switch: ['6331101999990016']
31
32
  }
32
33
  end
33
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credit_card_validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-24 00:00:00.000000000 Z
11
+ date: 2014-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel