twilito 0.3.1 → 0.3.3

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: b2f08b5829f031adf3297cd2affd3098a5ea36ab6b6f4afad2e6c7c3b252cc41
4
- data.tar.gz: 3bdc3c6ad79ab22d5eaa8eddae4bde8843598b0769a54ff4318409bf0505c66b
3
+ metadata.gz: 3cfb75e4c673aacee3f2e2d4d76bc4106c0129820825918b12f6ccd0c440a2bb
4
+ data.tar.gz: de0d9a0d43911c1db4cd3406aab39a4beb89f6f17d75e02b4dd0c13863c5bd8e
5
5
  SHA512:
6
- metadata.gz: 7a2da6ec5bd1cd861dc537868dcdec42e1820fd9813420b2b6ae70994f901dad1c032dd088334b89e2d8466d6905cd648770a6448b032e87c775e68ab1051268
7
- data.tar.gz: 2a8286b6f3de32eb14c81608b0beba3502759c2ea1c25c6d6441d72b2f16674333937e3c6b6f300994ba52ac35b763d1da2ffb04b68ca54782d983f0dde5d6f1
6
+ metadata.gz: 37fdc8154d808290a9b85c6d55a5a93905882d558203ebdd587148d6a2b9f4661cc5455287a86a3d0739792aee9cabbe58b58eefe150980e13bebcdcb2646479
7
+ data.tar.gz: 607ad6172943a0ddc9d8bdfd9ed51b78e9d3f1f005bb34a6003967b1c6b089013eec8974d48cebd4b699ca7a3ccc6a621fcdb696908d201c6322de5314376fc4
@@ -7,17 +7,14 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ '2.4.x', '2.5.x', '2.6.x', '2.7.x' ]
10
+ ruby: ["2.4", "2.5", "2.6", "2.7", "3.0"]
11
11
  name: Run Tests (Ruby ${{ matrix.ruby }})
12
12
  steps:
13
13
  - uses: actions/checkout@master
14
14
  - name: Setup ruby
15
- uses: actions/setup-ruby@v1
15
+ uses: ruby/setup-ruby@v1
16
16
  with:
17
17
  ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
18
19
  - name: Run tests
19
- run: |
20
- gem install bundler
21
- bundle
22
- rake
23
-
20
+ run: bundle exec rake
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twilito (0.3.1)
4
+ twilito (0.3.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -60,7 +60,7 @@ DEPENDENCIES
60
60
  yard (~> 0.9)
61
61
 
62
62
  RUBY VERSION
63
- ruby 2.6.1p33
63
+ ruby 2.7.2p137
64
64
 
65
65
  BUNDLED WITH
66
- 2.0.2
66
+ 2.2.14
data/README.md CHANGED
@@ -99,6 +99,20 @@ result = Twilito.send_sms(
99
99
 
100
100
  ```
101
101
 
102
+ #### Set the optional `callback_url` argument if you want to receive HTTP callbacks from Twilio
103
+
104
+ ```ruby
105
+ # Use the optional media_url argument, which is sent
106
+ # to Twilio as MediaUrl
107
+
108
+ result = Twilito.send_sms(
109
+ to: '+15555555555',
110
+ content: 'This is my content',
111
+ status_callback: 'https://your.app.io/sms/callback',
112
+ )
113
+
114
+ ```
115
+
102
116
  ## Testing your code
103
117
 
104
118
  _TODO: Add examples of mocking and/or test helpers for asserting your code sends an SMS_
data/lib/twilito/api.rb CHANGED
@@ -36,7 +36,8 @@ module Twilito
36
36
  'To' => args[:to],
37
37
  'From' => args[:from],
38
38
  'Body' => args[:body],
39
- 'MediaUrl' => args[:media_url]
39
+ 'MediaUrl' => args[:media_url],
40
+ 'StatusCallback' => args[:status_callback]
40
41
  }.compact
41
42
  end
42
43
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Twilito
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Ford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-11 00:00:00.000000000 Z
11
+ date: 2021-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  requirements: []
155
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.1.4
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: A tiny, zero dependency, and easy to test helper for sending text messages