credit_card_validations 3.2.2 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +4 -3
- data/Changelog.md +3 -0
- data/README.md +1 -0
- data/credit_card_validations.gemspec +1 -1
- data/gemfiles/rails1-4.gemfile +2 -1
- data/lib/credit_card_validations/version.rb +1 -1
- data/lib/data/brands.yaml +12 -0
- data/spec/fixtures/valid_cards.yml +2 -0
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NjVkNzhjNmEwYTcxNzUyMjdiMjUyYjhlODI4ODUzOWU3YTE0Y2UzMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjVkY2NhZjY2ZmJmMGQ5ZjVhNmNkM2JlZDAzYjM0YzhjYTVlZDdiMQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NTE5OWZiM2QzYjMyNTc4ZjUyMGJhNWY4YTZlMDk2MjhiMThmODM2MzlmNjk3
|
10
|
+
MmU2OTFiYTAyMzQ3NGQ0NDc3ZDEzMDk4YjM5YmEyMjc3ZGIyZWEwNGZmYThj
|
11
|
+
NjM0MGY3ZmFhNTc5Y2Y2NTM1ZTYwMDFhNDgyZjY1MWQ5NjYxNGM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MGZlNzM4YjRjZDVmYmY2NzI5ZTg1OGQ4ZTg4OGY3YzY1MTQ4MjA3NjVmMTJl
|
14
|
+
Mzg3NjcxM2ZiMWRhNmFkNWRmOTljMGFiOGU0ZDk3ZjQ1OWFiODk5ZDA2ZmNk
|
15
|
+
Y2E3Mzk3NmY0ZjVhZTkxYzcwYTMxNjNiYTQxY2RjYTJlOGRhYzA=
|
data/.travis.yml
CHANGED
@@ -5,7 +5,7 @@ rvm:
|
|
5
5
|
- 2.1.9
|
6
6
|
- 2.2.5
|
7
7
|
- 2.3.1
|
8
|
-
- jruby-
|
8
|
+
- jruby-9.1.6.0
|
9
9
|
gemfile:
|
10
10
|
- gemfiles/rails1-4.gemfile
|
11
11
|
- gemfiles/rails5.gemfile
|
@@ -18,8 +18,9 @@ matrix:
|
|
18
18
|
- gemfile: gemfiles/rails5.gemfile
|
19
19
|
rvm: 2.1.9
|
20
20
|
- gemfile: gemfiles/rails5.gemfile
|
21
|
-
rvm: jruby-
|
21
|
+
rvm: jruby-9.1.6.0
|
22
22
|
before_install:
|
23
|
-
- gem install bundler -v '= 1.11.2'
|
24
23
|
- gem update --system
|
24
|
+
- rvm @global do gem uninstall bundler -a -x
|
25
|
+
- rvm @global do gem install bundler -v 1.13.7
|
25
26
|
- gem --version
|
data/Changelog.md
CHANGED
data/README.md
CHANGED
@@ -43,6 +43,7 @@ The following issuing institutes are accepted:
|
|
43
43
|
[JCB](http://en.wikipedia.org/wiki/Japan_Credit_Bureau) | :jcb
|
44
44
|
[Maestro](http://en.wikipedia.org/wiki/Maestro_%28debit_card%29) | :maestro
|
45
45
|
[MasterCard](http://en.wikipedia.org/wiki/MasterCard) | :mastercard
|
46
|
+
[MIR](http://www.nspk.ru/en/cards-mir/) | :mir
|
46
47
|
[Rupay](http://en.wikipedia.org/wiki/RuPay) | :rupay
|
47
48
|
[Solo](http://en.wikipedia.org/wiki/Solo_(debit_card)) | :solo
|
48
49
|
[Switch](http://en.wikipedia.org/wiki/Switch_(debit_card)) | :switch
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
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
13
|
gem.homepage = "http://fivell.github.io/credit_card_validations/"
|
14
|
-
gem.license =
|
14
|
+
gem.license = "MIT"
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
17
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/gemfiles/rails1-4.gemfile
CHANGED
@@ -2,8 +2,9 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gem "activemodel", ">= 3", '< 5'
|
4
4
|
gem "activesupport", ">= 3", '< 5'
|
5
|
-
|
6
5
|
group :test do
|
6
|
+
gem 'tins', '< 1.3.4', platforms: [:ruby_19, :jruby]
|
7
|
+
gem 'term-ansicolor', '~> 1.3.0', platforms: [:ruby_19, :jruby]
|
7
8
|
gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
|
8
9
|
end
|
9
10
|
|
data/lib/data/brands.yaml
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
- 16
|
7
7
|
:prefixes:
|
8
8
|
- '4'
|
9
|
+
:options:
|
10
|
+
:brand_name: Visa
|
9
11
|
:mastercard:
|
10
12
|
:rules:
|
11
13
|
- :length:
|
@@ -275,3 +277,13 @@
|
|
275
277
|
:options:
|
276
278
|
:skip_luhn: true
|
277
279
|
:brand_name: Elo
|
280
|
+
:mir:
|
281
|
+
:rules:
|
282
|
+
- :length:
|
283
|
+
- 16
|
284
|
+
:prefixes:
|
285
|
+
- '2200'
|
286
|
+
- '2201'
|
287
|
+
- '2202'
|
288
|
+
- '2203'
|
289
|
+
- '2204'
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '10'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10'
|
69
69
|
description: A ruby gem for validating credit card numbers
|
@@ -73,8 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
-
|
77
|
-
-
|
76
|
+
- .hound.yml
|
77
|
+
- .travis.yml
|
78
78
|
- Changelog.md
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
@@ -114,17 +114,17 @@ require_paths:
|
|
114
114
|
- lib
|
115
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - ! '>='
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ! '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.8
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: gem should be used for credit card numbers validation, card brands detections,
|