sendgrid-ruby 6.3.6 → 6.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/FIRST_TIMERS.md +7 -7
- data/{LICENSE.md → LICENSE} +0 -0
- data/PULL_REQUEST_TEMPLATE.md +4 -4
- data/README.md +3 -3
- data/USAGE.md +1 -1
- data/examples/scopes/scopes.rb +1 -1
- data/lib/sendgrid/base_interface.rb +1 -0
- data/lib/sendgrid/helpers/inbound/app.rb +1 -1
- data/lib/sendgrid/helpers/inbound/send.rb +1 -1
- data/lib/sendgrid/helpers/mail/tracking_settings.rb +1 -0
- data/lib/sendgrid/helpers/permissions/scope.rb +1 -1
- data/lib/sendgrid/version.rb +1 -1
- data/spec/fixtures/event_webhook.rb +2 -2
- data/spec/sendgrid/helpers/eventwebhook/eventwebhook_spec.rb +1 -1
- data/test/sendgrid/permissions/test_scopes.rb +1 -1
- data/test/sendgrid/test_sendgrid-ruby.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557de4c1544b5fabf263e6e2ba51ef3436df9d4e1ffcddd2a261364fae1a3741
|
4
|
+
data.tar.gz: 9cff016cebe4cefaab71f93f78c90f69a95ab777361f811765dcd20f17942b82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f88a178eedb1c00bfb9afd77dfd74662679c49ef4005212bb23ffe7dc70ef89252a52781c3453f575aa92c5816e58a1750486c2e1d80878925e575bdf35312
|
7
|
+
data.tar.gz: '08df2ab9cea1a8b25ba49812cebffde0073afc0f50227680045b3e1f8b2a87c4fb6bbe3dca4cc7b53a569d9df07097dcb6bc2f33185104854c5a9a6cefabd61d'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
[2020-11-05] Version 6.3.7
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #447](https://github.com/sendgrid/sendgrid-ruby/pull/447): fix rubocop styling errors. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
8
|
+
|
9
|
+
|
4
10
|
[2020-10-14] Version 6.3.6
|
5
11
|
--------------------------
|
6
12
|
**Library - Fix**
|
data/FIRST_TIMERS.md
CHANGED
@@ -61,13 +61,13 @@ Before creating a pull request, make sure that you respect the repository's cons
|
|
61
61
|
* [Node.js SDK](https://github.com/sendgrid/sendgrid-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
62
62
|
* [Java SDK](https://github.com/sendgrid/sendgrid-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
63
63
|
* [Go SDK](https://github.com/sendgrid/sendgrid-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
64
|
-
* [Python
|
65
|
-
* [PHP
|
66
|
-
* [C#
|
67
|
-
* [Ruby
|
68
|
-
* [Node.js
|
69
|
-
* [Java
|
70
|
-
* [Go
|
64
|
+
* [Python SMTPAPI Client](https://github.com/sendgrid/smtpapi-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
65
|
+
* [PHP SMTPAPI Client](https://github.com/sendgrid/smtpapi-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
66
|
+
* [C# SMTPAPI Client](https://github.com/sendgrid/smtpapi-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
67
|
+
* [Ruby SMTPAPI Client](https://github.com/sendgrid/smtpapi-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
68
|
+
* [Node.js SMTPAPI Client](https://github.com/sendgrid/smtpapi-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
69
|
+
* [Java SMTPAPI Client](https://github.com/sendgrid/smtpapi-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
70
|
+
* [Go SMTPAPI Client](https://github.com/sendgrid/smtpapi-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
71
71
|
* [Python HTTP Client](https://github.com/sendgrid/python-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
72
72
|
* [PHP HTTP Client](https://github.com/sendgrid/php-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
73
73
|
* [C# HTTP Client](https://github.com/sendgrid/csharp-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
|
data/{LICENSE.md → LICENSE}
RENAMED
File without changes
|
data/PULL_REQUEST_TEMPLATE.md
CHANGED
@@ -19,13 +19,13 @@ Closes #2
|
|
19
19
|
A short description of what this PR does.
|
20
20
|
|
21
21
|
### Checklist
|
22
|
-
- [
|
22
|
+
- [x] I acknowledge that all my contributions will be made under the project's license
|
23
23
|
- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
|
24
|
-
- [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them
|
24
|
+
- [ ] I have read the [Contribution Guidelines](https://github.com/sendgrid/sendgrid-ruby/blob/main/CONTRIBUTING.md) and my PR follows them
|
25
25
|
- [ ] I have titled the PR appropriately
|
26
26
|
- [ ] I have updated my branch with the main branch
|
27
27
|
- [ ] I have added tests that prove my fix is effective or that my feature works
|
28
|
-
- [ ] I have added necessary documentation about the functionality in the appropriate .md file
|
28
|
+
- [ ] I have added the necessary documentation about the functionality in the appropriate .md file
|
29
29
|
- [ ] I have added inline documentation to the code I modified
|
30
30
|
|
31
|
-
If you have questions, please file a [support ticket](https://
|
31
|
+
If you have questions, please file a [support ticket](https://support.sendgrid.com), or create a GitHub Issue in this repository.
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
![Twilio SendGrid Logo](twilio_sendgrid_logo.png)
|
2
2
|
|
3
|
-
[![Travis Badge](https://travis-ci.
|
3
|
+
[![Travis Badge](https://travis-ci.com/sendgrid/sendgrid-ruby.svg?branch=main)](https://travis-ci.com/sendgrid/sendgrid-ruby)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sendgrid-ruby.svg)](https://badge.fury.io/rb/sendgrid-ruby)
|
5
5
|
[![Email Notifications Badge](https://dx.sendgrid.com/badge/ruby)](https://dx.sendgrid.com/newsletter/ruby)
|
6
|
-
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](
|
6
|
+
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
7
7
|
[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
|
8
8
|
[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-ruby.svg)](https://github.com/sendgrid/sendgrid-ruby/graphs/contributors)
|
9
9
|
[![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-ruby/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-ruby)
|
@@ -220,4 +220,4 @@ If you've instead found a bug in the library or would like new features added, g
|
|
220
220
|
|
221
221
|
<a name="license"></a>
|
222
222
|
# License
|
223
|
-
[The MIT License (MIT)](LICENSE
|
223
|
+
[The MIT License (MIT)](LICENSE)
|
data/USAGE.md
CHANGED
@@ -3197,7 +3197,7 @@ puts response.status_code
|
|
3197
3197
|
puts response.body
|
3198
3198
|
puts response.headers
|
3199
3199
|
```
|
3200
|
-
## Remove an IP from a domain
|
3200
|
+
## Remove an IP from a domain authentication.
|
3201
3201
|
|
3202
3202
|
**This endpoint allows you to remove a domain's IP address from that domain's authentication.**
|
3203
3203
|
|
data/examples/scopes/scopes.rb
CHANGED
@@ -18,7 +18,7 @@ require 'yaml'
|
|
18
18
|
class Main < Sinatra::Base
|
19
19
|
configure :production, :development do
|
20
20
|
enable :logging
|
21
|
-
set :config, YAML.load_file(File.dirname(__FILE__)
|
21
|
+
set :config, YAML.load_file("#{File.dirname(__FILE__)}/config.yml")
|
22
22
|
end
|
23
23
|
|
24
24
|
get '/' do
|
@@ -8,7 +8,7 @@ OPTS = {}.freeze
|
|
8
8
|
opt = OptionParser.new
|
9
9
|
opt.on('--host=HOST') { |v| OPTS[:host] = v }
|
10
10
|
argv = opt.parse!(ARGV)
|
11
|
-
config = YAML.load_file(File.dirname(__FILE__)
|
11
|
+
config = YAML.load_file("#{File.dirname(__FILE__)}/config.yml")
|
12
12
|
host = OPTS[:host] || config['host']
|
13
13
|
client = SendGrid::Client.new(host: host)
|
14
14
|
File.open(argv[0]) do |file|
|
data/lib/sendgrid/version.rb
CHANGED
@@ -7,7 +7,7 @@ module Fixtures
|
|
7
7
|
SIGNATURE = 'MEUCIGHQVtGj+Y3LkG9fLcxf3qfI10QysgDWmMOVmxG0u6ZUAiEAyBiXDWzM+uOe5W0JuG+luQAbPIqHh89M15TluLtEZtM='.freeze
|
8
8
|
FAILING_SIGNATURE = 'MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH3j/0='.freeze
|
9
9
|
TIMESTAMP = '1600112502'.freeze
|
10
|
-
PAYLOAD = [
|
10
|
+
PAYLOAD = "#{[
|
11
11
|
{
|
12
12
|
email: 'hello@world.com',
|
13
13
|
event: 'dropped',
|
@@ -17,6 +17,6 @@ module Fixtures
|
|
17
17
|
'smtp-id': '<LRzXl_NHStOGhQ4kofSm_A@ismtpd0039p1iad1.sendgrid.net>',
|
18
18
|
timestamp: 1_600_112_492
|
19
19
|
}
|
20
|
-
].to_json
|
20
|
+
].to_json}\r\n".freeze # Be sure to include the trailing carriage return and newline!
|
21
21
|
end
|
22
22
|
end
|
@@ -78,7 +78,7 @@ describe SendGrid::EventWebhook do
|
|
78
78
|
Fixtures::EventWebhook::SIGNATURE,
|
79
79
|
Fixtures::EventWebhook::TIMESTAMP
|
80
80
|
)
|
81
|
-
end
|
81
|
+
end.to raise_error(SendGrid::EventWebhook::NotSupportedError)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -11,7 +11,7 @@ class TestCategory < Minitest::Test
|
|
11
11
|
# 4. test read only and full access scopes by loading scopes.yaml
|
12
12
|
|
13
13
|
def setup
|
14
|
-
@scopes_from_yaml = YAML.load_file(File.dirname(__FILE__)
|
14
|
+
@scopes_from_yaml = YAML.load_file("#{File.dirname(__FILE__)}/../../../lib/sendgrid/helpers/permissions/scopes.yml").freeze
|
15
15
|
end
|
16
16
|
|
17
17
|
def test_admin_scopes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'simplecov'
|
2
2
|
SimpleCov.start
|
3
|
-
require_relative '../../lib/sendgrid-ruby
|
3
|
+
require_relative '../../lib/sendgrid-ruby'
|
4
4
|
require 'ruby_http_client'
|
5
5
|
require 'minitest/autorun'
|
6
6
|
require 'minitest/unit'
|
@@ -33,7 +33,7 @@ class TestAPI < MiniTest::Test
|
|
33
33
|
assert_equal(test_headers, sg.request_headers)
|
34
34
|
assert_equal('v3', sg.version)
|
35
35
|
assert_equal(subuser, sg.impersonate_subuser)
|
36
|
-
assert_equal('6.3.
|
36
|
+
assert_equal('6.3.7', SendGrid::VERSION)
|
37
37
|
assert_instance_of(SendGrid::Client, sg.client)
|
38
38
|
end
|
39
39
|
|
@@ -2653,7 +2653,7 @@ class TestAPI < MiniTest::Test
|
|
2653
2653
|
|
2654
2654
|
def test_license_file_year
|
2655
2655
|
# Read the third line from the license file
|
2656
|
-
year = IO.readlines('./LICENSE
|
2656
|
+
year = IO.readlines('./LICENSE')[2].gsub(/[^\d]/, '')
|
2657
2657
|
assert_equal(Time.now.year.to_s, year)
|
2658
2658
|
end
|
2659
2659
|
|
@@ -2690,7 +2690,7 @@ class TestAPI < MiniTest::Test
|
|
2690
2690
|
end
|
2691
2691
|
|
2692
2692
|
def test_license_exists
|
2693
|
-
assert(File.file?('./LICENSE
|
2693
|
+
assert(File.file?('./LICENSE'))
|
2694
2694
|
end
|
2695
2695
|
|
2696
2696
|
def test_pull_request_template_exists
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.3.
|
4
|
+
version: 6.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elmer Thomas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby_http_client
|
@@ -178,7 +178,7 @@ files:
|
|
178
178
|
- FIRST_TIMERS.md
|
179
179
|
- Gemfile
|
180
180
|
- ISSUE_TEMPLATE.md
|
181
|
-
- LICENSE
|
181
|
+
- LICENSE
|
182
182
|
- Makefile
|
183
183
|
- PULL_REQUEST_TEMPLATE.md
|
184
184
|
- README.md
|