sendgrid-ruby 6.0.0 → 6.4.0

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.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/.codeclimate.yml +1 -1
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +8 -0
  5. data/.rubocop_todo.yml +111 -0
  6. data/.travis.yml +26 -25
  7. data/CHANGELOG.md +185 -10
  8. data/CODE_OF_CONDUCT.md +57 -25
  9. data/CONTRIBUTING.md +11 -23
  10. data/Dockerfile +14 -0
  11. data/FIRST_TIMERS.md +79 -0
  12. data/Gemfile +0 -1
  13. data/ISSUE_TEMPLATE.md +30 -0
  14. data/LICENSE +21 -0
  15. data/Makefile +15 -0
  16. data/PULL_REQUEST_TEMPLATE.md +31 -0
  17. data/README.md +28 -37
  18. data/Rakefile +2 -3
  19. data/TROUBLESHOOTING.md +9 -7
  20. data/USAGE.md +146 -39
  21. data/examples/accesssettings/accesssettings.rb +9 -12
  22. data/examples/alerts/alerts.rb +8 -11
  23. data/examples/apikeys/apikeys.rb +12 -15
  24. data/examples/asm/asm.rb +27 -30
  25. data/examples/browsers/browsers.rb +0 -3
  26. data/examples/campaigns/campaigns.rb +29 -32
  27. data/examples/categories/categories.rb +0 -3
  28. data/examples/clients/clients.rb +1 -4
  29. data/examples/contactdb/contactdb.rb +63 -66
  30. data/examples/devices/devices.rb +0 -3
  31. data/examples/emailactivity/emailactivity.rb +52 -0
  32. data/examples/geo/geo.rb +0 -3
  33. data/examples/helpers/eventwebhook/example.rb +16 -0
  34. data/examples/helpers/mail/example.rb +19 -13
  35. data/examples/helpers/settings/example.rb +1 -1
  36. data/examples/helpers/stats/example.rb +4 -4
  37. data/examples/ips/ips.rb +19 -22
  38. data/examples/mail/mail.rb +72 -75
  39. data/examples/mailboxproviders/mailboxproviders.rb +0 -3
  40. data/examples/mailsettings/mailsettings.rb +21 -24
  41. data/examples/partnersettings/partnersettings.rb +3 -6
  42. data/examples/scopes/scopes.rb +8 -10
  43. data/examples/senderauthentication/senderauthentication.rb +41 -44
  44. data/examples/senders/senders.rb +28 -31
  45. data/examples/stats/stats.rb +0 -3
  46. data/examples/subusers/subusers.rb +17 -20
  47. data/examples/suppression/suppression.rb +15 -18
  48. data/examples/templates/templates.rb +29 -31
  49. data/examples/trackingsettings/trackingsettings.rb +14 -17
  50. data/examples/user/user.rb +41 -44
  51. data/lib/rack/sendgrid_webhook_verification.rb +55 -0
  52. data/lib/sendgrid-ruby.rb +5 -1
  53. data/lib/sendgrid/base_interface.rb +40 -0
  54. data/lib/sendgrid/helpers/eventwebhook/eventwebhook.rb +50 -0
  55. data/lib/sendgrid/helpers/inbound/README.md +5 -5
  56. data/lib/sendgrid/helpers/inbound/app.rb +2 -2
  57. data/lib/sendgrid/helpers/inbound/public/index.html +1 -1
  58. data/lib/sendgrid/helpers/inbound/send.rb +3 -3
  59. data/lib/sendgrid/helpers/ip_management/ip_management.rb +1 -1
  60. data/lib/sendgrid/helpers/mail/README.md +3 -3
  61. data/lib/sendgrid/helpers/mail/asm.rb +4 -18
  62. data/lib/sendgrid/helpers/mail/attachment.rb +12 -43
  63. data/lib/sendgrid/helpers/mail/bcc_settings.rb +4 -18
  64. data/lib/sendgrid/helpers/mail/bypass_list_management.rb +6 -18
  65. data/lib/sendgrid/helpers/mail/category.rb +2 -4
  66. data/lib/sendgrid/helpers/mail/click_tracking.rb +4 -18
  67. data/lib/sendgrid/helpers/mail/content.rb +2 -3
  68. data/lib/sendgrid/helpers/mail/custom_arg.rb +4 -10
  69. data/lib/sendgrid/helpers/mail/email.rb +8 -5
  70. data/lib/sendgrid/helpers/mail/footer.rb +5 -27
  71. data/lib/sendgrid/helpers/mail/ganalytics.rb +9 -55
  72. data/lib/sendgrid/helpers/mail/header.rb +4 -10
  73. data/lib/sendgrid/helpers/mail/mail.rb +30 -48
  74. data/lib/sendgrid/helpers/mail/mail_settings.rb +7 -25
  75. data/lib/sendgrid/helpers/mail/open_tracking.rb +4 -18
  76. data/lib/sendgrid/helpers/mail/personalization.rb +32 -27
  77. data/lib/sendgrid/helpers/mail/section.rb +4 -10
  78. data/lib/sendgrid/helpers/mail/spam_check.rb +5 -27
  79. data/lib/sendgrid/helpers/mail/subscription_tracking.rb +6 -36
  80. data/lib/sendgrid/helpers/mail/substitution.rb +4 -10
  81. data/lib/sendgrid/helpers/mail/tracking_settings.rb +6 -20
  82. data/lib/sendgrid/helpers/permissions/scope.rb +2 -2
  83. data/lib/sendgrid/helpers/settings/README.md +2 -2
  84. data/lib/sendgrid/helpers/settings/settings.rb +1 -1
  85. data/lib/sendgrid/helpers/settings/tracking_settings_dto.rb +3 -5
  86. data/lib/sendgrid/helpers/stats/metrics.rb +5 -7
  87. data/lib/sendgrid/helpers/stats/stats_response.rb +0 -2
  88. data/lib/sendgrid/sendgrid.rb +21 -0
  89. data/lib/sendgrid/twilio_email.rb +21 -0
  90. data/lib/sendgrid/version.rb +1 -1
  91. data/mail_helper_v3.md +12 -12
  92. data/sendgrid-ruby.gemspec +11 -10
  93. data/spec/fixtures/event_webhook.rb +22 -0
  94. data/spec/rack/sendgrid_webhook_verification_spec.rb +142 -0
  95. data/spec/sendgrid/helpers/eventwebhook/eventwebhook_spec.rb +105 -0
  96. data/spec/sendgrid/helpers/settings/mail_settings_dto_spec.rb +1 -1
  97. data/spec/sendgrid/helpers/settings/partner_settings_dto_spec.rb +1 -1
  98. data/spec/sendgrid/helpers/settings/settings_spec.rb +2 -2
  99. data/spec/sendgrid/helpers/settings/tracking_settings_dto_spec.rb +1 -1
  100. data/spec/sendgrid/helpers/settings/user_settings_dto_spec.rb +1 -1
  101. data/spec/sendgrid/helpers/stats/email_stats_spec.rb +22 -23
  102. data/spec/sendgrid/helpers/stats/metrics_spec.rb +19 -20
  103. data/spec/sendgrid/helpers/stats/stats_response_spec.rb +22 -23
  104. data/spec/sendgrid/sendgrid_spec.rb +11 -0
  105. data/spec/sendgrid/twilio_email_spec.rb +11 -0
  106. data/spec/spec_helper.rb +3 -1
  107. data/static/img/github-fork.png +0 -0
  108. data/static/img/github-sign-up.png +0 -0
  109. data/test/sendgrid/helpers/mail/test_attachment.rb +4 -6
  110. data/test/sendgrid/helpers/mail/test_category.rb +0 -2
  111. data/test/sendgrid/helpers/mail/test_email.rb +17 -10
  112. data/test/sendgrid/helpers/mail/test_mail.rb +101 -102
  113. data/test/sendgrid/helpers/mail/test_personalizations.rb +133 -93
  114. data/test/sendgrid/permissions/test_scopes.rb +1 -3
  115. data/test/sendgrid/test_sendgrid-ruby.rb +1967 -1985
  116. data/twilio_sendgrid_logo.png +0 -0
  117. data/use-cases/README.md +16 -0
  118. data/use-cases/domain-authentication.md +5 -0
  119. data/use-cases/email-statistics.md +52 -0
  120. data/use-cases/legacy-templates.md +98 -0
  121. data/use-cases/sms.md +39 -0
  122. data/use-cases/transactional-templates.md +111 -0
  123. data/use-cases/twilio-email.md +13 -0
  124. data/use-cases/twilio-setup.md +54 -0
  125. metadata +88 -34
  126. data/.github/ISSUE_TEMPLATE +0 -17
  127. data/.github/PULL_REQUEST_TEMPLATE +0 -26
  128. data/LICENSE.txt +0 -22
  129. data/USE_CASES.md +0 -377
  130. data/docker/Dockerfile +0 -12
  131. data/docker/README.md +0 -30
  132. data/lib/sendgrid/client.rb +0 -38
  133. data/test/prism.sh +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2a951fe9149a9c9e1ca5e9c9ce053995bb80810c
