credit_card_validations 3.2.2 → 3.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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 13bbefb17b2950ef0a22a4a3fc1210453143cfbd
4
- data.tar.gz: 1caafd3dc7e584ac059f2df3ea83713477f14a62
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjVkNzhjNmEwYTcxNzUyMjdiMjUyYjhlODI4ODUzOWU3YTE0Y2UzMg==
5
+ data.tar.gz: !binary |-
6
+ NjVkY2NhZjY2ZmJmMGQ5ZjVhNmNkM2JlZDAzYjM0YzhjYTVlZDdiMQ==
5
7
  SHA512:
6
- metadata.gz: 8fa7c1a358696b43e8e24cdf25e102f801e0148e4d9eaf2c6b4c3aca049bcf35e79cc8e7bffd75b0ada41cc2f8f58040f32a81c471db21ac09bf9cb69bd921a7
7
- data.tar.gz: ab43165c032cc5def62fd1f7183baa7ec690c62d60a0607373ba1fa0afb68413e2235e920f47df8ccd12a7c14a99bc26809041b215b52bde986ddb9a2625de82
8
+ metadata.gz: !binary |-
9
+ NTE5OWZiM2QzYjMyNTc4ZjUyMGJhNWY4YTZlMDk2MjhiMThmODM2MzlmNjk3
10
+ MmU2OTFiYTAyMzQ3NGQ0NDc3ZDEzMDk4YjM5YmEyMjc3ZGIyZWEwNGZmYThj
11
+ NjM0MGY3ZmFhNTc5Y2Y2NTM1ZTYwMDFhNDgyZjY1MWQ5NjYxNGM=
12
+ data.tar.gz: !binary |-
13
+ MGZlNzM4YjRjZDVmYmY2NzI5ZTg1OGQ4ZTg4OGY3YzY1MTQ4MjA3NjVmMTJl
14
+ Mzg3NjcxM2ZiMWRhNmFkNWRmOTljMGFiOGU0ZDk3ZjQ1OWFiODk5ZDA2ZmNk
15
+ Y2E3Mzk3NmY0ZjVhZTkxYzcwYTMxNjNiYTQxY2RjYTJlOGRhYzA=
@@ -5,7 +5,7 @@ rvm:
5
5
  - 2.1.9
6
6
  - 2.2.5
7
7
  - 2.3.1
8
- - jruby-19mode # JRuby in 1.9 mode
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-19mode
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
@@ -1,3 +1,6 @@
1
+ # 3.3.0
2
+ * Added support for MIR card brand
3
+
1
4
  # 3.2.2
2
5
  * Relaxing dependency requirements to support Rails 5
3
6
 
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 = 'MIT'
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) }
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module CreditCardValidations
2
- VERSION = '3.2.2'
2
+ VERSION = '3.3.0'
3
3
  end
@@ -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'
@@ -113,3 +113,5 @@
113
113
  - '5090 7463 8779 6948'
114
114
  - '6362 9745 2190 7765'
115
115
  - '6363 6850 2897 2643'
116
+ :mir:
117
+ - 2202 1234 1234 1234
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.2.2
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: 2016-07-04 00:00:00.000000000 Z
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
- - ".hound.yml"
77
- - ".travis.yml"
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.6
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,