jwt 2.2.2 → 2.4.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.4.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Rudat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-18 00:00:00.000000000 Z
11
+ date: 2022-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -68,48 +68,6 @@ dependencies:
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: '0.18'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "<"
81
- - !ruby/object:Gem::Version
82
- version: '0.18'
83
- - !ruby/object:Gem::Dependency
84
- name: simplecov-json
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: codeclimate-test-reporter
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: codacy-coverage
113
71
  requirement: !ruby/object:Gem::Requirement
114
72
  requirements:
115
73
  - - ">="
@@ -122,34 +80,6 @@ dependencies:
122
80
  - - ">="
123
81
  - !ruby/object:Gem::Version
124
82
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rbnacl
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: openssl
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '2.1'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '2.1'
153
83
  description: A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT)
154
84
  standard.
155
85
  email: timrudat@gmail.com
@@ -158,26 +88,30 @@ extensions: []
158
88
  extra_rdoc_files: []
159
89
  files:
160
90
  - ".codeclimate.yml"
161
- - ".ebert.yml"
91
+ - ".github/workflows/coverage.yml"
92
+ - ".github/workflows/test.yml"
162
93
  - ".gitignore"
163
94
  - ".rspec"
164
95
  - ".rubocop.yml"
165
- - ".travis.yml"
96
+ - ".rubocop_todo.yml"
97
+ - ".sourcelevel.yml"
166
98
  - AUTHORS
167
99
  - Appraisals
168
100
  - CHANGELOG.md
101
+ - CODE_OF_CONDUCT.md
169
102
  - Gemfile
170
103
  - LICENSE
171
104
  - README.md
172
105
  - Rakefile
173
106
  - lib/jwt.rb
107
+ - lib/jwt/algos.rb
174
108
  - lib/jwt/algos/ecdsa.rb
175
109
  - lib/jwt/algos/eddsa.rb
176
110
  - lib/jwt/algos/hmac.rb
111
+ - lib/jwt/algos/none.rb
177
112
  - lib/jwt/algos/ps.rb
178
113
  - lib/jwt/algos/rsa.rb
179
114
  - lib/jwt/algos/unsupported.rb
180
- - lib/jwt/base64.rb
181
115
  - lib/jwt/claims_validator.rb
182
116
  - lib/jwt/decode.rb
183
117
  - lib/jwt/default_options.rb
@@ -185,17 +119,23 @@ files:
185
119
  - lib/jwt/error.rb
186
120
  - lib/jwt/json.rb
187
121
  - lib/jwt/jwk.rb
122
+ - lib/jwt/jwk/ec.rb
123
+ - lib/jwt/jwk/hmac.rb
124
+ - lib/jwt/jwk/key_base.rb
188
125
  - lib/jwt/jwk/key_finder.rb
189
126
  - lib/jwt/jwk/rsa.rb
190
127
  - lib/jwt/security_utils.rb
191
128
  - lib/jwt/signature.rb
192
129
  - lib/jwt/verify.rb
193
130
  - lib/jwt/version.rb
131
+ - lib/jwt/x5c_key_finder.rb
194
132
  - ruby-jwt.gemspec
195
133
  homepage: https://github.com/jwt/ruby-jwt
196
134
  licenses:
197
135
  - MIT
198
- metadata: {}
136
+ metadata:
137
+ bug_tracker_uri: https://github.com/jwt/ruby-jwt/issues
138
+ changelog_uri: https://github.com/jwt/ruby-jwt/blob/v2.4.0.beta1/CHANGELOG.md
199
139
  post_install_message:
200
140
  rdoc_options: []
201
141
  require_paths:
@@ -204,14 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
144
  requirements:
205
145
  - - ">="
206
146
  - !ruby/object:Gem::Version
207
- version: '2.1'
147
+ version: '2.5'
208
148
  required_rubygems_version: !ruby/object:Gem::Requirement
209
149
  requirements:
210
- - - ">="
150
+ - - ">"
211
151
  - !ruby/object:Gem::Version
212
- version: '0'
152
+ version: 1.3.1
213
153
  requirements: []
214
- rubygems_version: 3.1.2
154
+ rubygems_version: 3.2.19
215
155
  signing_key:
216
156
  specification_version: 4
217
157
  summary: JSON Web Token implementation in Ruby
data/.travis.yml DELETED
@@ -1,29 +0,0 @@
1
- sudo: required
2
- cache: bundler
3
- dist: trusty
4
- language: ruby
5
- rvm:
6
- - 2.3
7
- - 2.4
8
- - 2.5
9
- - 2.6
10
- gemfile:
11
- - gemfiles/standalone.gemfile
12
- - gemfiles/rails_5.0.gemfile
13
- - gemfiles/rails_5.1.gemfile
14
- - gemfiles/rails_5.2.gemfile
15
- - gemfiles/rails_6.0.gemfile
16
- script: "bundle exec rspec && bundle exec codeclimate-test-reporter"
17
- before_install:
18
- - sudo add-apt-repository ppa:chris-lea/libsodium -y
19
- - sudo apt-get update -q
20
- - sudo apt-get install libsodium-dev -y
21
- - gem install bundler
22
-
23
- matrix:
24
- fast_finish: true
25
- exclude:
26
- - gemfile: gemfiles/rails_6.0.gemfile
27
- rvm: 2.3
28
- - gemfile: gemfiles/rails_6.0.gemfile
29
- rvm: 2.4
data/lib/jwt/base64.rb DELETED
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'base64'
4
-
5
- module JWT
6
- # Base64 helpers
7
- class Base64
8
- class << self
9
- def url_encode(str)
10
- ::Base64.encode64(str).tr('+/', '-_').gsub(/[\n=]/, '')
11
- end
12
-
13
- def url_decode(str)
14
- str += '=' * (4 - str.length.modulo(4))
15
- ::Base64.decode64(str.tr('-_', '+/'))
16
- end
17
- end
18
- end
19
- end