4
- data.tar.gz: e974acc6b662c335d35ad99702a173a70b656c0c
2
+ SHA256:
3
+ metadata.gz: 8a77256d8db572200bdedd90a2b719d0f36d1a1aecbf17070968b555ed404028
4
+ data.tar.gz: 10081de69452a519515b2fe5f086460935cac375e1d3ade7528412477aab38a9
5
5
  SHA512:
6
- metadata.gz: 9f51d4253bd7708337a981c2f196b4e37f3d8b092a469d11b7300815d3faef5bec7c6df32c98c1be8158dd71146d87d4983b560710d4d8715dcf0f1d55f6b62d
7
- data.tar.gz: 7beeb7406e6e7b5370d42aa5d35b471bcab706b43bead079a58104cc4f641b19f7fa11ec6f17b95d7e0f371c5dde99832369b8fc2940457a907a64d214c0d0d2
6
+ metadata.gz: fa4e2a6a2cd904d43f1c32a57ecbc1ea7db0729fed4cab05303566515975661fd12bb0e1d3f92480b3101276019db4a1858dc060ff35a1055ff587dc5582d071
7
+ data.tar.gz: 10493d88b4836f3f90a8813dbe3bb6d40e141a3d0f1ed99adc35c34a308c7a149104b7bde9829c8bf5b5b1efb7e855ad1236fc43c5f6c444c656a1e6f740599c
data/.codeclimate.yml CHANGED
@@ -16,6 +16,6 @@ ratings:
16
16
  - "**.rb"
