sendgrid-ruby 1.1.6 → 6.6.2
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/.env_sample +1 -3
- data/.github/ISSUE_TEMPLATE/config.yml +10 -0
- data/.github/workflows/test-and-deploy.yml +120 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +5 -27
- data/.rubocop_todo.yml +127 -0
- data/CHANGELOG.md +417 -1
- data/CODE_OF_CONDUCT.md +73 -0
- data/CONTRIBUTING.md +202 -0
- data/Dockerfile +14 -0
- data/FIRST_TIMERS.md +79 -0
- data/Gemfile +4 -4
- data/ISSUE_TEMPLATE.md +30 -0
- data/LICENSE +21 -0
- data/Makefile +14 -0
- data/PULL_REQUEST_TEMPLATE.md +31 -0
- data/README.md +153 -229
- data/Rakefile +9 -3
- data/TROUBLESHOOTING.md +151 -0
- data/UPGRADE.md +5 -0
- data/USAGE.md +5144 -0
- data/config.ru +4 -0
- data/examples/accesssettings/accesssettings.rb +80 -0
- data/examples/alerts/alerts.rb +59 -0
- data/examples/apikeys/apikeys.rb +81 -0
- data/examples/asm/asm.rb +170 -0
- data/examples/browsers/browsers.rb +13 -0
- data/examples/campaigns/campaigns.rb +150 -0
- data/examples/categories/categories.rb +33 -0
- data/examples/clients/clients.rb +24 -0
- data/examples/contactdb/contactdb.rb +392 -0
- data/examples/devices/devices.rb +13 -0
- data/examples/emailactivity/emailactivity.rb +52 -0
- data/examples/geo/geo.rb +13 -0
- data/examples/helpers/eventwebhook/example.rb +16 -0
- data/examples/helpers/mail/example.rb +158 -0
- data/examples/helpers/settings/example.rb +23 -0
- data/examples/helpers/stats/example.rb +42 -0
- data/examples/ips/ips.rb +164 -0
- data/examples/mail/mail.rb +170 -0
- data/examples/mailboxproviders/mailboxproviders.rb +13 -0
- data/examples/mailsettings/mailsettings.rb +216 -0
- data/examples/partnersettings/partnersettings.rb +36 -0
- data/examples/scopes/scopes.rb +59 -0
- data/examples/senderauthentication/senderauthentication.rb +307 -0
- data/examples/senders/senders.rb +95 -0
- data/examples/stats/stats.rb +13 -0
- data/examples/subusers/subusers.rb +166 -0
- data/examples/suppression/suppression.rb +198 -0
- data/examples/templates/templates.rb +127 -0
- data/examples/trackingsettings/trackingsettings.rb +107 -0
- data/examples/user/user.rb +290 -0
- data/gemfiles/Sinatra_1.gemfile +6 -0
- data/gemfiles/Sinatra_2.gemfile +6 -0
- data/lib/rack/sendgrid_webhook_verification.rb +55 -0
- data/lib/sendgrid/base_interface.rb +40 -0
- data/lib/sendgrid/helpers/eventwebhook/eventwebhook.rb +50 -0
- data/lib/sendgrid/helpers/inbound/README.md +98 -0
- data/lib/sendgrid/helpers/inbound/app.rb +32 -0
- data/lib/sendgrid/helpers/inbound/config.yml +26 -0
- data/lib/sendgrid/helpers/inbound/public/index.html +10 -0
- data/lib/sendgrid/helpers/inbound/sample_data/default_data.txt +58 -0
- data/lib/sendgrid/helpers/inbound/sample_data/raw_data.txt +57 -0
- data/lib/sendgrid/helpers/inbound/sample_data/raw_data_with_attachments.txt +298 -0
- data/lib/sendgrid/helpers/inbound/send.rb +26 -0
- data/lib/sendgrid/helpers/ip_management/ip_management.rb +17 -0
- data/lib/sendgrid/helpers/mail/README.md +14 -0
- data/lib/sendgrid/helpers/mail/asm.rb +19 -0
- data/lib/sendgrid/helpers/mail/attachment.rb +55 -0
- data/lib/sendgrid/helpers/mail/bcc_settings.rb +19 -0
- data/lib/sendgrid/helpers/mail/bypass_list_management.rb +31 -0
- data/lib/sendgrid/helpers/mail/category.rb +18 -0
- data/lib/sendgrid/helpers/mail/click_tracking.rb +19 -0
- data/lib/sendgrid/helpers/mail/content.rb +19 -0
- data/lib/sendgrid/helpers/mail/custom_arg.rb +18 -0
- data/lib/sendgrid/helpers/mail/email.rb +32 -0
- data/lib/sendgrid/helpers/mail/footer.rb +21 -0
- data/lib/sendgrid/helpers/mail/ganalytics.rb +28 -0
- data/lib/sendgrid/helpers/mail/header.rb +18 -0
- data/lib/sendgrid/helpers/mail/mail.rb +122 -0
- data/lib/sendgrid/helpers/mail/mail_settings.rb +45 -0
- data/lib/sendgrid/helpers/mail/open_tracking.rb +19 -0
- data/lib/sendgrid/helpers/mail/personalization.rb +93 -0
- data/lib/sendgrid/helpers/mail/section.rb +18 -0
- data/lib/sendgrid/helpers/mail/spam_check.rb +21 -0
- data/lib/sendgrid/helpers/mail/subscription_tracking.rb +23 -0
- data/lib/sendgrid/helpers/mail/substitution.rb +18 -0
- data/lib/sendgrid/helpers/mail/tracking_settings.rb +39 -0
- data/lib/sendgrid/helpers/permissions/scope.rb +28 -0
- data/lib/sendgrid/helpers/permissions/scopes.yml +309 -0
- data/lib/sendgrid/helpers/settings/README.md +14 -0
- data/lib/sendgrid/helpers/settings/mail_settings_dto.rb +13 -0
- data/lib/sendgrid/helpers/settings/partner_settings_dto.rb +13 -0
- data/lib/sendgrid/helpers/settings/settings.rb +28 -0
- data/lib/sendgrid/helpers/settings/tracking_settings_dto.rb +22 -0
- data/lib/sendgrid/helpers/settings/user_settings_dto.rb +13 -0
- data/lib/sendgrid/helpers/stats/email_stats.rb +46 -0
- data/lib/sendgrid/helpers/stats/metrics.rb +33 -0
- data/lib/sendgrid/helpers/stats/stats_response.rb +29 -0
- data/lib/sendgrid/sendgrid.rb +21 -0
- data/lib/sendgrid/twilio_email.rb +21 -0
- data/lib/sendgrid/version.rb +1 -1
- data/lib/sendgrid-ruby.rb +32 -7
- data/mail_helper_v3.md +390 -0
- data/sendgrid-ruby.gemspec +16 -20
- data/spec/fixtures/event_webhook.rb +22 -0
- data/spec/rack/sendgrid_webhook_verification_spec.rb +142 -0
- data/spec/sendgrid/helpers/eventwebhook/eventwebhook_spec.rb +105 -0
- data/spec/sendgrid/helpers/ip_management/ip_management_spec.rb +12 -0
- data/spec/sendgrid/helpers/settings/mail_settings_dto_spec.rb +32 -0
- data/spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb +24 -0
- data/spec/sendgrid/helpers/settings/settings_spec.rb +25 -0
- data/spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb +27 -0
- data/spec/sendgrid/helpers/settings/user_settings_dto_spec.rb +24 -0
- data/spec/sendgrid/helpers/stats/email_stats_spec.rb +111 -0
- data/spec/sendgrid/helpers/stats/metrics_spec.rb +45 -0
- data/spec/sendgrid/helpers/stats/stats_response_spec.rb +75 -0
- data/spec/sendgrid/sendgrid_spec.rb +11 -0
- data/spec/sendgrid/twilio_email_spec.rb +11 -0
- data/spec/spec_helper.rb +12 -1
- data/static/img/github-fork.png +0 -0
- data/static/img/github-sign-up.png +0 -0
- data/test/sendgrid/helpers/mail/test_attachment.rb +33 -0
- data/test/sendgrid/helpers/mail/test_category.rb +25 -0
- data/test/sendgrid/helpers/mail/test_email.rb +41 -0
- data/test/sendgrid/helpers/mail/test_mail.rb +260 -0
- data/test/sendgrid/helpers/mail/test_personalizations.rb +214 -0
- data/test/sendgrid/permissions/test_scopes.rb +36 -0
- data/test/sendgrid/test_sendgrid-ruby.rb +2729 -0
- data/twilio_sendgrid_logo.png +0 -0
- data/use-cases/README.md +17 -0
- data/use-cases/domain-authentication.md +5 -0
- data/use-cases/email-statistics.md +52 -0
- data/use-cases/legacy-templates.md +98 -0
- data/use-cases/personalizations.md +34 -0
- data/use-cases/sms.md +39 -0
- data/use-cases/transactional-templates.md +111 -0
- data/use-cases/twilio-email.md +13 -0
- data/use-cases/twilio-setup.md +54 -0
- metadata +187 -112
- data/.rspec +0 -2
- data/.travis.yml +0 -20
- data/FETCH_HEAD +0 -0
- data/Guardfile +0 -10
- data/LICENSE.txt +0 -22
- data/example.rb +0 -41
- data/lib/sendgrid/client.rb +0 -62
- data/lib/sendgrid/exceptions.rb +0 -7
- data/lib/sendgrid/mail.rb +0 -182
- data/lib/sendgrid/recipient.rb +0 -29
- data/lib/sendgrid/response.rb +0 -14
- data/lib/sendgrid/template.rb +0 -26
- data/lib/sendgrid/template_mailer.rb +0 -59
- data/spec/lib/sendgrid/client_spec.rb +0 -87
- data/spec/lib/sendgrid/mail_spec.rb +0 -151
- data/spec/lib/sendgrid/recipient_spec.rb +0 -91
- data/spec/lib/sendgrid/template_mailer_spec.rb +0 -86
- data/spec/lib/sendgrid/template_spec.rb +0 -61
- data/spec/lib/sendgrid_spec.rb +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 8e118713291ab6d133c75101195e33de03deb99d1e950cb55df8a266df10528d
|
|
4
|
+
data.tar.gz: e444657f217f6d84af54743baa09f145795f9424ac74a6852fc5a73435f18e75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2e41e61bc35633b62734361034a864fac34e6e6351122858d0dfefe9c98b9d7216bc91628d1c68ccc39c83a538e5f019de729102f648164382d8e01e1abed0c
|
|
7
|
+
data.tar.gz: 450c8ea54db164636cf3101080808248a9602689b17c9be9e3e93f138694019d72422d77d273ac1723077e97d12d7f0676ec479e62dfc434f82631e54f2049ab
|
data/.env_sample
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
contact_links:
|
|
2
|
+
- name: Twilio SendGrid Support
|
|
3
|
+
url: https://support.sendgrid.com
|
|
4
|
+
about: Get Support
|
|
5
|
+
- name: Stack Overflow
|
|
6
|
+
url: https://stackoverflow.com/questions/tagged/sendgrid-ruby+or+sendgrid+ruby
|
|
7
|
+
about: Ask questions on Stack Overflow
|
|
8
|
+
- name: Documentation
|
|
9
|
+
url: https://sendgrid.com/docs/for-developers/
|
|
10
|
+
about: View Reference Documentation
|
|
@@ -0,0 +1,120 @@
|
|
|
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', 'jruby-9.2' ]
|
|
21
|
+
env:
|
|
22
|
+
version: ${{ format('ruby:{0}', matrix.ruby) }}
|
|
23
|
+
DOCKER_LOGIN: ${{ secrets.DOCKER_USERNAME && secrets.DOCKER_AUTH_TOKEN }}
|
|
24
|
+
steps:
|
|
25
|
+
- name: Revise env version if necessary
|
|
26
|
+
run: echo "version=jruby:9.2" >> $GITHUB_ENV
|
|
27
|
+
if: ${{ matrix.ruby == 'jruby-9.2' }}
|
|
28
|
+
|
|
29
|
+
- name: Checkout sendgrid-ruby
|
|
30
|
+
uses: actions/checkout@v2
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
|
|
34
|
+
- name: Login to Docker Hub
|
|
35
|
+
if: env.DOCKER_LOGIN
|
|
36
|
+
uses: docker/login-action@v1
|
|
37
|
+
with:
|
|
38
|
+
username: ${{ secrets.DOCKER_USERNAME }}
|
|
39
|
+
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
|
|
40
|
+
|
|
41
|
+
- name: Set up Ruby
|
|
42
|
+
uses: ruby/setup-ruby@v1
|
|
43
|
+
with:
|
|
44
|
+
ruby-version: ${{ matrix.ruby }}
|
|
45
|
+
bundler-cache: true
|
|
46
|
+
|
|
47
|
+
- run: make install
|
|
48
|
+
|
|
49
|
+
- name: Set up linter
|
|
50
|
+
run: bundle add rubocop --version "~> 1.24.1" --group "development" --skip-install
|
|
51
|
+
if: ${{ matrix.ruby != '2.4' }}
|
|
52
|
+
|
|
53
|
+
- run: bundle install --with development
|
|
54
|
+
|
|
55
|
+
- name: Run linter
|
|
56
|
+
run: bundle exec rubocop
|
|
57
|
+
if: ${{ matrix.ruby != '2.4' }}
|
|
58
|
+
|
|
59
|
+
- name: Run tests
|
|
60
|
+
run: make test-docker
|
|
61
|
+
|
|
62
|
+
deploy:
|
|
63
|
+
name: Deploy
|
|
64
|
+
if: success() && github.ref_type == 'tag'
|
|
65
|
+
needs: [ test ]
|
|
66
|
+
runs-on: ubuntu-latest
|
|
67
|
+
steps:
|
|
68
|
+
- name: Checkout sendgrid-ruby
|
|
69
|
+
uses: actions/checkout@v2
|
|
70
|
+
with:
|
|
71
|
+
fetch-depth: 0
|
|
72
|
+
|
|
73
|
+
- name: Set up Ruby
|
|
74
|
+
uses: ruby/setup-ruby@v1
|
|
75
|
+
with:
|
|
76
|
+
ruby-version: 3.1
|
|
77
|
+
bundler-cache: true
|
|
78
|
+
|
|
79
|
+
- run: make install
|
|
80
|
+
|
|
81
|
+
- name: Create GitHub Release
|
|
82
|
+
uses: sendgrid/dx-automator/actions/release@main
|
|
83
|
+
with:
|
|
84
|
+
footer: '**[RubyGems](https://rubygems.org/gems/sendgrid-ruby/versions/${version})**'
|
|
85
|
+
env:
|
|
86
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
87
|
+
|
|
88
|
+
- name: Publish to Rubygems
|
|
89
|
+
env:
|
|
90
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
|
91
|
+
run: |
|
|
92
|
+
mkdir -p $HOME/.gem
|
|
93
|
+
touch $HOME/.gem/credentials
|
|
94
|
+
chmod 0600 $HOME/.gem/credentials
|
|
95
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
96
|
+
gem build *.gemspec
|
|
97
|
+
gem push *.gem
|
|
98
|
+
|
|
99
|
+
- name: Submit metric to Datadog
|
|
100
|
+
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
|
|
101
|
+
env:
|
|
102
|
+
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
|
103
|
+
|
|
104
|
+
notify-on-failure:
|
|
105
|
+
name: Slack notify on failure
|
|
106
|
+
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
|
|
107
|
+
needs: [ test, deploy ]
|
|
108
|
+
runs-on: ubuntu-latest
|
|
109
|
+
steps:
|
|
110
|
+
- uses: rtCamp/action-slack-notify@v2
|
|
111
|
+
env:
|
|
112
|
+
SLACK_COLOR: failure
|
|
113
|
+
SLACK_ICON_EMOJI: ':github:'
|
|
114
|
+
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) }}
|
|
115
|
+
SLACK_TITLE: Action Failure - ${{ github.repository }}
|
|
116
|
+
SLACK_USERNAME: GitHub Actions
|
|
117
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
|
118
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
|
119
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
|
120
|
+
MSG_MINIMAL: true
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Max: 37
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
Metrics/ClassLength:
|
|
6
|
-
Max: 109
|
|
7
|
-
|
|
8
|
-
Metrics/CyclomaticComplexity:
|
|
9
|
-
Max: 7
|
|
10
|
-
|
|
11
|
-
# Configuration parameters: AllowURI, URISchemes.
|
|
12
|
-
Metrics/LineLength:
|
|
13
|
-
Max: 132
|
|
14
|
-
|
|
15
|
-
# Configuration parameters: CountComments.
|
|
16
|
-
Metrics/MethodLength:
|
|
17
|
-
Max: 22
|
|
18
|
-
|
|
19
|
-
Style/Documentation:
|
|
3
|
+
Style/StringLiterals:
|
|
20
4
|
Enabled: false
|
|
21
5
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Enabled: false
|
|
26
|
-
|
|
27
|
-
# Cop supports --auto-correct.
|
|
28
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
|
29
|
-
Style/SpaceInsideHashLiteralBraces:
|
|
30
|
-
Enabled: false
|
|
6
|
+
Metrics/BlockLength:
|
|
7
|
+
Exclude:
|
|
8
|
+
- 'spec/**/*'
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2022-01-25 23:45:43 UTC using RuboCop version 1.22.2.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
12
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
13
|
+
Bundler/OrderedGems:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'Gemfile'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# Configuration parameters: Include.
|
|
19
|
+
# Include: **/*.gemspec
|
|
20
|
+
Gemspec/RequiredRubyVersion:
|
|
21
|
+
Exclude:
|
|
22
|
+
- 'sendgrid-ruby.gemspec'
|
|
23
|
+
|
|
24
|
+
# Offense count: 1
|
|
25
|
+
# Cop supports --auto-correct.
|
|
26
|
+
# Configuration parameters: EnforcedStyle.
|
|
27
|
+
# SupportedStyles: final_newline, final_blank_line
|
|
28
|
+
Layout/TrailingEmptyLines:
|
|
29
|
+
Exclude:
|
|
30
|
+
- 'Gemfile'
|
|
31
|
+
|
|
32
|
+
# Offense count: 24
|
|
33
|
+
Lint/UselessAssignment:
|
|
34
|
+
Exclude:
|
|
35
|
+
- 'examples/scopes/scopes.rb'
|
|
36
|
+
- 'spec/rack/sendgrid_webhook_verification_spec.rb'
|
|
37
|
+
|
|
38
|
+
# Offense count: 10
|
|
39
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
|
40
|
+
Metrics/AbcSize:
|
|
41
|
+
Max: 134
|
|
42
|
+
|
|
43
|
+
# Offense count: 3
|
|
44
|
+
# Configuration parameters: CountComments, CountAsOne.
|
|
45
|
+
Metrics/ClassLength:
|
|
46
|
+
Max: 2018
|
|
47
|
+
|
|
48
|
+
# Offense count: 45
|
|
49
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
50
|
+
Metrics/MethodLength:
|
|
51
|
+
Max: 141
|
|
52
|
+
|
|
53
|
+
# Offense count: 4
|
|
54
|
+
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
55
|
+
Metrics/ParameterLists:
|
|
56
|
+
Max: 7
|
|
57
|
+
|
|
58
|
+
# Offense count: 4
|
|
59
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
60
|
+
# 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
|
|
61
|
+
Naming/FileName:
|
|
62
|
+
Exclude:
|
|
63
|
+
- 'gemfiles/Sinatra_1.gemfile'
|
|
64
|
+
- 'gemfiles/Sinatra_2.gemfile'
|
|
65
|
+
- 'lib/sendgrid-ruby.rb'
|
|
66
|
+
- 'test/sendgrid/test_sendgrid-ruby.rb'
|
|
67
|
+
|
|
68
|
+
# Offense count: 1
|
|
69
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
70
|
+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
|
71
|
+
Naming/MethodParameterName:
|
|
72
|
+
Exclude:
|
|
73
|
+
- 'lib/sendgrid/helpers/mail/personalization.rb'
|
|
74
|
+
|
|
75
|
+
# Offense count: 1
|
|
76
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
|
77
|
+
# NamePrefix: is_, has_, have_
|
|
78
|
+
# ForbiddenPrefixes: is_, has_, have_
|
|
79
|
+
# AllowedMethods: is_a?
|
|
80
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
81
|
+
Naming/PredicateName:
|
|
82
|
+
Exclude:
|
|
83
|
+
- 'spec/**/*'
|
|
84
|
+
- 'examples/helpers/eventwebhook/example.rb'
|
|
85
|
+
|
|
86
|
+
# Offense count: 35
|
|
87
|
+
# Configuration parameters: AllowedConstants.
|
|
88
|
+
Style/Documentation:
|
|
89
|
+
Enabled: false
|
|
90
|
+
|
|
91
|
+
# Offense count: 3
|
|
92
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
|
|
93
|
+
# SupportedStyles: annotated, template, unannotated
|
|
94
|
+
Style/FormatStringToken:
|
|
95
|
+
EnforcedStyle: unannotated
|
|
96
|
+
|
|
97
|
+
# Offense count: 97
|
|
98
|
+
# Cop supports --auto-correct.
|
|
99
|
+
# Configuration parameters: EnforcedStyle.
|
|
100
|
+
# SupportedStyles: always, always_true, never
|
|
101
|
+
Style/FrozenStringLiteralComment:
|
|
102
|
+
Enabled: false
|
|
103
|
+
|
|
104
|
+
# Offense count: 1
|
|
105
|
+
# Cop supports --auto-correct.
|
|
106
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
107
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
108
|
+
Style/HashSyntax:
|
|
109
|
+
Exclude:
|
|
110
|
+
- 'Gemfile'
|
|
111
|
+
|
|
112
|
+
# Offense count: 6
|
|
113
|
+
Style/MixinUsage:
|
|
114
|
+
Exclude:
|
|
115
|
+
- 'examples/helpers/eventwebhook/example.rb'
|
|
116
|
+
- 'examples/helpers/mail/example.rb'
|
|
117
|
+
- 'examples/helpers/settings/example.rb'
|
|
118
|
+
- 'examples/helpers/stats/example.rb'
|
|
119
|
+
- 'test/sendgrid/helpers/mail/test_attachment.rb'
|
|
120
|
+
- 'test/sendgrid/helpers/mail/test_mail.rb'
|
|
121
|
+
|
|
122
|
+
# Offense count: 54
|
|
123
|
+
# Cop supports --auto-correct.
|
|
124
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
125
|
+
# URISchemes: http, https
|
|
126
|
+
Layout/LineLength:
|
|
127
|
+
Max: 381
|