twilio-ruby 5.52.0 → 5.67.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 +5 -5
- data/.github/workflows/pr-lint.yml +15 -0
- data/.github/workflows/test-and-deploy.yml +129 -0
- data/.gitignore +5 -1
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +91 -28
- data/CHANGES.md +563 -0
- data/Gemfile +1 -0
- data/Makefile +8 -11
- data/README.md +13 -6
- data/examples/examples.rb +1 -1
- data/lib/rack/twilio_webhook_authentication.rb +25 -1
- data/lib/twilio-ruby/http/http_client.rb +20 -4
- data/lib/twilio-ruby/http.rb +5 -0
- data/lib/twilio-ruby/jwt/access_token.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +23 -23
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +674 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +674 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +68 -14
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +12 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -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/api/v2010/account/message.rb +18 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +34 -7
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -8
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -8
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -8
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +10 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +275 -0
- data/lib/twilio-ruby/rest/chat/v3.rb +48 -0
- data/lib/twilio-ruby/rest/chat.rb +16 -0
- data/lib/twilio-ruby/rest/client.rb +21 -12
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +454 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +269 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +44 -0
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +23 -0
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -0
- data/lib/twilio-ruby/rest/conversations/v1.rb +24 -0
- data/lib/twilio-ruby/rest/conversations.rb +15 -0
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +12 -5
- data/lib/twilio-ruby/rest/events/v1/sink.rb +41 -5
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +28 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +55 -34
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +236 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +330 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +384 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +233 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +16 -0
- data/lib/twilio-ruby/rest/flex_api.rb +9 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +258 -0
- data/lib/twilio-ruby/rest/{fax → frontline_api}/v1.rb +11 -11
- data/lib/twilio-ruby/rest/{fax.rb → frontline_api.rb} +11 -11
- data/lib/twilio-ruby/rest/insights/v1/annotation.rb +271 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +434 -0
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +474 -0
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +512 -0
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +215 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +46 -0
- data/lib/twilio-ruby/rest/insights.rb +28 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +268 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +45 -0
- data/lib/twilio-ruby/rest/lookups.rb +7 -0
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +397 -0
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +406 -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 +403 -0
- data/lib/twilio-ruby/rest/media/v1.rb +76 -0
- data/lib/twilio-ruby/rest/media.rb +65 -0
- data/lib/twilio-ruby/rest/{fax/v1/fax/fax_media.rb → messaging/v1/brand_registration/brand_vetting.rb} +134 -95
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +127 -2
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +187 -20
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +6 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +37 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +268 -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 +128 -26
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +280 -0
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +37 -0
- data/lib/twilio-ruby/rest/pricing.rb +19 -0
- 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/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +372 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +44 -55
- data/lib/twilio-ruby/rest/supersim/v1/{command.rb → ip_command.rb} +132 -84
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +30 -1
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +23 -9
- data/lib/twilio-ruby/rest/supersim/v1.rb +23 -7
- data/lib/twilio-ruby/rest/supersim.rb +15 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -2
- 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/workflow/workflow_cumulative_statistics.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +38 -22
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +155 -10
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +12 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +74 -22
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +34 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +66 -31
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +25 -7
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +24 -5
- data/lib/twilio-ruby/rest/verify/v2/service.rb +40 -11
- data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +89 -21
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +234 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +14 -0
- data/lib/twilio-ruby/rest/verify.rb +14 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +21 -8
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -8
- data/lib/twilio-ruby/rest/video/v1/recording.rb +21 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +62 -5
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +184 -0
- data/lib/twilio-ruby/rest/voice/v1.rb +21 -0
- data/lib/twilio-ruby/rest/voice.rb +8 -0
- 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/rest.rb +13 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +727 -87
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +6 -16
- data/sonar-project.properties +13 -0
- data/twilio-ruby.gemspec +1 -2
- metadata +59 -32
- data/.travis.yml +0 -45
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -536
- /data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
- /data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
- /data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
- /data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
- /data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
- /data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
- /data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8d37fa716f009ccbc9d5ee9811fc3189a03e7bcb
|
4
|
+
data.tar.gz: 6b6131fc2557ddc198144eb055c7fad105e53d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcc67be6b13ac0862a1940c6efaeb8d4ce9a16d6f087d52c07e936ab041ca2557a35b2373358e2788a96c6d80f8fb70f313d09fb8eaffb50e809c5c68367cd8
|
7
|
+
data.tar.gz: 30b767d5f2657da4388f0f1dfee239d4badf1c516c0e4736094507c017c9a58603f75750c558730d5ab74604141c175ef4474b1bd726555a8c423d5157499487
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: Lint PR
|
2
|
+
on:
|
3
|
+
pull_request_target:
|
4
|
+
types: [ opened, edited, synchronize, reopened ]
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
validate:
|
8
|
+
name: Validate title
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: amannn/action-semantic-pull-request@v4
|
12
|
+
with:
|
13
|
+
types: chore docs fix feat test
|
14
|
+
env:
|
15
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
name: Test and Deploy
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ '*' ]
|
5
|
+
tags: [ '*' ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
schedule:
|
9
|
+
# Run automatically at 8AM PST Monday-Friday
|
10
|
+
- cron: '0 15 * * 1-5'
|
11
|
+
workflow_dispatch:
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
name: Test
|
16
|
+
runs-on: ubuntu-latest
|
17
|
+
timeout-minutes: 20
|
18
|
+
strategy:
|
19
|
+
matrix:
|
20
|
+
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'ruby-head', 'jruby-9.2' ]
|
21
|
+
steps:
|
22
|
+
- name: Checkout twilio-ruby
|
23
|
+
uses: actions/checkout@v2
|
24
|
+
with:
|
25
|
+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
26
|
+
|
27
|
+
- name: Set up Ruby
|
28
|
+
uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
bundler-cache: true
|
32
|
+
|
33
|
+
# Excludes incompatible versions of ruby
|
34
|
+
- name: Set up linter
|
35
|
+
run: bundle add rubocop --version "~> 1.24.1" --group "development" --skip-install
|
36
|
+
if: ${{ matrix.ruby != '2.4' }}
|
37
|
+
|
38
|
+
- run: bundle install --with development
|
39
|
+
- run: bundle exec rake install
|
40
|
+
|
41
|
+
- name: Run linter
|
42
|
+
run: bundle exec rubocop -d --cache true --parallel
|
43
|
+
if: ${{ matrix.ruby != '2.4' }}
|
44
|
+
|
45
|
+
- name: Run Unit Tests
|
46
|
+
run: make test
|
47
|
+
|
48
|
+
- name: Fix code coverage paths
|
49
|
+
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.ruby == '3.0' && !github.event.pull_request.head.repo.fork }}
|
50
|
+
working-directory: ./coverage
|
51
|
+
run: |
|
52
|
+
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.json
|
53
|
+
|
54
|
+
- name: SonarCloud Scan
|
55
|
+
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.ruby == '3.0' && !github.event.pull_request.head.repo.fork }}
|
56
|
+
uses: SonarSource/sonarcloud-github-action@master
|
57
|
+
env:
|
58
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
59
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
60
|
+
|
61
|
+
deploy:
|
62
|
+
name: Deploy
|
63
|
+
if: success() && github.ref_type == 'tag'
|
64
|
+
needs: [ test ]
|
65
|
+
runs-on: ubuntu-latest
|
66
|
+
steps:
|
67
|
+
- name: Checkout twilio-ruby
|
68
|
+
uses: actions/checkout@v2
|
69
|
+
with:
|
70
|
+
fetch-depth: 0
|
71
|
+
|
72
|
+
- name: Set up Ruby
|
73
|
+
uses: ruby/setup-ruby@v1
|
74
|
+
with:
|
75
|
+
ruby-version: 2.4
|
76
|
+
bundler-cache: true
|
77
|
+
|
78
|
+
- run: bundle install
|
79
|
+
|
80
|
+
- name: Login to Docker Hub
|
81
|
+
uses: docker/login-action@v1
|
82
|
+
with:
|
83
|
+
username: ${{ secrets.DOCKER_USERNAME }}
|
84
|
+
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
|
85
|
+
|
86
|
+
# The expression strips off the shortest match from the front of the string to yield just the tag name as the output
|
87
|
+
- name: Get tagged version
|
88
|
+
run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
89
|
+
|
90
|
+
- name: Create GitHub Release
|
91
|
+
uses: sendgrid/dx-automator/actions/release@main
|
92
|
+
env:
|
93
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
94
|
+
|
95
|
+
- name: Build and Push image
|
96
|
+
run: make docker-build && make docker-push
|
97
|
+
- name: Publish to Rubygems
|
98
|
+
env:
|
99
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
100
|
+
run: |
|
101
|
+
mkdir -p $HOME/.gem
|
102
|
+
touch $HOME/.gem/credentials
|
103
|
+
chmod 0600 $HOME/.gem/credentials
|
104
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
105
|
+
gem build *.gemspec
|
106
|
+
gem push *.gem
|
107
|
+
|
108
|
+
- name: Submit metric to Datadog
|
109
|
+
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
|
110
|
+
env:
|
111
|
+
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
112
|
+
|
113
|
+
notify-on-failure:
|
114
|
+
name: Slack notify on failure
|
115
|
+
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
|
116
|
+
needs: [ test, deploy ]
|
117
|
+
runs-on: ubuntu-latest
|
118
|
+
steps:
|
119
|
+
- uses: rtCamp/action-slack-notify@v2
|
120
|
+
env:
|
121
|
+
SLACK_COLOR: failure
|
122
|
+
SLACK_ICON_EMOJI: ':github:'
|
123
|
+
SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }}
|
124
|
+
SLACK_TITLE: Action Failure - ${{ github.repository }}
|
125
|
+
SLACK_USERNAME: GitHub Actions
|
126
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
127
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
128
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
129
|
+
MSG_MINIMAL: true
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2022-01-13 21:45:15 UTC using RuboCop version 1.24.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 2
|
10
10
|
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
12
12
|
# Include: **/*.gemspec
|
13
13
|
Gemspec/OrderedDependencies:
|
14
14
|
Exclude:
|
@@ -28,13 +28,6 @@ Layout/EmptyLineAfterGuardClause:
|
|
28
28
|
- 'lib/rack/twilio_webhook_authentication.rb'
|
29
29
|
- 'lib/twilio-ruby/framework/serialize.rb'
|
30
30
|
|
31
|
-
# Offense count: 1
|
32
|
-
# Cop supports --auto-correct.
|
33
|
-
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
34
|
-
Layout/ExtraSpacing:
|
35
|
-
Exclude:
|
36
|
-
- 'twilio-ruby.gemspec'
|
37
|
-
|
38
31
|
# Offense count: 2
|
39
32
|
# Cop supports --auto-correct.
|
40
33
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
@@ -53,6 +46,24 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
53
46
|
- 'spec/jwt/access_token_spec.rb'
|
54
47
|
- 'spec/jwt/client_capability_spec.rb'
|
55
48
|
|
49
|
+
# Offense count: 3
|
50
|
+
# Configuration parameters: AllowedMethods.
|
51
|
+
# AllowedMethods: enums
|
52
|
+
Lint/ConstantDefinitionInBlock:
|
53
|
+
Exclude:
|
54
|
+
- 'spec/jwt/client_capability_spec.rb'
|
55
|
+
- 'spec/rest/client_spec.rb'
|
56
|
+
|
57
|
+
# Offense count: 1
|
58
|
+
Lint/MissingSuper:
|
59
|
+
Exclude:
|
60
|
+
- 'lib/twilio-ruby/framework/rest/error.rb'
|
61
|
+
|
62
|
+
# Offense count: 1
|
63
|
+
Lint/SelfAssignment:
|
64
|
+
Exclude:
|
65
|
+
- 'lib/twilio-ruby/framework/rest/version.rb'
|
66
|
+
|
56
67
|
# Offense count: 1
|
57
68
|
# Cop supports --auto-correct.
|
58
69
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
@@ -66,10 +77,11 @@ Lint/UnusedBlockArgument:
|
|
66
77
|
Lint/UnusedMethodArgument:
|
67
78
|
Exclude:
|
68
79
|
- 'lib/twilio-ruby.rb'
|
69
|
-
- 'lib/twilio-ruby/framework/page.rb'
|
80
|
+
- 'lib/twilio-ruby/framework/rest/page.rb'
|
70
81
|
- 'spec/holodeck/holodeck.rb'
|
71
82
|
|
72
83
|
# Offense count: 1
|
84
|
+
# Cop supports --auto-correct.
|
73
85
|
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
74
86
|
Lint/UselessAccessModifier:
|
75
87
|
Exclude:
|
@@ -80,8 +92,14 @@ Lint/UselessAssignment:
|
|
80
92
|
Exclude:
|
81
93
|
- 'spec/rack/twilio_webhook_authentication_spec.rb'
|
82
94
|
|
95
|
+
# Offense count: 6
|
96
|
+
# Configuration parameters: Max, CountKeywordArgs.
|
97
|
+
Metrics/ParameterLists:
|
98
|
+
MaxOptionalParameters: 6
|
99
|
+
|
83
100
|
# Offense count: 1
|
84
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
101
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
102
|
+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
85
103
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
86
104
|
Naming/FileName:
|
87
105
|
Exclude:
|
@@ -89,20 +107,28 @@ Naming/FileName:
|
|
89
107
|
|
90
108
|
# Offense count: 2
|
91
109
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
92
|
-
# AllowedNames:
|
110
|
+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
93
111
|
Naming/MethodParameterName:
|
94
112
|
Exclude:
|
95
113
|
- 'lib/twilio-ruby/security/request_validator.rb'
|
96
114
|
|
97
115
|
# Offense count: 19
|
98
|
-
# Configuration parameters: EnforcedStyle.
|
116
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers.
|
99
117
|
# SupportedStyles: snake_case, camelCase
|
100
118
|
Naming/VariableName:
|
101
119
|
Exclude:
|
102
120
|
- 'spec/jwt/client_capability_spec.rb'
|
103
121
|
- 'spec/jwt/task_router_spec.rb'
|
104
122
|
|
105
|
-
# Offense count:
|
123
|
+
# Offense count: 3
|
124
|
+
# Cop supports --auto-correct.
|
125
|
+
Style/CaseLikeIf:
|
126
|
+
Exclude:
|
127
|
+
- 'lib/twilio-ruby/framework/serialize.rb'
|
128
|
+
- 'lib/twilio-ruby/jwt/task_router.rb'
|
129
|
+
|
130
|
+
# Offense count: 40
|
131
|
+
# Configuration parameters: AllowedConstants.
|
106
132
|
Style/Documentation:
|
107
133
|
Enabled: false
|
108
134
|
|
@@ -119,37 +145,59 @@ Style/ExpandPathArguments:
|
|
119
145
|
- 'spec/spec_helper.rb'
|
120
146
|
- 'twilio-ruby.gemspec'
|
121
147
|
|
122
|
-
# Offense count:
|
148
|
+
# Offense count: 24
|
123
149
|
# Cop supports --auto-correct.
|
124
150
|
# Configuration parameters: EnforcedStyle.
|
125
151
|
# SupportedStyles: always, always_true, never
|
126
152
|
Style/FrozenStringLiteralComment:
|
127
153
|
Enabled: false
|
128
154
|
|
155
|
+
# Offense count: 1
|
156
|
+
# Cop supports --auto-correct.
|
157
|
+
Style/GlobalStdStream:
|
158
|
+
Exclude:
|
159
|
+
- 'spec/rest/client_spec.rb'
|
160
|
+
|
129
161
|
# Offense count: 3
|
130
162
|
# Configuration parameters: MinBodyLength.
|
131
163
|
Style/GuardClause:
|
132
164
|
Exclude:
|
133
|
-
- 'lib/twilio-ruby/framework/page.rb'
|
165
|
+
- 'lib/twilio-ruby/framework/rest/page.rb'
|
134
166
|
|
135
|
-
# Offense count:
|
167
|
+
# Offense count: 2
|
136
168
|
# Cop supports --auto-correct.
|
137
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
169
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
138
170
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
171
|
+
# SupportedShorthandSyntax: always, never
|
139
172
|
Style/HashSyntax:
|
140
173
|
Exclude:
|
174
|
+
- 'Gemfile'
|
141
175
|
- 'spec/jwt/access_token_spec.rb'
|
142
176
|
|
143
|
-
# Offense count:
|
177
|
+
# Offense count: 13
|
144
178
|
# Cop supports --auto-correct.
|
145
179
|
Style/IfUnlessModifier:
|
146
180
|
Exclude:
|
147
|
-
- 'lib/twilio-ruby/framework/page.rb'
|
148
|
-
- 'lib/twilio-ruby/framework/version.rb'
|
181
|
+
- 'lib/twilio-ruby/framework/rest/page.rb'
|
182
|
+
- 'lib/twilio-ruby/framework/rest/version.rb'
|
149
183
|
- 'lib/twilio-ruby/jwt/access_token.rb'
|
150
184
|
- 'lib/twilio-ruby/jwt/client_capability.rb'
|
151
185
|
- 'lib/twilio-ruby/jwt/jwt.rb'
|
152
186
|
|
187
|
+
# Offense count: 3
|
188
|
+
# Cop supports --auto-correct.
|
189
|
+
Style/RedundantAssignment:
|
190
|
+
Exclude:
|
191
|
+
- 'lib/twilio-ruby/jwt/access_token.rb'
|
192
|
+
- 'lib/twilio-ruby/jwt/client_capability.rb'
|
193
|
+
- 'lib/twilio-ruby/jwt/task_router.rb'
|
194
|
+
|
195
|
+
# Offense count: 2
|
196
|
+
# Cop supports --auto-correct.
|
197
|
+
Style/RedundantFileExtensionInRequire:
|
198
|
+
Exclude:
|
199
|
+
- 'spec/spec_helper.rb'
|
200
|
+
|
153
201
|
# Offense count: 4
|
154
202
|
# Cop supports --auto-correct.
|
155
203
|
Style/RedundantFreeze:
|
@@ -168,20 +216,35 @@ Style/RedundantSelf:
|
|
168
216
|
# SupportedStyles: slashes, percent_r, mixed
|
169
217
|
Style/RegexpLiteral:
|
170
218
|
Exclude:
|
171
|
-
- 'lib/twilio-ruby/framework/domain.rb'
|
172
|
-
- 'lib/twilio-ruby/framework/helper.rb'
|
173
|
-
- 'lib/twilio-ruby/framework/version.rb'
|
219
|
+
- 'lib/twilio-ruby/framework/rest/domain.rb'
|
220
|
+
- 'lib/twilio-ruby/framework/rest/helper.rb'
|
221
|
+
- 'lib/twilio-ruby/framework/rest/version.rb'
|
174
222
|
- 'spec/rack/twilio_webhook_authentication_spec.rb'
|
175
223
|
|
176
|
-
# Offense count:
|
224
|
+
# Offense count: 12
|
225
|
+
# Cop supports --auto-correct.
|
226
|
+
# Configuration parameters: Mode.
|
227
|
+
Style/StringConcatenation:
|
228
|
+
Exclude:
|
229
|
+
- 'examples/print_call_log.rb'
|
230
|
+
- 'lib/twilio-ruby/framework/request.rb'
|
231
|
+
- 'lib/twilio-ruby/framework/rest/error.rb'
|
232
|
+
- 'lib/twilio-ruby/framework/serialize.rb'
|
233
|
+
- 'lib/twilio-ruby/http/http_client.rb'
|
234
|
+
- 'lib/twilio-ruby/jwt/client_capability.rb'
|
235
|
+
- 'spec/framework/request_spec.rb'
|
236
|
+
- 'spec/spec_helper.rb'
|
237
|
+
|
238
|
+
# Offense count: 7
|
177
239
|
# Cop supports --auto-correct.
|
178
240
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
179
241
|
# SupportedStyles: single_quotes, double_quotes
|
180
242
|
Style/StringLiterals:
|
181
243
|
Exclude:
|
244
|
+
- 'Gemfile'
|
182
245
|
- 'spec/framework/serialize_spec.rb'
|
183
246
|
|
184
|
-
# Offense count:
|
247
|
+
# Offense count: 15
|
185
248
|
# Cop supports --auto-correct.
|
186
249
|
# Configuration parameters: AllowNamedUnderscoreVariables.
|
187
250
|
Style/TrailingUnderscoreVariable:
|
@@ -190,7 +253,7 @@ Style/TrailingUnderscoreVariable:
|
|
190
253
|
- 'spec/jwt/client_capability_spec.rb'
|
191
254
|
- 'spec/jwt/task_router_spec.rb'
|
192
255
|
|
193
|
-
# Offense count:
|
256
|
+
# Offense count: 16
|
194
257
|
# Cop supports --auto-correct.
|
195
258
|
# Configuration parameters: MinSize, WordRegex.
|
196
259
|
# SupportedStyles: percent, brackets
|