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.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/deploy.yml +63 -0
  3. data/.github/workflows/test.yml +51 -0
  4. data/.gitignore +2 -1
  5. data/.yardoc/checksums +532 -0
  6. data/.yardoc/complete +0 -0
  7. data/.yardoc/object_types +0 -0
  8. data/.yardoc/objects/root.dat +0 -0
  9. data/.yardoc/proxy_types +0 -0
  10. data/CHANGES.md +87 -0
  11. data/Makefile +3 -4
  12. data/README.md +4 -4
  13. data/lib/twilio-ruby/jwt/access_token.rb +13 -0
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
  15. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
  18. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
  20. data/lib/twilio-ruby/rest/client.rb +7 -0
  21. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
  22. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  23. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +36 -36
  24. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
  25. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
  26. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
  27. data/lib/twilio-ruby/rest/media/v1.rb +60 -0
  28. data/lib/twilio-ruby/rest/media.rb +56 -0
  29. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
  30. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +69 -2
  31. data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
  32. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
  33. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
  34. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
  35. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  36. data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
  37. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
  38. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
  39. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
  40. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -2
  41. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
  42. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +4 -4
  43. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +3 -3
  44. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +16 -6
  45. data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -3
  46. data/lib/twilio-ruby/rest/verify/v2/{verification_template.rb → template.rb} +25 -25
  47. data/lib/twilio-ruby/rest/verify/v2.rb +4 -4
  48. data/lib/twilio-ruby/rest/verify.rb +3 -3
  49. data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
  50. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  51. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
  52. data/lib/twilio-ruby/version.rb +1 -1
  53. metadata +21 -5
  54. data/.travis.yml +0 -56
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b68be613ab026b175153631f08f947c1ee6562598403db4342b6491f0bcf0129
4
- data.tar.gz: 64c3f0611af7b5f1081bd8f3223ddc6e2b8943ec9c9a4dcec29b9c90f8e44733
2
+ SHA1:
3
+ metadata.gz: 2f67e55070e1d0eddd733aab27eb25aaac27b3ca
4
+ data.tar.gz: 8152831ec638b70b0bae3a6596080c1fa6c7ced9
5
5
  SHA512:
6
- metadata.gz: 4a81512308a0ad242a0ce4b5d2f5757a6992d77ac2bca32c1d55ac5d77f6b333e0dd570335bf1103d899c02f323892d18222ba985f81716e7b064d30adedd36c
7
- data.tar.gz: cdf6e05cb8d5aa9556e1adb3390e80f2a31e464fd3ad55895c47ae44d7b8b22ae917ca8fa83345ab5c7597cac09d6ba40b058eb7150b113e274d66d7b137eebb
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
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  *~
2
- .*
3
2
  !.rubocop_todo.yml
4
3
  !.rubocop.yml
5
4
  !.travis.yml
@@ -12,5 +11,7 @@ bin
12
11
  docs/_build
13
12
  *.bak
14
13
  *.iml
14
+ .bundle
15
+ .rakeTasks
15
16
 
16
17
  coverage