credit_card_validations 4.1.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +30 -0
- data/Gemfile +2 -1
- data/README.md +0 -2
- data/credit_card_validations.gemspec +3 -3
- data/lib/credit_card_validations/version.rb +1 -1
- data/spec/fixtures/valid_cards.yml +0 -5
- data/spec/test_helper.rb +1 -3
- metadata +33 -21
- data/.travis.yml +0 -32
- data/gemfiles/rails1-4.gemfile +0 -11
- data/gemfiles/rails5.gemfile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03328c061e5430470ceb2f0d4af1359d58aa272c370c16eb3484574c39e97e63'
|
4
|
+
data.tar.gz: e9b394824f0faeba5cade67212f126c4589bd4ba825de1cb1f2f079f9d6cad72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a51d59395f02c3cfb2d3b5ab68bf628f97eb71f711871ea6e8994372f54b7fa366be11869ac7b7568acae37399f0424446028a1272ad7c6823d7ee489a5df05
|
7
|
+
data.tar.gz: 34b9d7bef2e7969c0dfd88bdc0310831a1875abf14e434affdd603f7eed0f11067dc1dab9a9bce8c793f5792e0091abd5f7b7f8e70420f4f1705d1dff064eceb
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: CI
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
name: Tests with Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }}
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby-version:
|
14
|
+
- 2.7
|
15
|
+
- 3.0
|
16
|
+
rails:
|
17
|
+
- '6.1.5'
|
18
|
+
- '7.0.2.3'
|
19
|
+
env:
|
20
|
+
RAILS_VERSION: ${{ matrix.rails }}
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- uses: actions/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: ${{ matrix.ruby-version }}
|
26
|
+
- name: Run tests
|
27
|
+
run: |
|
28
|
+
gem install bundler -v '< 2'
|
29
|
+
bundle install
|
30
|
+
bundle exec rake
|
data/Gemfile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
group :test do
|
3
|
-
gem '
|
3
|
+
gem 'activemodel', ENV['RAILS_VERSION'], require: false
|
4
|
+
gem 'activesupport', ENV['RAILS_VERSION'], require: false
|
4
5
|
end
|
5
6
|
# Specify your gem's dependencies in credit_card_validations.gemspec
|
6
7
|
gemspec
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# CreditCardValidations
|
2
2
|
|
3
|
-
[![Build Status](http://img.shields.io/travis/didww/credit_card_validations.svg)](https://travis-ci.org/didww/credit_card_validations)
|
4
|
-
[![Coverage Status](http://img.shields.io/coveralls/Fivell/credit_card_validations.svg)](https://coveralls.io/r/Fivell/credit_card_validations)
|
5
3
|
[![Gem Version](http://img.shields.io/gem/v/credit_card_validations.svg)](https://rubygems.org/gems/credit_card_validations)
|
6
4
|
[![License](http://img.shields.io/:license-mit-blue.svg)](http://didww.mit-license.org)
|
7
5
|
|
@@ -25,12 +25,12 @@ Gem::Specification.new do |gem|
|
|
25
25
|
gem.require_paths = ["lib"]
|
26
26
|
|
27
27
|
|
28
|
-
gem.add_dependency "activemodel", ">=
|
29
|
-
gem.add_dependency "activesupport", ">=
|
28
|
+
gem.add_dependency "activemodel", ">= 5.2", "< 7.1"
|
29
|
+
gem.add_dependency "activesupport", ">= 5.2", "< 7.1"
|
30
30
|
|
31
31
|
|
32
32
|
gem.add_development_dependency "minitest", '~> 5.14.3'
|
33
33
|
gem.add_development_dependency "mocha", '1.1.0'
|
34
34
|
gem.add_development_dependency 'rake', '~> 10'
|
35
|
-
|
35
|
+
gem.add_development_dependency 'byebug'
|
36
36
|
end
|
@@ -43,14 +43,9 @@
|
|
43
43
|
- 3777 5274 9896 404
|
44
44
|
- 3782 8224 6310 005
|
45
45
|
:discover:
|
46
|
-
- 6011 1111 1111 1117
|
47
46
|
- 6011 0009 9013 9424
|
48
47
|
- 6011 0000 0000 0004
|
49
48
|
- 6011 0004 0000 0000
|
50
|
-
- 6011 1532 1637 1980
|
51
|
-
- 6011 6011 6011 6611
|
52
|
-
- 6011 6874 8256 4166
|
53
|
-
- 6011 8148 3690 5651
|
54
49
|
:maestro:
|
55
50
|
- 6759 6498 2643 8453
|
56
51
|
- 5641 8200 0000 0005
|
data/spec/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "
|
19
|
+
version: '5.2'
|
20
|
+
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "
|
29
|
+
version: '5.2'
|
30
|
+
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
- - "
|
39
|
+
version: '5.2'
|
40
|
+
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '7.1'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
50
|
-
- - "
|
49
|
+
version: '5.2'
|
50
|
+
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '7.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: minitest
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,6 +92,20 @@ dependencies:
|
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '10'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: byebug
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
95
109
|
description: A ruby gem for validating credit card numbers
|
96
110
|
email:
|
97
111
|
- fedoronchuk@gmail.com
|
@@ -99,17 +113,15 @@ executables: []
|
|
99
113
|
extensions: []
|
100
114
|
extra_rdoc_files: []
|
101
115
|
files:
|
116
|
+
- ".github/workflows/build.yml"
|
102
117
|
- ".gitignore"
|
103
118
|
- ".hound.yml"
|
104
|
-
- ".travis.yml"
|
105
119
|
- Changelog.md
|
106
120
|
- Gemfile
|
107
121
|
- LICENSE.txt
|
108
122
|
- README.md
|
109
123
|
- Rakefile
|
110
124
|
- credit_card_validations.gemspec
|
111
|
-
- gemfiles/rails1-4.gemfile
|
112
|
-
- gemfiles/rails5.gemfile
|
113
125
|
- lib/active_model/credit_card_number_validator.rb
|
114
126
|
- lib/credit_card_validations.rb
|
115
127
|
- lib/credit_card_validations/detector.rb
|
@@ -138,7 +150,7 @@ metadata:
|
|
138
150
|
bug_tracker_uri: https://github.com/didww/credit_card_validations/issues
|
139
151
|
changelog_uri: https://github.com/didww/credit_card_validations/blob/master/Changelog.md
|
140
152
|
source_code_uri: https://github.com/didww/credit_card_validations
|
141
|
-
post_install_message:
|
153
|
+
post_install_message:
|
142
154
|
rdoc_options: []
|
143
155
|
require_paths:
|
144
156
|
- lib
|
@@ -153,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
165
|
- !ruby/object:Gem::Version
|
154
166
|
version: '0'
|
155
167
|
requirements: []
|
156
|
-
rubygems_version: 3.
|
157
|
-
signing_key:
|
168
|
+
rubygems_version: 3.1.6
|
169
|
+
signing_key:
|
158
170
|
specification_version: 4
|
159
171
|
summary: gem should be used for credit card numbers validation, card brands detections,
|
160
172
|
luhn checks
|
data/.travis.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.1.10
|
4
|
-
- 2.2.10
|
5
|
-
- 2.3.5
|
6
|
-
- 2.4.5
|
7
|
-
- 2.5.3
|
8
|
-
- 2.6.3
|
9
|
-
- 3.0.0
|
10
|
-
- jruby-9.1.15.0
|
11
|
-
gemfile:
|
12
|
-
- gemfiles/rails1-4.gemfile
|
13
|
-
- gemfiles/rails5.gemfile
|
14
|
-
matrix:
|
15
|
-
exclude:
|
16
|
-
- gemfile: gemfiles/rails5.gemfile
|
17
|
-
rvm: 2.1.10
|
18
|
-
- gemfile: gemfiles/rails5.gemfile
|
19
|
-
rvm: jruby-9.1.6.0
|
20
|
-
- gemfile: gemfiles/rails1-4.gemfile
|
21
|
-
rvm: 2.5.3
|
22
|
-
- gemfile: gemfiles/rails1-4.gemfile
|
23
|
-
rvm: 2.6.3
|
24
|
-
- gemfile: gemfiles/rails1-4.gemfile
|
25
|
-
rvm: 3.0.0
|
26
|
-
allow_failures:
|
27
|
-
- rvm: 2.1.10
|
28
|
-
|
29
|
-
before_install:
|
30
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
31
|
-
- gem install bundler -v '< 2'
|
32
|
-
- export BUNDLE_PATH="${TRAVIS_BUILD_DIR}/vendor/bundle"
|
data/gemfiles/rails1-4.gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gem "activemodel", ">= 3", '< 5'
|
4
|
-
gem "activesupport", ">= 3", '< 5'
|
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]
|
8
|
-
gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
|
9
|
-
end
|
10
|
-
|
11
|
-
gemspec :path => "../"
|
data/gemfiles/rails5.gemfile
DELETED