vonage 7.8.0 → 7.8.1
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.rb +3 -3
- data/lib/vonage/version.rb +1 -1
- data/vonage.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16cb2584a98415fd28d34ff48e122bba7e74dc3274f3ccbce54e573bb5639d75
|
4
|
+
data.tar.gz: 4dde646ce5357983ac61bd80981e758875f0289e535afdb1b961c230895489b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5cc6037fcc81f6ce5cd99ec6b61a0a237fd94502dd85bd5a7e98bbc768834b8108babc3d4f81ff1f85fc9668d41165b3464f20f1218295b3a462d5343d4482
|
7
|
+
data.tar.gz: 464c94d4e284b83c68796f6324ec54a8e0c70d93537b800f8b140d5425db14f575369b1a500e2595cce0559371d363033508cce9c49737bbb6a20be238b0a10e
|
data/lib/vonage/jwt.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
require 'securerandom'
|
4
4
|
require 'openssl'
|
5
|
-
require '
|
5
|
+
require 'vonage-jwt'
|
6
6
|
|
7
7
|
module Vonage
|
8
8
|
class JWT
|
@@ -15,7 +15,7 @@ module Vonage
|
|
15
15
|
# attribute on the client object.
|
16
16
|
#
|
17
17
|
# Documentation for the Vonage Ruby JWT generator gem can be found at
|
18
|
-
# https://www.rubydoc.info/github/
|
18
|
+
# https://www.rubydoc.info/github/Vonage/vonage-jwt-ruby
|
19
19
|
#
|
20
20
|
# @example
|
21
21
|
# claims = {
|
@@ -37,7 +37,7 @@ module Vonage
|
|
37
37
|
raise "Expecting 'private_key' in either the payload or as a separate parameter" if !payload[:private_key] && !private_key
|
38
38
|
|
39
39
|
payload[:private_key] = private_key if private_key && !payload[:private_key]
|
40
|
-
@token =
|
40
|
+
@token = Vonage::JWTBuilder.new(payload).jwt.generate
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
data/lib/vonage/version.rb
CHANGED
data/vonage.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = 'This is the Ruby Server SDK for Vonage APIs. To use it you\'ll need a Vonage account. Sign up for free at https://www.vonage.com'
|
13
13
|
s.files = Dir.glob('lib/**/*.rb') + %w(LICENSE.txt README.md vonage.gemspec)
|
14
14
|
s.required_ruby_version = '>= 2.5.0'
|
15
|
-
s.add_dependency('
|
15
|
+
s.add_dependency('vonage-jwt', '~> 0.1.0')
|
16
16
|
s.add_dependency('zeitwerk', '~> 2', '>= 2.2')
|
17
17
|
s.add_dependency('sorbet-runtime', '~> 0.5')
|
18
18
|
s.add_runtime_dependency('rexml')
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vonage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.8.
|
4
|
+
version: 7.8.1
|
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
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: vonage-jwt
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: zeitwerk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
|
-
rubygems_version: 3.3.
|
195
|
+
rubygems_version: 3.3.26
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: This is the Ruby Server SDK for Vonage APIs. To use it you'll need a Vonage
|