credit_debit_card_number_validator 16.09.5 → 16.09.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/validator.rb +1 -1
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e280c8967355fa643feca760af936aa5ecc35f29
4
- data.tar.gz: 30f078a98969acb38bd0a1956595fd6c310f59a9
3
+ metadata.gz: 58ff0ee883d6b18aa8fef38bb8aa1506bc11b93f
4
+ data.tar.gz: 0e54ca2771205d75983ed446817840fabf55bd08
5
5
  SHA512:
6
- metadata.gz: 578ad5878aea0aa35b232ef2849c294ea938d83a81f0a1dfa602b08004e0eb90c099638b7db7ab0cfee9a4fcb47d4f9856e13e3ae18b65198535cbc12c1b1915
7
- data.tar.gz: 48bb15d8fab33a80eac0c35e76de2a56b604723d427c830753863ebbc4904af69e408f43be02f4bae6512beb9dfeb7a4d8843dd939f05cac3694be105f9837b2
6
+ metadata.gz: 5aa1ebefac3b9773319898b04a7b86a528d66e918ef8f4d92fa4a674683a4b8be87120f6b5056631645419ba6c26fef74dc4803b946ec0d51aeb1961784d1249
7
+ data.tar.gz: 249b8ebfe9bb65a03af8adbbfe218535fe9756d5eb2c1e4f3ada02cd280ef8c6f744e5470407e7c998c1f15f37db3649203c9d6d5d4c49e237045fe8a6e4d3f1
data/lib/validator.rb CHANGED
@@ -32,7 +32,7 @@ module CreditDebitCardNumberValidator
32
32
  info = Information.new
33
33
 
34
34
  # validate and gathering information and store them in info object
35
- info.card_number = card_number
35
+ info.card_number = card_number.to_i
36
36
  info.is_valid, info.mod_10_result = validate card_number
37
37
  info.iin, info.brand = determine_iin_and_brand card_number
38
38
  info.check_digit = next_check_digit card_number
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credit_debit_card_number_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.09.5
4
+ version: 16.09.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Osm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-13 00:00:00.000000000 Z
11
+ date: 2016-09-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple way to validate credit/debit card number uring ruby
14
14
  email: aliosm1997@gmail.com
@@ -17,9 +17,9 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/credit_debit_card_number_validator.rb
20
- - lib/validator.rb
21
20
  - lib/information.rb
22
21
  - lib/tests.rb
22
+ - lib/validator.rb
23
23
  homepage: https://github.com/AliOsm/credit_debit_card_number_validator
24
24
  licenses:
25
25
  - MIT
@@ -30,17 +30,17 @@ require_paths:
30
30
  - lib
31
31
  required_ruby_version: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
- rubygems_version: 2.0.14.1
43
+ rubygems_version: 2.5.1
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Validator