17
17
  exclude_paths:
18
18
  - examples/
19
+ - gemfiles/
19
20
  - spec/
20
21
  - test/
21
- - gemfiles/
data/.gitignore CHANGED
@@ -39,3 +39,5 @@ Gemfile.lock
39
39
 
40
40
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
41
41
  .rvmrc
42
+
43
+ prism*
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ Style/StringLiterals:
4
+ Enabled: false
5
+
6
+ Metrics/BlockLength:
7
+ Exclude:
8
+ - 'spec/**/*'
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
- rvm:
3
- - 2.2.6
4
- - 2.3.4
5
- - 2.4.1
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
- before_script:
10
- - mkdir prism
11
- - mkdir prism/bin
12
- - export PATH=$PATH:$PWD/prism/bin/
13
- - ./test/prism.sh
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
- hipchat:
24
+ slack:
25
+ if: branch = main
26
+ on_pull_requests: false
27
+ on_success: never
28
+ on_failure: change
16
29
  rooms:
17
- secure: gYBEwOGBTxHE2nrxsHQqp2UdjRtCX04wVLYEimeT9RG/0LClS4nzJF7DaXLWlAwgLPmk+KV2+nXuLO5oausBr9ODmWhho8G0F90RPR47NupcvT1RM+I2ZbxSjHCUICL22mdnZd8ye/mrk/YtFWYmgmH7ILRK3BuYovXFoKoRnLg=
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
- ## [6.0.0] - 2019-06-04 ##
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](https://github.com/sendgrid/sendgrid-ruby/blob/master/UPGRADE.md). Big thanks to [@jjb](https://github.com/jjb) for the PR!
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](https://github.com/sendgrid/sendgrid-ruby/blob/master/examples/helpers/mail/example.rb#L21).
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](https://github.com/sendgrid/sendgrid-ruby/tree/master/lib/sendgrid/helpers/settings) for details
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 subuser who does not have an API key easier. See #146 for details
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](https://github.com/sendgrid/sendgrid-ruby/blob/master/USE_CASES.md) section, with the first use case example for transactional templates
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](https://github.com/sendgrid/sendgrid-ruby/blob/master/TROUBLESHOOTING.md) section
331
+ - [Troubleshooting](TROUBLESHOOTING.md) section
157
332
 
158
333
  ## [4.0.0] - 2016-07-23 ##
159
334
  ### BREAKING CHANGE