sendgrid-ruby 6.0.0 → 6.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +1 -1
- data/.gitignore +2 -0
- data/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +111 -0
- data/.travis.yml +26 -25
- data/CHANGELOG.md +185 -10
- data/CODE_OF_CONDUCT.md +57 -25
- data/CONTRIBUTING.md +11 -23
- data/Dockerfile +14 -0
- data/FIRST_TIMERS.md +79 -0
- data/Gemfile +0 -1
- data/ISSUE_TEMPLATE.md +30 -0
- data/LICENSE +21 -0
- data/Makefile +15 -0
- data/PULL_REQUEST_TEMPLATE.md +31 -0
- data/README.md +28 -37
- data/Rakefile +2 -3
- data/TROUBLESHOOTING.md +9 -7
- data/USAGE.md +146 -39
- data/examples/accesssettings/accesssettings.rb +9 -12
- data/examples/alerts/alerts.rb +8 -11
- data/examples/apikeys/apikeys.rb +12 -15
- data/examples/asm/asm.rb +27 -30
- data/examples/browsers/browsers.rb +0 -3
- data/examples/campaigns/campaigns.rb +29 -32
- data/examples/categories/categories.rb +0 -3
- data/examples/clients/clients.rb +1 -4
- data/examples/contactdb/contactdb.rb +63 -66
- data/examples/devices/devices.rb +0 -3
- data/examples/emailactivity/emailactivity.rb +52 -0
- data/examples/geo/geo.rb +0 -3
- data/examples/helpers/eventwebhook/example.rb +16 -0
- data/examples/helpers/mail/example.rb +19 -13
- data/examples/helpers/settings/example.rb +1 -1
- data/examples/helpers/stats/example.rb +4 -4
- data/examples/ips/ips.rb +19 -22
- data/examples/mail/mail.rb +72 -75
- data/examples/mailboxproviders/mailboxproviders.rb +0 -3
- data/examples/mailsettings/mailsettings.rb +21 -24
- data/examples/partnersettings/partnersettings.rb +3 -6
- data/examples/scopes/scopes.rb +8 -10
- data/examples/senderauthentication/senderauthentication.rb +41 -44
- data/examples/senders/senders.rb +28 -31
- data/examples/stats/stats.rb +0 -3
- data/examples/subusers/subusers.rb +17 -20
- data/examples/suppression/suppression.rb +15 -18
- data/examples/templates/templates.rb +29 -31
- data/examples/trackingsettings/trackingsettings.rb +14 -17
- data/examples/user/user.rb +41 -44
- data/lib/rack/sendgrid_webhook_verification.rb +55 -0
- data/lib/sendgrid-ruby.rb +5 -1
- data/lib/sendgrid/base_interface.rb +40 -0
- data/lib/sendgrid/helpers/eventwebhook/eventwebhook.rb +50 -0
- data/lib/sendgrid/helpers/inbound/README.md +5 -5
- data/lib/sendgrid/helpers/inbound/app.rb +2 -2
- data/lib/sendgrid/helpers/inbound/public/index.html +1 -1
- data/lib/sendgrid/helpers/inbound/send.rb +3 -3
- data/lib/sendgrid/helpers/ip_management/ip_management.rb +1 -1
- data/lib/sendgrid/helpers/mail/README.md +3 -3
- data/lib/sendgrid/helpers/mail/asm.rb +4 -18
- data/lib/sendgrid/helpers/mail/attachment.rb +12 -43
- data/lib/sendgrid/helpers/mail/bcc_settings.rb +4 -18
- data/lib/sendgrid/helpers/mail/bypass_list_management.rb +6 -18
- data/lib/sendgrid/helpers/mail/category.rb +2 -4
- data/lib/sendgrid/helpers/mail/click_tracking.rb +4 -18
- data/lib/sendgrid/helpers/mail/content.rb +2 -3
- data/lib/sendgrid/helpers/mail/custom_arg.rb +4 -10
- data/lib/sendgrid/helpers/mail/email.rb +8 -5
- data/lib/sendgrid/helpers/mail/footer.rb +5 -27
- data/lib/sendgrid/helpers/mail/ganalytics.rb +9 -55
- data/lib/sendgrid/helpers/mail/header.rb +4 -10
- data/lib/sendgrid/helpers/mail/mail.rb +30 -48
- data/lib/sendgrid/helpers/mail/mail_settings.rb +7 -25
- data/lib/sendgrid/helpers/mail/open_tracking.rb +4 -18
- data/lib/sendgrid/helpers/mail/personalization.rb +32 -27
- data/lib/sendgrid/helpers/mail/section.rb +4 -10
- data/lib/sendgrid/helpers/mail/spam_check.rb +5 -27
- data/lib/sendgrid/helpers/mail/subscription_tracking.rb +6 -36
- data/lib/sendgrid/helpers/mail/substitution.rb +4 -10
- data/lib/sendgrid/helpers/mail/tracking_settings.rb +6 -20
- data/lib/sendgrid/helpers/permissions/scope.rb +2 -2
- data/lib/sendgrid/helpers/settings/README.md +2 -2
- data/lib/sendgrid/helpers/settings/settings.rb +1 -1
- data/lib/sendgrid/helpers/settings/tracking_settings_dto.rb +3 -5
- data/lib/sendgrid/helpers/stats/metrics.rb +5 -7
- data/lib/sendgrid/helpers/stats/stats_response.rb +0 -2
- data/lib/sendgrid/sendgrid.rb +21 -0
- data/lib/sendgrid/twilio_email.rb +21 -0
- data/lib/sendgrid/version.rb +1 -1
- data/mail_helper_v3.md +12 -12
- data/sendgrid-ruby.gemspec +11 -10
- 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/settings/mail_settings_dto_spec.rb +1 -1
- data/spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb +1 -1
- data/spec/sendgrid/helpers/settings/settings_spec.rb +2 -2
- data/spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb +1 -1
- data/spec/sendgrid/helpers/settings/user_settings_dto_spec.rb +1 -1
- data/spec/sendgrid/helpers/stats/email_stats_spec.rb +22 -23
- data/spec/sendgrid/helpers/stats/metrics_spec.rb +19 -20
- data/spec/sendgrid/helpers/stats/stats_response_spec.rb +22 -23
- data/spec/sendgrid/sendgrid_spec.rb +11 -0
- data/spec/sendgrid/twilio_email_spec.rb +11 -0
- data/spec/spec_helper.rb +3 -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 +4 -6
- data/test/sendgrid/helpers/mail/test_category.rb +0 -2
- data/test/sendgrid/helpers/mail/test_email.rb +17 -10
- data/test/sendgrid/helpers/mail/test_mail.rb +101 -102
- data/test/sendgrid/helpers/mail/test_personalizations.rb +133 -93
- data/test/sendgrid/permissions/test_scopes.rb +1 -3
- data/test/sendgrid/test_sendgrid-ruby.rb +1967 -1985
- data/twilio_sendgrid_logo.png +0 -0
- data/use-cases/README.md +16 -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/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 +88 -34
- data/.github/ISSUE_TEMPLATE +0 -17
- data/.github/PULL_REQUEST_TEMPLATE +0 -26
- data/LICENSE.txt +0 -22
- data/USE_CASES.md +0 -377
- data/docker/Dockerfile +0 -12
- data/docker/README.md +0 -30
- data/lib/sendgrid/client.rb +0 -38
- data/test/prism.sh +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8a77256d8db572200bdedd90a2b719d0f36d1a1aecbf17070968b555ed404028
|
4
|
+
data.tar.gz: 10081de69452a519515b2fe5f086460935cac375e1d3ade7528412477aab38a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa4e2a6a2cd904d43f1c32a57ecbc1ea7db0729fed4cab05303566515975661fd12bb0e1d3f92480b3101276019db4a1858dc060ff35a1055ff587dc5582d071
|
7
|
+
data.tar.gz: 10493d88b4836f3f90a8813dbe3bb6d40e141a3d0f1ed99adc35c34a308c7a149104b7bde9829c8bf5b5b1efb7e855ad1236fc43c5f6c444c656a1e6f740599c
|
data/.codeclimate.yml
CHANGED
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2020-09-18 20:20:54 UTC using RuboCop version 0.91.0.
|
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
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'sendgrid-ruby.gemspec'
|
15
|
+
|
16
|
+
# Offense count: 22
|
17
|
+
Lint/UselessAssignment:
|
18
|
+
Exclude:
|
19
|
+
- 'examples/scopes/scopes.rb'
|
20
|
+
- 'spec/rack/sendgrid_webhook_verification_spec.rb'
|
21
|
+
|
22
|
+
# Offense count: 8
|
23
|
+
# Configuration parameters: IgnoredMethods.
|
24
|
+
Metrics/AbcSize:
|
25
|
+
Max: 144
|
26
|
+
|
27
|
+
# Offense count: 9
|
28
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
29
|
+
# ExcludedMethods: refine
|
30
|
+
Metrics/BlockLength:
|
31
|
+
Max: 96
|
32
|
+
|
33
|
+
# Offense count: 3
|
34
|
+
# Configuration parameters: CountComments, CountAsOne.
|
35
|
+
Metrics/ClassLength:
|
36
|
+
Max: 2006
|
37
|
+
Exclude:
|
38
|
+
- 'test/sendgrid/test_sendgrid-ruby.rb'
|
39
|
+
|
40
|
+
# Offense count: 41
|
41
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
42
|
+
Metrics/MethodLength:
|
43
|
+
Max: 141
|
44
|
+
|
45
|
+
# Offense count: 2
|
46
|
+
# Configuration parameters: CountKeywordArgs.
|
47
|
+
Metrics/ParameterLists:
|
48
|
+
Max: 7
|
49
|
+
|
50
|
+
# Offense count: 4
|
51
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
52
|
+
# 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
|
53
|
+
Naming/FileName:
|
54
|
+
Exclude:
|
55
|
+
- 'gemfiles/Sinatra_1.gemfile'
|
56
|
+
- 'gemfiles/Sinatra_2.gemfile'
|
57
|
+
- 'lib/sendgrid-ruby.rb'
|
58
|
+
- 'test/sendgrid/test_sendgrid-ruby.rb'
|
59
|
+
|
60
|
+
# Offense count: 1
|
61
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
62
|
+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
63
|
+
Naming/MethodParameterName:
|
64
|
+
Exclude:
|
65
|
+
- 'lib/sendgrid/helpers/mail/personalization.rb'
|
66
|
+
|
67
|
+
# Offense count: 1
|
68
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
69
|
+
# NamePrefix: is_, has_, have_
|
70
|
+
# ForbiddenPrefixes: is_, has_, have_
|
71
|
+
# AllowedMethods: is_a?
|
72
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
73
|
+
Naming/PredicateName:
|
74
|
+
Exclude:
|
75
|
+
- 'spec/**/*'
|
76
|
+
- 'examples/helpers/eventwebhook/example.rb'
|
77
|
+
|
78
|
+
# Offense count: 35
|
79
|
+
Style/Documentation:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
# Offense count: 4
|
83
|
+
# Configuration parameters: EnforcedStyle.
|
84
|
+
# SupportedStyles: annotated, template, unannotated
|
85
|
+
Style/FormatStringToken:
|
86
|
+
Exclude:
|
87
|
+
- 'examples/emailactivity/emailactivity.rb'
|
88
|
+
|
89
|
+
# Offense count: 97
|
90
|
+
# Cop supports --auto-correct.
|
91
|
+
# Configuration parameters: EnforcedStyle.
|
92
|
+
# SupportedStyles: always, always_true, never
|
93
|
+
Style/FrozenStringLiteralComment:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
# Offense count: 6
|
97
|
+
Style/MixinUsage:
|
98
|
+
Exclude:
|
99
|
+
- 'examples/helpers/eventwebhook/example.rb'
|
100
|
+
- 'examples/helpers/mail/example.rb'
|
101
|
+
- 'examples/helpers/settings/example.rb'
|
102
|
+
- 'examples/helpers/stats/example.rb'
|
103
|
+
- 'test/sendgrid/helpers/mail/test_attachment.rb'
|
104
|
+
- 'test/sendgrid/helpers/mail/test_mail.rb'
|
105
|
+
|
106
|
+
# Offense count: 55
|
107
|
+
# Cop supports --auto-correct.
|
108
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
109
|
+
# URISchemes: http, https
|
110
|
+
Layout/LineLength:
|
111
|
+
Max: 3211
|
data/.travis.yml
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.
|
2
|
+
env:
|
3
|
+
- version=ruby:2.7
|
4
|
+
- version=ruby:2.6
|
5
|
+
- version=ruby:2.5
|
6
|
+
- version=ruby:2.4
|
7
|
+
- version=jruby:9.2
|
8
|
+
|
6
9
|
gemfile:
|
7
|
-
- gemfiles/Sinatra_1.gemfile
|
8
|
-
- gemfiles/Sinatra_2.gemfile
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
- gemfiles/Sinatra_1.gemfile
|
11
|
+
- gemfiles/Sinatra_2.gemfile
|
12
|
+
|
13
|
+
script: make test-docker
|
14
|
+
|
15
|
+
deploy:
|
16
|
+
provider: rubygems
|
17
|
+
api_key: $RUBYGEMS_API_KEY
|
18
|
+
gem: sendgrid-ruby
|
19
|
+
on:
|
20
|
+
tags: true
|
21
|
+
condition: $version = ruby:2.4 && $BUNDLE_GEMFILE = *"gemfiles/Sinatra_1.gemfile"
|
22
|
+
|
14
23
|
notifications:
|
15
|
-
|
24
|
+
slack:
|
25
|
+
if: branch = main
|
26
|
+
on_pull_requests: false
|
27
|
+
on_success: never
|
28
|
+
on_failure: change
|
16
29
|
rooms:
|
17
|
-
secure:
|
18
|
-
template:
|
19
|
-
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
|
20
|
-
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
|
21
|
-
<a href="https://github.com/sendgrid/%{repository}/commits/%{commit}">View on GitHub</a>'
|
22
|
-
format: html
|
23
|
-
notify: false
|
24
|
-
script:
|
25
|
-
- rake test
|
26
|
-
- rake spec
|
27
|
-
before_install:
|
28
|
-
- gem update bundler
|
29
|
-
|
30
|
+
- secure: QwoVrGveeA1bo/26fO2A+OQHmUX69NLaC214qd18C1Z8ztYMHkd05/9+k9HFb+PSdPkGLSeYOPWAKJUqJWB7HfGINNGpRGIPFcmfB7vhvvLFnhud/SAdQPRZ+SCeZPdpZcjpVRLYENKv259ucGPBCPFXh1HfJF92R0IrKeW5CII=
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,184 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
|
4
|
+
[2021-02-10] Version 6.4.0
|
5
|
+
--------------------------
|
6
|
+
**Library - Feature**
|
7
|
+
- [PR #455](https://github.com/sendgrid/sendgrid-ruby/pull/455): Add http_options as a param in the SendGrid::API's constructor. Thanks to [@hoangtuanictvn](https://github.com/hoangtuanictvn)!
|
8
|
+
|
9
|
+
|
10
|
+
[2021-01-27] Version 6.3.9
|
11
|
+
--------------------------
|
12
|
+
**Library - Fix**
|
13
|
+
- [PR #446](https://github.com/sendgrid/sendgrid-ruby/pull/446): Accurate duplicate checking when adding email to Personalizations. Thanks to [@mito5525](https://github.com/mito5525)!
|
14
|
+
- [PR #457](https://github.com/sendgrid/sendgrid-ruby/pull/457): email is required. Thanks to [@luk4s](https://github.com/luk4s)!
|
15
|
+
|
16
|
+
|
17
|
+
[2020-12-16] Version 6.3.8
|
18
|
+
--------------------------
|
19
|
+
**Library - Fix**
|
20
|
+
- [PR #448](https://github.com/sendgrid/sendgrid-ruby/pull/448): tests failing on rubocop rule. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
21
|
+
|
22
|
+
|
23
|
+
[2020-11-05] Version 6.3.7
|
24
|
+
--------------------------
|
25
|
+
**Library - Chore**
|
26
|
+
- [PR #447](https://github.com/sendgrid/sendgrid-ruby/pull/447): fix rubocop styling errors. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
27
|
+
|
28
|
+
|
29
|
+
[2020-10-14] Version 6.3.6
|
30
|
+
--------------------------
|
31
|
+
**Library - Fix**
|
32
|
+
- [PR #440](https://github.com/sendgrid/sendgrid-ruby/pull/440): reading position of a request body. Thanks to [@snaka](https://github.com/snaka)!
|
33
|
+
|
34
|
+
|
35
|
+
[2020-09-28] Version 6.3.5
|
36
|
+
--------------------------
|
37
|
+
**Library - Fix**
|
38
|
+
- [PR #437](https://github.com/sendgrid/sendgrid-ruby/pull/437): Raise error when adding duplicate email address in Personalizations. Thanks to [@Pranc1ngPegasus](https://github.com/Pranc1ngPegasus)!
|
39
|
+
|
40
|
+
**Library - Docs**
|
41
|
+
- [PR #322](https://github.com/sendgrid/sendgrid-ruby/pull/322): Update documentation for retrieving a list of all templates. Thanks to [@renshuki](https://github.com/renshuki)!
|
42
|
+
- [PR #332](https://github.com/sendgrid/sendgrid-ruby/pull/332): Add Email activity API Documentation. Thanks to [@dhoeric](https://github.com/dhoeric)!
|
43
|
+
|
44
|
+
**Library - Test**
|
45
|
+
- [PR #315](https://github.com/sendgrid/sendgrid-ruby/pull/315): Add rubocop check to CI. Thanks to [@dipil-saud](https://github.com/dipil-saud)!
|
46
|
+
|
47
|
+
**Library - Chore**
|
48
|
+
- [PR #339](https://github.com/sendgrid/sendgrid-ruby/pull/339): Added rubocop configs and changed source files with rubocop "offenses". Thanks to [@douglaslise](https://github.com/douglaslise)!
|
49
|
+
- [PR #338](https://github.com/sendgrid/sendgrid-ruby/pull/338): Refactor getters and setters to use ruby accessors. Thanks to [@douglaslise](https://github.com/douglaslise)!
|
50
|
+
|
51
|
+
|
52
|
+
[2020-08-19] Version 6.3.4
|
53
|
+
--------------------------
|
54
|
+
**Library - Docs**
|
55
|
+
- [PR #319](https://github.com/sendgrid/sendgrid-ruby/pull/319): Run all the *.md files through grammar.ly service and update accordingly. Thanks to [@Sarthakagarwal22](https://github.com/Sarthakagarwal22)!
|
56
|
+
- [PR #344](https://github.com/sendgrid/sendgrid-ruby/pull/344): Update example.rb. Thanks to [@kylearoberts](https://github.com/kylearoberts)!
|
57
|
+
|
58
|
+
**Library - Chore**
|
59
|
+
- [PR #432](https://github.com/sendgrid/sendgrid-ruby/pull/432): update GitHub branch references to use HEAD. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
60
|
+
|
61
|
+
|
62
|
+
[2020-07-22] Version 6.3.3
|
63
|
+
--------------------------
|
64
|
+
**Library - Chore**
|
65
|
+
- [PR #431](https://github.com/sendgrid/sendgrid-ruby/pull/431): migrate to new default sendgrid-oai branch. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
66
|
+
- [PR #366](https://github.com/sendgrid/sendgrid-ruby/pull/366): add Rubocop configuration file. Thanks to [@RolandBurrows](https://github.com/RolandBurrows)!
|
67
|
+
|
68
|
+
**Library - Test**
|
69
|
+
- [PR #429](https://github.com/sendgrid/sendgrid-ruby/pull/429): fix the license test and actually run the test scripts. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
70
|
+
|
71
|
+
**Library - Docs**
|
72
|
+
- [PR #273](https://github.com/sendgrid/sendgrid-ruby/pull/273): Create a Use Cases Directory and Associated Files. Thanks to [@alanunruh](https://github.com/alanunruh)!
|
73
|
+
|
74
|
+
|
75
|
+
[2020-07-08] Version 6.3.2
|
76
|
+
--------------------------
|
77
|
+
**Library - Test**
|
78
|
+
- [PR #368](https://github.com/sendgrid/sendgrid-ruby/pull/368): add Simplecov Local Enhancements. Thanks to [@RolandBurrows](https://github.com/RolandBurrows)!
|
79
|
+
|
80
|
+
|
81
|
+
[2020-06-25] Version 6.3.1
|
82
|
+
--------------------------
|
83
|
+
|
84
|
+
|
85
|
+
[2020-06-24] Version 6.3.0
|
86
|
+
--------------------------
|
87
|
+
**Library - Feature**
|
88
|
+
- [PR #428](https://github.com/sendgrid/sendgrid-ruby/pull/428): adds rack middleware to make request verification easier in rack apps. Thanks to [@philnash](https://github.com/philnash)!
|
89
|
+
- [PR #425](https://github.com/sendgrid/sendgrid-ruby/pull/425): verify signature from event webhook. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
90
|
+
|
91
|
+
**Library - Fix**
|
92
|
+
- [PR #427](https://github.com/sendgrid/sendgrid-ruby/pull/427): drop the starkbank dependency. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
93
|
+
|
94
|
+
|
95
|
+
[2020-05-13] Version 6.2.1
|
96
|
+
--------------------------
|
97
|
+
**Library - Fix**
|
98
|
+
- [PR #421](https://github.com/sendgrid/sendgrid-ruby/pull/421): migrate to common prism setup. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
99
|
+
|
100
|
+
|
101
|
+
[2020-04-29] Version 6.2.0
|
102
|
+
--------------------------
|
103
|
+
**Library - Feature**
|
104
|
+
- [PR #417](https://github.com/sendgrid/sendgrid-ruby/pull/417): add support for Twilio Email. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
105
|
+
|
106
|
+
|
107
|
+
[2020-04-15] Version 6.1.4
|
108
|
+
--------------------------
|
109
|
+
**Library - Fix**
|
110
|
+
- [PR #416](https://github.com/sendgrid/sendgrid-ruby/pull/416): correct the User-Agent casing. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
111
|
+
|
112
|
+
|
113
|
+
[2020-04-01] Version 6.1.3
|
114
|
+
--------------------------
|
115
|
+
**Library - Docs**
|
116
|
+
- [PR #414](https://github.com/sendgrid/sendgrid-ruby/pull/414): support verbiage for login issues. Thanks to [@adamchasetaylor](https://github.com/adamchasetaylor)!
|
117
|
+
|
118
|
+
**Library - Chore**
|
119
|
+
- [PR #413](https://github.com/sendgrid/sendgrid-ruby/pull/413): upgrade rake dev dependency. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
120
|
+
|
121
|
+
|
122
|
+
[2020-03-18] Version 6.1.2
|
123
|
+
--------------------------
|
124
|
+
**Library - Chore**
|
125
|
+
- [PR #337](https://github.com/sendgrid/sendgrid-ruby/pull/337): Remove unnecessary require statements. Thanks to [@moutten](https://github.com/moutten)!
|
126
|
+
- [PR #354](https://github.com/sendgrid/sendgrid-ruby/pull/354): Update Dockerfile ruby version. Thanks to [@Rovel](https://github.com/Rovel)!
|
127
|
+
|
128
|
+
**Library - Fix**
|
129
|
+
- [PR #412](https://github.com/sendgrid/sendgrid-ruby/pull/412): loosen the ruby_http_client version constraint. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
130
|
+
|
131
|
+
|
132
|
+
[2020-03-04] Version 6.1.1
|
133
|
+
--------------------------
|
134
|
+
**Library - Docs**
|
135
|
+
- [PR #375](https://github.com/sendgrid/sendgrid-ruby/pull/375): update bug template URL. Thanks to [@divyanshu-rawat](https://github.com/divyanshu-rawat)!
|
136
|
+
- [PR #385](https://github.com/sendgrid/sendgrid-ruby/pull/385): Remove announcements (the job posting is filled?). Thanks to [@deyton](https://github.com/deyton)!
|
137
|
+
|
138
|
+
**Library - Chore**
|
139
|
+
- [PR #409](https://github.com/sendgrid/sendgrid-ruby/pull/409): bump `bundler` version to 2.1.2. Thanks to [@chhhris](https://github.com/chhhris)!
|
140
|
+
- [PR #408](https://github.com/sendgrid/sendgrid-ruby/pull/408): add Ruby 2.7 to Travis. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
141
|
+
|
142
|
+
|
143
|
+
[2020-02-19] Version 6.1.0
|
144
|
+
--------------------------
|
145
|
+
**Library - Feature**
|
146
|
+
- [PR #405](https://github.com/sendgrid/sendgrid-ruby/pull/405): Use latest SendGrid HTTP Client. Thanks to [@saveav](https://github.com/saveav)!
|
147
|
+
|
148
|
+
|
149
|
+
[2020-01-22] Version 6.0.4
|
150
|
+
--------------------------
|
151
|
+
**Library - Fix**
|
152
|
+
- [PR #404](https://github.com/sendgrid/sendgrid-ruby/pull/404): add skip_cleanup flag to fix travis deploy. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
153
|
+
|
154
|
+
|
155
|
+
[2020-01-22] Version 6.0.3
|
156
|
+
--------------------------
|
157
|
+
**Library - Docs**
|
158
|
+
- [PR #402](https://github.com/sendgrid/sendgrid-ruby/pull/402): baseline all the templated markdown docs. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
159
|
+
|
160
|
+
|
161
|
+
[2020-01-08] Version 6.0.2
|
162
|
+
--------------------------
|
163
|
+
**Library - Fix**
|
164
|
+
- [PR #401](https://github.com/sendgrid/sendgrid-ruby/pull/401): Only try to deploy once to rubygems. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
165
|
+
|
166
|
+
|
167
|
+
[2020-01-03] Version 6.0.1
|
168
|
+
--------------------------
|
169
|
+
**Library - Chore**
|
170
|
+
- [PR #400](https://github.com/sendgrid/sendgrid-ruby/pull/400): Add auto-deploy to travis.yml. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
171
|
+
- [PR #399](https://github.com/sendgrid/sendgrid-ruby/pull/399): Add testing to Makefile. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
172
|
+
- [PR #396](https://github.com/sendgrid/sendgrid-ruby/pull/396): Adding Makefile to assist with automation. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
173
|
+
|
174
|
+
**Library - Fix**
|
175
|
+
- [PR #321](https://github.com/sendgrid/sendgrid-ruby/pull/321): TROUBLESHOOTING.md broken link fix. Thanks to [@arshadkazmi42](https://github.com/arshadkazmi42)!
|
176
|
+
|
177
|
+
|
178
|
+
[2019-06-04] Version 6.0.0
|
179
|
+
--------------------------
|
5
180
|
### BREAKING CHANGE
|
6
|
-
- [PR #284](https://github.com/sendgrid/sendgrid-ruby/pull/284): The sinatra gem is no longer specified as a dependency of this gem. If you would like to use the inbound processing, please follow the [upgrade guide](
|
181
|
+
- [PR #284](https://github.com/sendgrid/sendgrid-ruby/pull/284): The sinatra gem is no longer specified as a dependency of this gem. If you would like to use the inbound processing, please follow the [upgrade guide](UPGRADE.md). Big thanks to [@jjb](https://github.com/jjb) for the PR!
|
7
182
|
|
8
183
|
### Added
|
9
184
|
- [PR #271](https://github.com/sendgrid/sendgrid-ruby/pull/271): Add ability to impersonate a subuser. Big thanks to [@danilospa](https://github.com/danilospa) for the PR!
|
@@ -44,7 +219,7 @@ All notable changes to this project will be documented in this file.
|
|
44
219
|
|
45
220
|
## [5.2.0] - 2017-10-30 ##
|
46
221
|
### Added
|
47
|
-
- PR #234: Helpers for email statistics - global, category, subuser
|
222
|
+
- PR #234: Helpers for email statistics - global, category, subuser
|
48
223
|
- Thanks to [Awin Abi](https://github.com/awinabi) for the pull request!
|
49
224
|
|
50
225
|
## [5.1.0] - 2017-9-1 ##
|
@@ -70,7 +245,7 @@ All notable changes to this project will be documented in this file.
|
|
70
245
|
- `mail.headers` becomes `mail.add_header()`
|
71
246
|
- `mail.categories` becomes `mail.add_category()`
|
72
247
|
- `mail.custom_args` becomes `mail.custom_args()`
|
73
|
-
- For a full example of usage, please [see here](
|
248
|
+
- For a full example of usage, please [see here](examples/helpers/mail/example.rb#L21).
|
74
249
|
|
75
250
|
## [4.3.3] - 2017-5-2
|
76
251
|
### Update
|
@@ -81,7 +256,7 @@ All notable changes to this project will be documented in this file.
|
|
81
256
|
## [4.3.2] - 2017-5-1 ##
|
82
257
|
### Fixes
|
83
258
|
- #161: Fixed problematic Sinatra dependency
|
84
|
-
- Brings back Rails 4 compatibility (and Rack 1.x applications, in general), also removes release candidate version constraint (both broken in #160). Moreover, ensures that tests are run against two major Sinatra versions, which should protect from compatibility issues in future, somewhat. Related issue: #159.
|
259
|
+
- Brings back Rails 4 compatibility (and Rack 1.x applications, in general), also removes release candidate version constraint (both broken in #160). Moreover, ensures that tests are run against two major Sinatra versions, which should protect from compatibility issues in the future, somewhat. Related issue: #159.
|
85
260
|
- Thanks to [Sebastian Skałacki](https://github.com/skalee) for the pull request!
|
86
261
|
|
87
262
|
## [4.3.1] - 2017-4-12 ##
|
@@ -93,7 +268,7 @@ All notable changes to this project will be documented in this file.
|
|
93
268
|
## [4.3.0] - 2017-4-12 ##
|
94
269
|
### Added
|
95
270
|
- #70: Adds an account settings management helper object
|
96
|
-
- See the [helper README](
|
271
|
+
- See the [helper README](lib/sendgrid/helpers/settings) for details
|
97
272
|
- Thanks to [Kyle Kern](https://github.com/kernkw) for the pull request!
|
98
273
|
|
99
274
|
## [4.2.1] - 2017-4-10 ##
|
@@ -103,8 +278,8 @@ All notable changes to this project will be documented in this file.
|
|
103
278
|
|
104
279
|
## [4.2.0] - 2017-4-10 ##
|
105
280
|
### Added
|
106
|
-
- #148: Set api_key to empty string
|
107
|
-
- This makes creating an API key for a SendGrid
|
281
|
+
- #148: Set api_key to an empty string
|
282
|
+
- This makes creating an API key for a SendGrid sub-user who does not have an API key easier. See #146 for details
|
108
283
|
- Thanks to [Adam Beck](https://github.com/Gwash3189) for the pull request!
|
109
284
|
|
110
285
|
## [4.1.1] - 2017-4-6 ##
|
@@ -145,7 +320,7 @@ All notable changes to this project will be documented in this file.
|
|
145
320
|
## [4.0.3] - 2016-08-24 ##
|
146
321
|
### Added
|
147
322
|
- Table of Contents in the README
|
148
|
-
- Added a [USE_CASES.md](
|
323
|
+
- Added a [USE_CASES.md](USE_CASES.md) section, with the first use case example for transactional templates
|
149
324
|
|
150
325
|
## [4.0.2] - 2016-07-26 ##
|
151
326
|
### Fixed
|
@@ -153,7 +328,7 @@ All notable changes to this project will be documented in this file.
|
|
153
328
|
|
154
329
|
## [4.0.1] - 2016-07-25 ##
|
155
330
|
### Added
|
156
|
-
- [Troubleshooting](
|
331
|
+
- [Troubleshooting](TROUBLESHOOTING.md) section
|
157
332
|
|
158
333
|
## [4.0.0] - 2016-07-23 ##
|
159
334
|
### BREAKING CHANGE
|