chat_sdk-twilio 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chat_sdk/twilio/adapter.rb +1 -9
- data/lib/chat_sdk/twilio/signature.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15b18622e50db8aacb64ad1523b6328076a2d9b5db220b4b13eefaf539406c2b
|
|
4
|
+
data.tar.gz: a29d0b1d2a68e3ecd65e98fe09407a46ed0c6f6a35c21dbf995ea58b55261b98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f59018882089a98c4d5abeff58779043ebd5abf709f25b259352225d5b4e6f388392487d1dc579be8a7663e4391cd25b41376adb26c4db169d31b2a818f3082f
|
|
7
|
+
data.tar.gz: 515fcbb1a5e71c19bec2df988a54cbe1e229d3a1aa66ddf8112f788b4a049af253c0caa74a75252e9489541adf594338e12636bdd837c32e78ad189501abc4fc
|
|
@@ -5,7 +5,7 @@ require "rack/utils"
|
|
|
5
5
|
module ChatSDK
|
|
6
6
|
module Twilio
|
|
7
7
|
class Adapter < ChatSDK::Adapter::Base
|
|
8
|
-
capabilities :direct_messages
|
|
8
|
+
capabilities :direct_messages
|
|
9
9
|
|
|
10
10
|
attr_reader :client
|
|
11
11
|
|
|
@@ -72,14 +72,6 @@ module ChatSDK
|
|
|
72
72
|
parse_twilio_message(result, channel_id)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
def upload_file(channel_id:, io:, filename:, thread_id: nil, comment: nil) # rubocop:disable Lint/UnusedMethodArgument
|
|
76
|
-
raise ChatSDK::PlatformError.new(
|
|
77
|
-
"Twilio MMS requires a publicly accessible MediaUrl. Binary upload is not supported. " \
|
|
78
|
-
"Host the file at a public URL and send it as a message with the URL included.",
|
|
79
|
-
adapter_name: :twilio
|
|
80
|
-
)
|
|
81
|
-
end
|
|
82
|
-
|
|
83
75
|
def open_dm(user_id)
|
|
84
76
|
user_id
|
|
85
77
|
end
|
|
@@ -8,7 +8,7 @@ module ChatSDK
|
|
|
8
8
|
module Twilio
|
|
9
9
|
module Signature
|
|
10
10
|
def self.verify!(auth_token, url, params, signature)
|
|
11
|
-
data = url + params.sort.flatten.join
|
|
11
|
+
data = url + params.sort.flatten.join # rubocop:disable Style/RedundantArrayFlatten
|
|
12
12
|
digest = OpenSSL::HMAC.digest("SHA1", auth_token, data)
|
|
13
13
|
expected = Base64.strict_encode64(digest)
|
|
14
14
|
|