cardbins 0.2.0 → 0.3.0

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: '082b0a60039c5b0af48951d7110b7633209bfe7d'
4
- data.tar.gz: c31422702ed5e762aef3fe16f998e6af95f7738b
3
+ metadata.gz: 6ddec42f00ba3fceac61264b32f3fdf36db6dccc
4
+ data.tar.gz: 8a20650ff1747ec3379b0dbaae712062e3a3846e
5
5
  SHA512:
6
- metadata.gz: 3b5c7a0b82ac75daa80a7f728095fd064bba973b4d72650e02968374141873a27974a6af482700eb61513eea91918cf0c8d4d735b377f4b0036c6e61cb52443b
7
- data.tar.gz: ac8067dce712dfb20f470685a860a4352ff9137f9d8ad58fa9121411280e95ca28e1a9a6c5691b31756071a6b4d61e06d7544b8862cf152024fb3ee16f9ee2c2
6
+ metadata.gz: 3720b8430199315cf4d5f43a1c79834f6b2813d2be66254722082d7d55cb530d29bb464624325b08c2a1671668a4a3ef3a444ad91e28e87501a1d266cff652fc
7
+ data.tar.gz: 405a1054685eb764930d043d805da69942b4e51d2d25d7a8144b99889bebe3e0be5f30d1358c5f8af2c35fa967b9fbd6f1ad572e18eb77e262ca252d585240af
data/README.md CHANGED
@@ -1,18 +1,19 @@
1
1
  # Cardbins
2
2
 
3
- This gem will help you to identify the card's brand name by the initial bin.
4
- You should inform the first six digits of credit or debit card.
3
+ - Search the brand name of credit and debit cards;
4
+ - The first six digits of card is required.
5
5
 
6
- Included Cards:
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
- 2.4.1 :001 > require 'cardbins'
37
+ require 'cardbins'
37
38
  => true
38
- 2.4.1 :002 > brand = Cardbins.search("636297")
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
@@ -19,7 +19,7 @@ module Cardbins
19
19
  @brands ||= {"Brands"=>
20
20
  {"CrdBrd"=>
21
21
  [{"Id"=>"1", "Description"=>"VISA"},
22
- {"Id"=>"2", "Description"=>"MASTER"},
22
+ {"Id"=>"2", "Description"=>"MASTERCARD"},
23
23
  {"Id"=>"3", "Description"=>"HIPERCARD"},
24
24
  {"Id"=>"5", "Description"=>"TICKET"},
25
25
  {"Id"=>"8", "Description"=>"SODEXO"},
@@ -1,3 +1,3 @@
1
1
  module Cardbins
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-07-14 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler