vonage 7.8.0 → 7.8.2

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: 4fa13bcb2f12e1915f331b21aea4646d673622ea2a623daa9ef7b97ef6d64b9a
4
- data.tar.gz: c7a4129fe95ec0cd72d836f5b267e86429da90d86ba22f4a2b76b06f7a385798
3
+ metadata.gz: 263068d03f9527437cbee45239f7d51da8800b0003930002f6d10c6843f12828
4
+ data.tar.gz: 5fdcc6879830f92cabe656c05e050eacc9616f2b135af2ca7f128d57cef6fded
5
5
  SHA512:
6
- metadata.gz: c7e5cfd257e7b4595c3c2929fc1657e764eed720d0bdff3fba12efd3c852b66eee0f21c3aa424b685412af2dddcf11dfef9d6a13aada0716c5dfa479383ee26c
7
- data.tar.gz: 18b2657e9a2f371be7c5da6f299bf8e1c1d5e63e6a34fc6b72c468156bb2fb6b4cf93ca38630ce7ce85c41e20687c11980db00e9b1e7eecb0172b2c41b276afa
6
+ metadata.gz: 1beea2eeef06d2b8c9e6153fe5f356981e285f7c96bd8b3674af1ca09ae2fb606627c619bdaeec0803911590149fa63f6e581d59a03b7245b6f89e1ef914dac5
7
+ data.tar.gz: 12ce327c5db5735e357c5ad39f0ab850f0e3f490dc71cfb65065a0b61ad6586821ce70a79101e1448c2df62995b546285af3d6a8c255c3a89cad615b8c36b0fb
data/lib/vonage/gsm7.rb CHANGED
@@ -4,7 +4,7 @@ module Vonage
4
4
  module GSM7
5
5
  extend T::Sig
6
6
 
7
- CHARACTERS = "\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~ ¡£¤¥§¿ÄÅÆÉÑÖØÜßàäåæçèéìñòöøùüΓΔΘΛΞΠΣΦΨΩ€"
7
+ CHARACTERS = "\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~ ¡£¤¥§¿ÄÅÆÇÉÑÖØÜßàäåæèéìñòöøùüΓΔΘΛΞΠΣΦΨΩ€"
8
8
 
9
9
  REGEXP = /\A[#{Regexp.escape(CHARACTERS)}]*\z/
10
10
 
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 'nexmo-jwt'
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/Nexmo/nexmo-jwt-ruby
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 = Nexmo::JWTBuilder.new(payload).jwt.generate
40
+ @token = Vonage::JWTBuilder.new(payload).jwt.generate
41
41
  end
42
42
  end
43
43
  end
@@ -32,7 +32,7 @@ module Vonage
32
32
 
33
33
  signature = params.delete('sig')
34
34
 
35
- ::JWT::SecurityUtils.secure_compare(signature, digest(params, signature_method))
35
+ ::JWT::Algos::Hmac::SecurityUtils.secure_compare(signature, digest(params, signature_method))
36
36
  end
37
37
 
38
38
  private
data/lib/vonage/sms.rb CHANGED
@@ -47,14 +47,6 @@ module Vonage
47
47
  # @option params [String] :type
48
48
  # The format of the message body.
49
49
  #
50
- # @option params [String] :vcard
51
- # A business card in [vCard format](https://en.wikipedia.org/wiki/VCard).
52
- # Depends on **:type** option having the value `vcard`.
53
- #
54
- # @option params [String] :vcal
55
- # A calendar event in [vCal format](https://en.wikipedia.org/wiki/VCal).
56
- # Depends on **:type** option having the value `vcal`.
57
- #
58
50
  # @option params [String] :body
59
51
  # Hex encoded binary data.
60
52
  # Depends on **:type** option having the value `binary`.
@@ -67,18 +59,6 @@ module Vonage
67
59
  # The value of the [protocol identifier](https://en.wikipedia.org/wiki/GSM_03.40#Protocol_Identifier) to use.
68
60
  # Ensure that the value is aligned with **:udh**.
69
61
  #
70
- # @option params [String] :title
71
- # The title for a wappush SMS.
72
- # Depends on **:type** option having the value `wappush`.
73
- #
74
- # @option params [String] :url
75
- # The URL of your website.
76
- # Depends on **:type** option having the value `wappush`.
77
- #
78
- # @option params [String] :validity
79
- # The availability for an SMS in milliseconds.
80
- # Depends on **:type** option having the value `wappush`.
81
- #
82
62
  # @option params [String] :client_ref
83
63
  # You can optionally include your own reference of up to 40 characters.
84
64
  #
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
 
3
3
  module Vonage
4
- VERSION = '7.8.0'
4
+ VERSION = '7.8.2'
5
5
  end
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('nexmo-jwt', '~> 0.1.2')
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.0
4
+ version: 7.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vonage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: nexmo-jwt
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.2
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.2
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.7
195
+ rubygems_version: 3.4.1
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