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 +4 -4
- data/.github/workflows/main.yml +4 -7
- data/Gemfile.lock +3 -3
- data/README.md +14 -0
- data/lib/twilito/api.rb +2 -1
- data/lib/twilito/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cfb75e4c673aacee3f2e2d4d76bc4106c0129820825918b12f6ccd0c440a2bb
|
4
|
+
data.tar.gz: de0d9a0d43911c1db4cd3406aab39a4beb89f6f17d75e02b4dd0c13863c5bd8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37fdc8154d808290a9b85c6d55a5a93905882d558203ebdd587148d6a2b9f4661cc5455287a86a3d0739792aee9cabbe58b58eefe150980e13bebcdcb2646479
|
7
|
+
data.tar.gz: 607ad6172943a0ddc9d8bdfd9ed51b78e9d3f1f005bb34a6003967b1c6b089013eec8974d48cebd4b699ca7a3ccc6a621fcdb696908d201c6322de5314376fc4
|
data/.github/workflows/main.yml
CHANGED
@@ -7,17 +7,14 @@ jobs:
|
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
ruby: [
|
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:
|
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
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
data/lib/twilito/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|