auth0-verifier 0.2.0 → 0.3.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: 8c457bbc71c7db5ab7200f545a54d94617284807c0e633d96d5fce5088712cdf
4
- data.tar.gz: 588cb1dc4794bc191d9f4119141cbfdb9fd60a87c65ff6865dd211c175e0e8e2
3
+ metadata.gz: 4e0d4e351e81ab7fe5d3f2259c0d2bc35a72334d62a2d5677fc15d93e600490b
4
+ data.tar.gz: e28cb47c82096489a5a74e3a99d7c91bb9533e2763cf6941062224f948a22c83
5
5
  SHA512:
6
- metadata.gz: 3b23b4029d7d28cae8e7abd7ef98b313f5e17f4d11aa35db3050c2238cf795c9ae46ad7baf2990c4805cf1560919b46a4f93f69da83a17b0fc7cf731db59e831
7
- data.tar.gz: 1299c05abd0ae6242ca4541702fe95bea454e0f9a2e9e5224a88ee4fd644d1c92a4bdd555200a174eedca825005f31a6b25890d174df0771255417fcdf82fae2
6
+ metadata.gz: a87b1a401fe72eb355ac8a24305b9e42ebef782b7f95e61f4a2329f895d03029b29dfeb520956444f00375f4a4b04071c003cdd5628fe6f5b3b57f58cb690b16
7
+ data.tar.gz: d295efa388b94f1a4ae5f54559ee7091558cb9c4fb743b58c616a02a3963fbc6b249f80c7a2cf284fb5c46350ba08678d6662ee2cb8561efbf9e0cc0f2c16cf9
@@ -0,0 +1,25 @@
1
+ name: Test
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ matrix:
9
+ ruby: [2.4, 2.5, 2.6]
10
+
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v1
15
+ - name: Set up Ruby ${{ matrix.ruby }}
16
+ uses: actions/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby }}
19
+ - name: Build and test with Rake
20
+ env:
21
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
22
+ run: |
23
+ gem install bundler
24
+ bundle install --jobs 4 --retry 3
25
+ bundle exec rspec
@@ -1,7 +1,7 @@
1
1
  require: rubocop-rspec
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.3
4
+ TargetRubyVersion: 2.4
5
5
  Exclude:
6
6
  - 'bin/rubocop'
7
7
  - 'bin/rspec'
data/Gemfile CHANGED
@@ -3,7 +3,7 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  group :development do
6
- gem 'rubocop', '~> 0.62'
6
+ gem 'rubocop', '~> 0.76'
7
7
  gem 'rubocop-rspec'
8
8
  end
9
9
 
@@ -12,10 +12,10 @@ group :development, :test do
12
12
  end
13
13
 
14
14
  group :test do
15
- gem 'rake' # For Travis CI
16
- gem 'rspec', '~> 3.8'
17
- gem 'simplecov', '~> 0.16', require: false
18
- gem 'webmock', '~> 3.5'
15
+ gem 'codecov', require: false
16
+ gem 'rspec', '~> 3.9'
17
+ gem 'simplecov', '~> 0.17', require: false
18
+ gem 'webmock', '~> 3.7'
19
19
  end
20
20
 
21
21
  gemspec
@@ -1,72 +1,73 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auth0-verifier (0.2.0)
4
+ auth0-verifier (0.3.0)
5
5
  jwt (>= 2.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.6.0)
11
- public_suffix (>= 2.0.2, < 4.0)
10
+ addressable (2.7.0)
11
+ public_suffix (>= 2.0.2, < 5.0)
12
12
  ast (2.4.0)
13
+ codecov (0.1.16)
14
+ json
15
+ simplecov
16
+ url
13
17
  coderay (1.1.2)
14
18
  crack (0.4.3)
15
19
  safe_yaml (~> 1.0.0)
16
20
  diff-lcs (1.3)
17
- docile (1.3.1)
18
- hashdiff (0.3.8)
19
- jaro_winkler (1.5.2)
21
+ docile (1.3.2)
22
+ hashdiff (1.0.0)
23
+ jaro_winkler (1.5.4)
20
24
  json (2.2.0)
21
- jwt (2.1.0)
25
+ jwt (2.2.1)
22
26
  method_source (0.9.2)
