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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b5665cbae81656954965341e347265ec24dbba2c74a4a6cefc78c702b95db76
4
- data.tar.gz: 45b82e29a52f395c28f840b265bdda230a3c0ba96664a548a5eb012deac794c6
3
+ metadata.gz: 4e64f9df01478c092cf5f950c5fb61d56227a558cba788a693cffad050ed5a66
4
+ data.tar.gz: f72bd42ca910f5f6df52781eeb3d8d1ca658c261833bbe5ab68b3ef8f2571014
5
5
  SHA512:
6
- metadata.gz: 2349f5ed110817e516ea26321bd7d96709c59ed8ecc6936770f0ced07814f42d940311f2939f84f2fdd4d5786cc71bc302907943fdd4dc320bdffd55d4d8b71b
7
- data.tar.gz: 68f9685f53444321d00d6af8b23b0241d330ec46f6e9693919dd7b6418d6dbdb311a99c6ab6ac13fdcfb94211d81f8486796c413c557de64f16ed762c953d3dd
6
+ metadata.gz: e0fb624c08c1c06db4def2a97b50a10add0392f89f6279de7c5b70c987881f510720202b6b84a3d9365a61b32f43fb3783ed30aa95a31a5adc7d1bf08dcf5444
7
+ data.tar.gz: faa02b4e295b2a850191a956dbbe526c7feb498e3a51cd4ada6d9d66823036846e418092b06bf020e8cb7474bfa1f886a4fa47b30e2e746276ce49f62a9b6c43
@@ -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, '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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Vonage
4
4
  class JWT
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
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.7.0'
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.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: 2022-11-24 00:00:00.000000000 Z
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.7.0
58
+ version: 2.5.0
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="