vonage-jwt 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vonage-jwt/jwt.rb +1 -1
- data/lib/vonage-jwt/jwt_builder.rb +1 -1
- data/lib/vonage-jwt/version.rb +1 -1
- data/vonage-jwt.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e64f9df01478c092cf5f950c5fb61d56227a558cba788a693cffad050ed5a66
|
4
|
+
data.tar.gz: f72bd42ca910f5f6df52781eeb3d8d1ca658c261833bbe5ab68b3ef8f2571014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0fb624c08c1c06db4def2a97b50a10add0392f89f6279de7c5b70c987881f510720202b6b84a3d9365a61b32f43fb3783ed30aa95a31a5adc7d1bf08dcf5444
|
7
|
+
data.tar.gz: faa02b4e295b2a850191a956dbbe526c7feb498e3a51cd4ada6d9d66823036846e418092b06bf020e8cb7474bfa1f886a4fa47b30e2e746276ce49f62a9b6c43
|
data/lib/vonage-jwt/jwt.rb
CHANGED
@@ -21,10 +21,10 @@ module Vonage
|
|
21
21
|
iat: iat,
|
22
22
|
jti: generator.jti,
|
23
23
|
exp: generator.exp || iat + generator.ttl,
|
24
|
-
sub: generator.subject,
|
25
24
|
application_id: generator.application_id
|
26
25
|
}
|
27
26
|
hash.merge!(generator.paths) if generator.paths
|
27
|
+
hash.merge!(sub: generator.subject) if generator.subject
|
28
28
|
hash.merge!(nbf: generator.nbf) if generator.nbf
|
29
29
|
hash.merge!(generator.additional_claims) if !generator.additional_claims.empty?
|
30
30
|
hash
|
@@ -54,7 +54,7 @@ module Vonage
|
|
54
54
|
@exp = params.fetch(:exp, nil)
|
55
55
|
@alg = params.fetch(:alg, 'RS256')
|
56
56
|
@paths = params.fetch(:paths, nil)
|
57
|
-
@subject = params.fetch(:subject,
|
57
|
+
@subject = params.fetch(:subject, nil)
|
58
58
|
@additional_claims = set_additional_claims(params)
|
59
59
|
@jwt = Vonage::JWT.new(generator: self)
|
60
60
|
|
data/lib/vonage-jwt/version.rb
CHANGED
data/vonage-jwt.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = 'Vonage JWT Generator for Ruby'
|
14
14
|
s.summary = 'This is the Ruby client library to generate Vonage JSON Web Tokens (JWTs).'
|
15
15
|
s.files = Dir.glob('lib/**/*.rb') + %w[LICENSE.txt README.md vonage-jwt.gemspec]
|
16
|
-
s.required_ruby_version = '>= 2.
|
16
|
+
s.required_ruby_version = '>= 2.5.0'
|
17
17
|
s.add_dependency('jwt', '~> 2')
|
18
18
|
s.require_path = 'lib'
|
19
19
|
s.metadata = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vonage-jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vonage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -55,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
55
|
requirements:
|
56
56
|
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: 2.
|
58
|
+
version: 2.5.0
|
59
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|