stealth-twilio 0.9.7 → 0.10.0

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: 3db80948b7de5320c1df8a43395c3f7733423b7da0dd9d82b7fd1b2882a2998d
4
- data.tar.gz: c93024094e9966e3f7e9ecc75508b7fdb5e3552d81cad88df7bc5196354ff551
3
+ metadata.gz: fd0a1632b69f594f142ba3e96e9aeb23264c228568fbd05f2fe2fc8dcd63c84b
4
+ data.tar.gz: 6649cc6183d02e8779531017b7b75fafa379b536d23803ab52827009b1e1aa0f
5
5
  SHA512:
6
- metadata.gz: 21c82b2def97e193e5edae4b6586af40620adb880cef853b67567e529573e29927b4a46e1ce0fe8b50f5ffc7fb4d826796c877b7d596e820db0cf927d8241d3c
7
- data.tar.gz: 25a203255e492ce09d5dc8da20f14cb2dfdb34d00942cc450ecf881c91b2d049dde7f2f0714d280b1689fd5548dcad47d1fa05724a22ae7319fbeba8b82fd265
6
+ metadata.gz: 0f4b9160892af2a14844b6188dd30ccaca85937883f90cbab7364d51a483f66efe0868b59cac04062ec064080f490585bfcc742d33f5e0ce78e6e684c3915b10
7
+ data.tar.gz: 8f1c1784e6475319212d33d06e11c64b79263cf300acd1c0502f50cce37e1ab94e84a7bff965ea560677d6b314fcdbd08bfcd67ab82a3f93c3098da95f945e1f
data/README.md CHANGED
@@ -10,9 +10,10 @@ The [Stealth](https://github.com/hellostealth/stealth) Twilio SMS driver adds th
10
10
  * Image
11
11
  * Audio
12
12
  * Video
13
+ * File
13
14
  * Delay
14
15
 
15
- Image, Audio, and Video reply types will leverage the MMS protocol. It is recommended by Twilio that
16
+ Image, Audio, Video, and File reply types will leverage the MMS protocol. It is recommended by Twilio that
16
17
  the content is limited to images, however, this is the full list of supported content types: https://www.twilio.com/docs/api/messaging/accepted-mime-types.
17
18
 
18
-
19
+ If you store your files on S3, please make sure you have set the `content-type` appropriately or Twilio might reject your media.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.7
1
+ 0.10.0
@@ -38,6 +38,12 @@ module Stealth
38
38
  format_response({ body: reply['text'], media_url: reply['video_url'] })
39
39
  end
40
40
 
41
+ def file
42
+ check_text_length
43
+
44
+ format_response({ body: reply['text'], media_url: reply['file_url'] })
45
+ end
46
+
41
47
  def delay
42
48
 
43
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth-twilio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Gomes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-06 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stealth