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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21bad3d99ab33873fc54e54fc57e33b3171cfa946fc39845962b1e174b347685
4
- data.tar.gz: acc910c814fb03b916e684afcf16c56d29f479569a67e9a0691f7029400c6df5
3
+ metadata.gz: 15b18622e50db8aacb64ad1523b6328076a2d9b5db220b4b13eefaf539406c2b
4
+ data.tar.gz: a29d0b1d2a68e3ecd65e98fe09407a46ed0c6f6a35c21dbf995ea58b55261b98
5
5
  SHA512:
6
- metadata.gz: 3f1ea62aed56dfcd1edc793ad86e59160dc6e045ac5cfae0d9b8938da22d49fb854573c912d927ccc5ee3d5d167c6639d80f901d3a5b98cc6aa54d852c731464
7
- data.tar.gz: 7b15c533e2cb0807524d66b19ad9bcd7d17926e2571f9b8ead7cf810f4c720014733839fcaeab6dbeada15030ce674e0a1339b3219e3a81ce0bc76775bb55220
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, :file_uploads
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chat_sdk-twilio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quentin Rousseau