cardbins 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -14
- data/lib/cardbins/brand.rb +1 -1
- data/lib/cardbins/version.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: 6ddec42f00ba3fceac61264b32f3fdf36db6dccc
|
|
4
|
+
data.tar.gz: 8a20650ff1747ec3379b0dbaae712062e3a3846e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3720b8430199315cf4d5f43a1c79834f6b2813d2be66254722082d7d55cb530d29bb464624325b08c2a1671668a4a3ef3a444ad91e28e87501a1d266cff652fc
|
|
7
|
+
data.tar.gz: 405a1054685eb764930d043d805da69942b4e51d2d25d7a8144b99889bebe3e0be5f30d1358c5f8af2c35fa967b9fbd6f1ad572e18eb77e262ca252d585240af
|
data/README.md
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
# Cardbins
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
- Search the brand name of credit and debit cards;
|
|
4
|
+
- The first six digits of card is required.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Cards supported:
|
|
7
7
|
|
|
8
|
-
- MASTER
|
|
9
|
-
- VISA
|
|
10
|
-
- ELO
|
|
11
|
-
- AMEX
|
|
12
|
-
- TICKET
|
|
13
|
-
- SODEXO
|
|
14
|
-
- VR
|
|
15
|
-
- ALELO
|
|
8
|
+
- MASTER;
|
|
9
|
+
- VISA;
|
|
10
|
+
- ELO;
|
|
11
|
+
- AMEX;
|
|
12
|
+
- TICKET;
|
|
13
|
+
- SODEXO;
|
|
14
|
+
- VR;
|
|
15
|
+
- ALELO;
|
|
16
|
+
- HIPERCARD.
|
|
16
17
|
|
|
17
18
|
## Installation
|
|
18
19
|
|
|
@@ -33,12 +34,16 @@ Or install it yourself as:
|
|
|
33
34
|
## Usage
|
|
34
35
|
|
|
35
36
|
```ruby
|
|
36
|
-
|
|
37
|
+
require 'cardbins'
|
|
37
38
|
=> true
|
|
38
|
-
|
|
39
|
+
brand = Cardbins.search("636297")
|
|
39
40
|
=> "ELO"
|
|
40
41
|
```
|
|
41
42
|
|
|
43
|
+
## Test
|
|
44
|
+
|
|
45
|
+
rspec spec
|
|
46
|
+
|
|
42
47
|
## Contributing
|
|
43
48
|
|
|
44
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/gustavofernandesn/cardbins
|
|
49
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/gustavofernandesn/cardbins
|
data/lib/cardbins/brand.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Cardbins
|
|
|
19
19
|
@brands ||= {"Brands"=>
|
|
20
20
|
{"CrdBrd"=>
|
|
21
21
|
[{"Id"=>"1", "Description"=>"VISA"},
|
|
22
|
-
{"Id"=>"2", "Description"=>"
|
|
22
|
+
{"Id"=>"2", "Description"=>"MASTERCARD"},
|
|
23
23
|
{"Id"=>"3", "Description"=>"HIPERCARD"},
|
|
24
24
|
{"Id"=>"5", "Description"=>"TICKET"},
|
|
25
25
|
{"Id"=>"8", "Description"=>"SODEXO"},
|
data/lib/cardbins/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cardbins
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gustavo Fernandes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|