credit_card_validations 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +4 -1
- data/README.md +18 -19
- data/credit_card_validations.gemspec +1 -1
- data/lib/credit_card_validations/version.rb +1 -1
- data/lib/data/brands.yaml +1 -1
- data/spec/fixtures/valid_cards.yml +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 134d3a1d35bcf4fab62fdf63c0b206651ec78a85
|
4
|
+
data.tar.gz: 963f9f2965141892b7f42a767a652b79bea36c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ffcd7329fb527258b52da513080fb46d82b89c47eac1b983f761e8a40abd15db3d860559f15bae659293b9890edbb0d52e613fef0087476d592bb4383b2c20d
|
7
|
+
data.tar.gz: c6b3ce00d5af28b5477eba6843af878d4f50265579072a0a99a3a1a96bfcd69c4789308002654c2121eb5d319f0ca015d0f09836060c0f2b6ad69e27a49da7fd
|
data/Changelog.md
CHANGED
data/README.md
CHANGED
@@ -31,25 +31,24 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
The following issuing institutes are accepted:
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
34
|
+
<table><tr><td>name</td> <td>key</td> </tr>
|
35
|
+
|
36
|
+
<tr><td>[American Express](http://en.wikipedia.org/wiki/American_Express) </td> <td> :amex </td> </tr>
|
37
|
+
<tr><td>[China UnionPay ](http://en.wikipedia.org/wiki/China_UnionPay) </td> <td> :unionpay </td> </tr>
|
38
|
+
<tr><td>[Dankort ](http://en.wikipedia.org/wiki/Dankort) </td> <td> :dankort </td> </tr>
|
39
|
+
<tr><td>[Diners Club ](http://en.wikipedia.org/wiki/Diners_Club_International) </td> <td> :diners </td> </tr>
|
40
|
+
<tr><td>[Dinner Club US](http://en.wikipedia.org/wiki/Diners_Club_International#MasterCard_alliance) </td> <td> :diners_us </td> </tr>
|
41
|
+
<tr><td>[Discover](http://en.wikipedia.org/wiki/Discover_Card) </td> <td> :discover </td> </tr>
|
42
|
+
<tr><td>[Hipercard ](http://pt.wikipedia.org/wiki/Hipercard) </td> <td> :hipercard </td> </tr>
|
43
|
+
<tr><td>[JCB ](http://en.wikipedia.org/wiki/Japan_Credit_Bureau) </td> <td> :jcb </td> </tr>
|
44
|
+
<tr><td>[Laser ](http://en.wikipedia.org/wiki/Laser_%28debit_card%29) </td> <td> :laser </td> </tr>
|
45
|
+
<tr><td>[Maestro](http://en.wikipedia.org/wiki/Maestro_%28debit_card%29) </td> <td> :maestro </td> </tr>
|
46
|
+
<tr><td>[MasterCard ](http://en.wikipedia.org/wiki/MasterCard) </td> <td> :mastercard </td> </tr>
|
47
|
+
<tr><td>[Rupay ](http://en.wikipedia.org/wiki/RuPay) </td> <td> :rupay </td>
|
48
|
+
<tr><td>[Solo ](http://en.wikipedia.org/wiki/Solo_(debit_card)) </td> <td> :solo </td> </tr>
|
49
|
+
<tr><td>[Switch ](http://en.wikipedia.org/wiki/Switch_(debit_card)) </td> <td> :switch </td> </tr>
|
50
|
+
<tr><td>[Visa ](http://en.wikipedia.org/wiki/Visa_Inc.) </td> <td> :visa </td> </tr>
|
51
|
+
</table>
|
53
52
|
|
54
53
|
Examples using string monkey patch
|
55
54
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["fedoronchuk@gmail.com"]
|
11
11
|
gem.description = %q{A ruby gem for validating credit card numbers}
|
12
12
|
gem.summary = "gem should be used for credit card numbers validation, card brands detections, luhn checks"
|
13
|
-
gem.homepage = "
|
13
|
+
gem.homepage = "http://fivell.github.io/credit_card_validations/"
|
14
14
|
gem.license = 'MIT'
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
data/lib/data/brands.yaml
CHANGED
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: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -109,7 +109,7 @@ files:
|
|
109
109
|
- spec/models/credit_card.rb
|
110
110
|
- spec/string_spec.rb
|
111
111
|
- spec/test_helper.rb
|
112
|
-
homepage:
|
112
|
+
homepage: http://fivell.github.io/credit_card_validations/
|
113
113
|
licenses:
|
114
114
|
- MIT
|
115
115
|
metadata: {}
|