twilio-ruby 5.58.2 → 5.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/deploy.yml +63 -0
- data/.github/workflows/test.yml +51 -0
- data/.gitignore +2 -1
- data/.yardoc/checksums +532 -0
- data/.yardoc/complete +0 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/CHANGES.md +87 -0
- data/Makefile +3 -4
- data/README.md +4 -4
- data/lib/twilio-ruby/jwt/access_token.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +36 -36
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
- data/lib/twilio-ruby/rest/media/v1.rb +60 -0
- data/lib/twilio-ruby/rest/media.rb +56 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +69 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +16 -6
- data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -3
- data/lib/twilio-ruby/rest/verify/v2/{verification_template.rb → template.rb} +25 -25
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -4
- data/lib/twilio-ruby/rest/verify.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +21 -5
- data/.travis.yml +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2f67e55070e1d0eddd733aab27eb25aaac27b3ca
|
4
|
+
data.tar.gz: 8152831ec638b70b0bae3a6596080c1fa6c7ced9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4386a3cee85ffba9015d8eb0aba9012fbe5e8465635f96bfe563fafbd2aa6d99c0b4228a6b8dfca7fb958c16175b079eaa44e9c06d1944fdc8fdd630de3f58af
|
7
|
+
data.tar.gz: f57664647dd26b987cd3cc45b6ff2035880bb324acc1b790a9271d66bdbdc7ca12d73164be50fe023e11ece500db1044717db855006791569b903f7d42cdf927
|
@@ -0,0 +1,63 @@
|
|
1
|
+
name: Deploy
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
tags:
|
5
|
+
- '*'
|
6
|
+
workflow_dispatch:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
deploy:
|
10
|
+
name: Deploy to Rubygems
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Checkout twilio-ruby
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
|
16
|
+
- name: Login to Docker Hub
|
17
|
+
uses: docker/login-action@v1
|
18
|
+
with:
|
19
|
+
username: ${{ secrets.DOCKER_USERNAME }}
|
20
|
+
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
|
21
|
+
|
22
|
+
# The expression strips off the shortest match from the front of the string to yield just the tag name as the output
|
23
|
+
- name: Get tagged version
|
24
|
+
run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
25
|
+
|
26
|
+
- name: Build and Push image
|
27
|
+
run: make docker-build && make docker-push
|
28
|
+
|
29
|
+
- name: Set up Ruby
|
30
|
+
uses: ruby/setup-ruby@v1
|
31
|
+
with:
|
32
|
+
ruby-version: 2.4
|
33
|
+
bundler-cache: true
|
34
|
+
|
35
|
+
- run: bundle install
|
36
|
+
- name: Publish to Rubygems
|
37
|
+
env:
|
38
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
39
|
+
run: |
|
40
|
+
mkdir -p $HOME/.gem
|
41
|
+
touch $HOME/.gem/credentials
|
42
|
+
chmod 0600 $HOME/.gem/credentials
|
43
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
44
|
+
gem build *.gemspec
|
45
|
+
gem push *.gem
|
46
|
+
|
47
|
+
notify-on-failure:
|
48
|
+
name: Slack notify on failure
|
49
|
+
if: ${{ failure() }}
|
50
|
+
needs: [deploy]
|
51
|
+
runs-on: ubuntu-latest
|
52
|
+
steps:
|
53
|
+
- uses: rtCamp/action-slack-notify@v2
|
54
|
+
env:
|
55
|
+
SLACK_COLOR: ${{ needs.deploy.status }}
|
56
|
+
SLACK_ICON_EMOJI: ':github:'
|
57
|
+
SLACK_MESSAGE: ${{ format('Failed to publish {1} to RubyGems{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }}
|
58
|
+
SLACK_TITLE: Deployment Failure
|
59
|
+
SLACK_USERNAME: GitHub Actions
|
60
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
61
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
62
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
63
|
+
MSG_MINIMAL: true
|
@@ -0,0 +1,51 @@
|
|
1
|
+
name: Tests
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ '*' ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ main ]
|
7
|
+
schedule:
|
8
|
+
# Run automatically at 8AM PST Monday-Friday
|
9
|
+
- cron: '0 15 * * 1-5'
|
10
|
+
workflow_dispatch:
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
name: Test
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
timeout-minutes: 20
|
17
|
+
strategy:
|
18
|
+
matrix:
|
19
|
+
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', ruby-head, jruby-9.2]
|
20
|
+
steps:
|
21
|
+
- name: Checkout twilio-ruby
|
22
|
+
uses: actions/checkout@v2
|
23
|
+
|
24
|
+
- name: Set up Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.ruby }}
|
28
|
+
bundler-cache: true
|
29
|
+
|
30
|
+
- run: bundle install --with development
|
31
|
+
- run: bundle exec rake install
|
32
|
+
- name: Run Unit Tests
|
33
|
+
run: make test
|
34
|
+
|
35
|
+
notify-on-failure:
|
36
|
+
name: Slack notify on failure
|
37
|
+
if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
|
38
|
+
needs: [test]
|
39
|
+
runs-on: ubuntu-latest
|
40
|
+
steps:
|
41
|
+
- uses: rtCamp/action-slack-notify@v2
|
42
|
+
env:
|
43
|
+
SLACK_COLOR: ${{ needs.test.status }}
|
44
|
+
SLACK_ICON_EMOJI: ':github:'
|
45
|
+
SLACK_MESSAGE: ${{ format('Build {2} in {1} failed{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }}
|
46
|
+
SLACK_TITLE: Build Failure
|
47
|
+
SLACK_USERNAME: GitHub Actions
|
48
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
49
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
50
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
51
|
+
MSG_MINIMAL: true
|