23
- parallel (1.14.0)
24
- parser (2.6.0.0)
27
+ parallel (1.18.0)
28
+ parser (2.6.5.0)
25
29
  ast (~> 2.4.0)
26
- powerpack (0.1.2)
27
30
  pry (0.12.2)
28
31
  coderay (~> 1.1.0)
29
32
  method_source (~> 0.9.0)
30
- psych (3.1.0)
31
- public_suffix (3.0.3)
33
+ public_suffix (4.0.1)
32
34
  rainbow (3.0.0)
33
- rake (12.3.2)
34
- rspec (3.8.0)
35
- rspec-core (~> 3.8.0)
36
- rspec-expectations (~> 3.8.0)
37
- rspec-mocks (~> 3.8.0)
38
- rspec-core (3.8.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-expectations (3.8.2)
35
+ rake (12.3.3)
36
+ rspec (3.9.0)
37
+ rspec-core (~> 3.9.0)
38
+ rspec-expectations (~> 3.9.0)
39
+ rspec-mocks (~> 3.9.0)
40
+ rspec-core (3.9.0)
41
+ rspec-support (~> 3.9.0)
42
+ rspec-expectations (3.9.0)
41
43
  diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-mocks (3.8.0)
44
+ rspec-support (~> 3.9.0)
45
+ rspec-mocks (3.9.0)
44
46
  diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-support (3.8.0)
47
- rubocop (0.65.0)
47
+ rspec-support (~> 3.9.0)
48
+ rspec-support (3.9.0)
49
+ rubocop (0.76.0)
48
50
  jaro_winkler (~> 1.5.1)
49
51
  parallel (~> 1.10)
50
- parser (>= 2.5, != 2.5.1.1)
51
- powerpack (~> 0.1)
52
- psych (>= 3.1.0)
52
+ parser (>= 2.6)
53
53
  rainbow (>= 2.2.2, < 4.0)
54
54
  ruby-progressbar (~> 1.7)
55
- unicode-display_width (~> 1.4.0)
56
- rubocop-rspec (1.32.0)
57
- rubocop (>= 0.60.0)
58
- ruby-progressbar (1.10.0)
55
+ unicode-display_width (>= 1.4.0, < 1.7)
56
+ rubocop-rspec (1.36.0)
57
+ rubocop (>= 0.68.1)
58
+ ruby-progressbar (1.10.1)
59
59
  safe_yaml (1.0.5)
60
- simplecov (0.16.1)
60
+ simplecov (0.17.1)
61
61
  docile (~> 1.1)
62
62
  json (>= 1.8, < 3)
63
63
  simplecov-html (~> 0.10.0)
64
64
  simplecov-html (0.10.2)
65
- unicode-display_width (1.4.1)
66
- webmock (3.5.1)
65
+ unicode-display_width (1.6.0)
66
+ url (0.3.2)
67
+ webmock (3.7.6)
67
68
  addressable (>= 2.3.6)
68
69
  crack (>= 0.3.2)
69
- hashdiff
70
+ hashdiff (>= 0.4.0, < 2.0.0)
70
71
 
71
72
  PLATFORMS
72
73
  ruby
@@ -74,13 +75,14 @@ PLATFORMS
74
75
  DEPENDENCIES
75
76
  auth0-verifier!
76
77
  bundler (~> 2.0)
78
+ codecov
77
79
  pry
78
- rake
79
- rspec (~> 3.8)
80
- rubocop (~> 0.62)
80
+ rake (~> 12.0)
81
+ rspec (~> 3.9)
82
+ rubocop (~> 0.76)
81
83
  rubocop-rspec
82
- simplecov (~> 0.16)
83
- webmock (~> 3.5)
84
+ simplecov (~> 0.17)
85
+ webmock (~> 3.7)
84
86
 
85
87
  BUNDLED WITH
86
- 2.0.1
88
+ 2.0.2
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Verify [Auth0][auth0] JWT token using RS256 with JWKS method.
4
4
 
5
5
  [![Gem Version](https://img.shields.io/gem/v/auth0-verifier.svg?style=flat-square)][rubygems]
6
- [![Build Status](https://img.shields.io/travis/com/jpalumickas/auth0-verifier.svg?style=flat-square)][travis]
6
+ [![Coverage Status](https://img.shields.io/codecov/c/github/jpalumickas/mailerlite-ruby?style=flat-square)][codecov]
7
7
 
8
8
  ## Installation
9
9
 
@@ -42,10 +42,9 @@ Auth0::Verifier.verify('my token')
42
42
 
43
43
  ## Supported Ruby Versions
44
44
 
45
- This library aims to support and is [tested against][travis] the following Ruby
45
+ This library aims to support and is [tested against][github_actions] the following Ruby
46
46
  implementations:
47
47
 
48
- * Ruby 2.3.0
49
48
  * Ruby 2.4.0
50
49
  * Ruby 2.5.0
51
50
  * Ruby 2.6.0
@@ -63,7 +62,8 @@ Everyone interacting in the Auth0 Verifier project’s codebases, issue trackers
63
62
  Copyright (c) 2019 Justas Palumickas. See [LICENSE][license] for details.
64
63
 
65
64
  [rubygems]: https://rubygems.org/gems/auth0-verifier
66
- [travis]: https://travis-ci.com/jpalumickas/auth0-verifier
65
+ [codecov]: https://codecov.io/gh/jpalumickas/auth0-verifier
66
+ [github_actions]: https://github.com/jpalumickas/auth0-verifier/actions
67
67
 
68
68
  [license]: https://raw.githubusercontent.com/jpalumickas/auth0-verifie/master/LICENSE
69
69
  [auth0]: https://auth0.com
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.required_ruby_version = '>= 2.3.0'
34
+ spec.required_ruby_version = '>= 2.4.0'
35
35
 
36
36
  spec.add_dependency 'jwt', '>= 2.0'
37
37
  spec.add_development_dependency 'bundler', '~> 2.0'
38
- spec.add_development_dependency 'rake', '~> 10.0'
38
+ spec.add_development_dependency 'rake', '~> 12.0'
39
39
  end
@@ -15,7 +15,8 @@ module Auth0
15
15
  end
16
16
 
17
17
  def verify!(options = {})
18
- handler = Auth0::Verifier::Handler.new(options.except(:token))
18
+ handler_options = options.dup.tap { |it| it.delete(:token) }
19
+ handler = Auth0::Verifier::Handler.new(handler_options)
19
20
  handler.verify(options[:token])
20
21
  end
21
22
 
@@ -14,7 +14,7 @@ module Auth0
14
14
  end
15
15
 
16
16
  def domain
17
- (@domain || ENV['AUTH0_DOMAIN']).gsub(%r{\Ahttps?://}, '')
17
+ (@domain || ENV['AUTH0_DOMAIN'])&.gsub(%r{\Ahttps?://}, '')
18
18
  end
19
19
 
20
20
  def type
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Auth0
4
4
  module Verifier
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth0-verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justas Palumickas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-05 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '12.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '12.0'
55
55
  description: Auth0 verifier for Auth0 JWT tokens for RS256
56
56
  email:
57
57
  - jpalumickas@gmail.com
@@ -59,10 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github/workflows/test.yml"
62
63
  - ".gitignore"
63
64
  - ".rspec"
64
65
  - ".rubocop.yml"
65
- - ".travis.yml"
66
66
  - CODE_OF_CONDUCT.md
67
67
  - Gemfile
68
68
  - Gemfile.lock
@@ -97,14 +97,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
- version: 2.3.0
100
+ version: 2.4.0
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.0.2
107
+ rubygems_version: 3.0.6
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Auth0 token verifier
@@ -1,24 +0,0 @@
1
- ---
2
- sudo: false
3
- bundler_args: --without development
4
-
5
- language: ruby
6
-
7
- cache: bundler
8
-
9
- rvm:
10
- - 2.3.0
11
- - 2.4.0
12
- - 2.5.0
13
- - 2.6.0
14
- - ruby-head
15
-
16
- before_install:
17
- - gem install bundler -v 2.0.1
18
-
19
- script:
20
- - bundle exec rspec
21
-
22
- matrix:
23
- allow_failures:
24
- - rvm: ruby-head