diff --git a/CHANGES.md b/CHANGES.md index aed9354e..8ff78ab1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +# 7.8.2 + +* Updates the GSM::CHARACTERS constant to remove `ç` and instead add `Ç`. Fixes [#256](https://github.com/Vonage/vonage-ruby-sdk/issues/255) +* Updates code comments for `SMS#send` method to remove properties for unsupported message types `vCal`, `vCard`, and `wappush` +* Updates namespacing for referencing `SecurityUtils#secure_compare` method due to change in `ruby-jwt ` gem dependency. + # 7.8.1 * Changes JWT library dependency from `nexmo-jwt-ruby` to `conage-jwt-ruby`. See PR [#251](https://github.com/Vonage/vonage-ruby-sdk/pull/251) diff --git a/lib/vonage/gsm7.rb b/lib/vonage/gsm7.rb index f8e7485f..63d4abb7 100644 --- a/lib/vonage/gsm7.rb +++ b/lib/vonage/gsm7.rb @@ -4,7 +4,7 @@ module Vonage module GSM7 extend T::Sig - CHARACTERS = "\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~ ¡£¤¥§¿ÄÅÆÉÑÖØÜßàäåæçèéìñòöøùüΓΔΘΛΞΠΣΦΨΩ€" + CHARACTERS = "\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~ ¡£¤¥§¿ÄÅÆÇÉÑÖØÜßàäåæèéìñòöøùüΓΔΘΛΞΠΣΦΨΩ€" REGEXP = /\A[#{Regexp.escape(CHARACTERS)}]*\z/ diff --git a/lib/vonage/signature.rb b/lib/vonage/signature.rb index 94f9e2df..a9621d50 100644 --- a/lib/vonage/signature.rb +++ b/lib/vonage/signature.rb @@ -32,7 +32,7 @@ def check(params, signature_method: @config.signature_method) signature = params.delete('sig') - ::JWT::SecurityUtils.secure_compare(signature, digest(params, signature_method)) + ::JWT::Algos::Hmac::SecurityUtils.secure_compare(signature, digest(params, signature_method)) end private diff --git a/lib/vonage/sms.rb b/lib/vonage/sms.rb index b0d62977..c4fa2a29 100644 --- a/lib/vonage/sms.rb +++ b/lib/vonage/sms.rb @@ -47,14 +47,6 @@ class SMS < Namespace # @option params [String] :type # The format of the message body. # - # @option params [String] :vcard - # A business card in [vCard format](https://en.wikipedia.org/wiki/VCard). - # Depends on **:type** option having the value `vcard`. - # - # @option params [String] :vcal - # A calendar event in [vCal format](https://en.wikipedia.org/wiki/VCal). - # Depends on **:type** option having the value `vcal`. - # # @option params [String] :body # Hex encoded binary data. # Depends on **:type** option having the value `binary`. @@ -67,18 +59,6 @@ class SMS < Namespace # The value of the [protocol identifier](https://en.wikipedia.org/wiki/GSM_03.40#Protocol_Identifier) to use. # Ensure that the value is aligned with **:udh**. # - # @option params [String] :title - # The title for a wappush SMS. - # Depends on **:type** option having the value `wappush`. - # - # @option params [String] :url - # The URL of your website. - # Depends on **:type** option having the value `wappush`. - # - # @option params [String] :validity - # The availability for an SMS in milliseconds. - # Depends on **:type** option having the value `wappush`. - # # @option params [String] :client_ref # You can optionally include your own reference of up to 40 characters. # diff --git a/lib/vonage/version.rb b/lib/vonage/version.rb index 480825b7..ef4e2370 100644 --- a/lib/vonage/version.rb +++ b/lib/vonage/version.rb @@ -1,5 +1,5 @@ # typed: strong module Vonage - VERSION = '7.8.1' + VERSION = '7.8.2' end