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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e70cfc305b9764aadc325a22a15fc5827980b37b21d78edde8186a776485a59
4
- data.tar.gz: 07dabf0813938def79e1959fbefba540a6129e05a025be2b4b92594fdf911579
3
+ metadata.gz: '03328c061e5430470ceb2f0d4af1359d58aa272c370c16eb3484574c39e97e63'
4
+ data.tar.gz: e9b394824f0faeba5cade67212f126c4589bd4ba825de1cb1f2f079f9d6cad72
5
5
  SHA512:
6
- metadata.gz: 1187415e0ba2d57a30b6e47513b3a7b0de77254e5b27865df5f4d82e108495249c9f8e8e53e3512ca589f2268df0d68208ac8e0926f00d2acec20b674c8b544b
7
- data.tar.gz: a94b5247435901e55cb67913e6872ae655dde008a38f77101b732b215b54aa2ad478d86f2fef7fa5306f65a3c7e66257572671408e3a674af57bd39c50f7d636
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 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
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", ">= 3", "<= 6.2"
29
- gem.add_dependency "activesupport", ">= 3", "<= 6.2"
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
@@ -1,3 +1,3 @@
1
1
  module CreditCardValidations
2
- VERSION = '4.1.0'
2
+ VERSION = '5.0.0'
3
3
  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
@@ -1,9 +1,7 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
1
  require 'minitest/autorun'
5
2
  require 'i18n'
6
3
  require 'mocha/mini_test'
4
+ require 'byebug'
7
5
 
8
6
  lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")
9
7
  specs = File.expand_path("#{File.dirname(__FILE__)}/../spec")
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.1.0
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: 2021-04-01 00:00:00.000000000 Z
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: '3'
20
- - - "<="
19
+ version: '5.2'
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
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: '3'
30
- - - "<="
29
+ version: '5.2'
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
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: '3'
40
- - - "<="
39
+ version: '5.2'
40
+ - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.2'
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: '3'
50
- - - "<="
49
+ version: '5.2'
50
+ - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.2'
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.0.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"
@@ -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 => "../"
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activemodel", ">= 5"
4
- gem "activesupport", ">= 5"
5
-
6
- group :test do
7
- gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
8
- end
9
-
10
- gemspec :path => "../"