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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa01e80d5c4628995eb1deeafc8dc22364917d5840e1906e3c6319c2b7a66224
4
- data.tar.gz: 87a42bf375187c6a21fcc2432753ce96cb17c8b47f851c1d3800defc0ef9378f
3
+ metadata.gz: 557de4c1544b5fabf263e6e2ba51ef3436df9d4e1ffcddd2a261364fae1a3741
4
+ data.tar.gz: 9cff016cebe4cefaab71f93f78c90f69a95ab777361f811765dcd20f17942b82
5
5
  SHA512:
6
- metadata.gz: 2689e50ffdd1914c0e0212cbfe3ac6faeb6d4c199edae135c13c5324d8d4d0c5ab39f0b5dbc33d9673c4de20540aa173262a3abfc58b000143430080d5dd68c9
7
- data.tar.gz: b0e843dad160781bf98a01b507a7a5d7bb5a6c607a554cffede4871e7b00ce2e529de438189d33743901db48599a4fcc1b420c972de97b2df4ed54bae61813f3
6
+ metadata.gz: 75f88a178eedb1c00bfb9afd77dfd74662679c49ef4005212bb23ffe7dc70ef89252a52781c3453f575aa92c5816e58a1750486c2e1d80878925e575bdf35312
7
+ data.tar.gz: '08df2ab9cea1a8b25ba49812cebffde0073afc0f50227680045b3e1f8b2a87c4fb6bbe3dca4cc7b53a569d9df07097dcb6bc2f33185104854c5a9a6cefabd61d'
@@ -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**
@@ -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 STMPAPI 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 STMPAPI 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# STMPAPI 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 STMPAPI 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 STMPAPI 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 STMPAPI 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 STMPAPI 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)
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)
File without changes
@@ -19,13 +19,13 @@ Closes #2
19
19
  A short description of what this PR does.
20
20
 
21
21
  ### Checklist
22
- - [ ] I acknowledge that all my contributions will be made under the project's license
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://twilio.com/help/contact), or create a GitHub Issue in this repository.
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.org/sendgrid/sendgrid-ruby.svg?branch=main)](https://travis-ci.org/sendgrid/sendgrid-ruby)
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)](./LICENSE.md)
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.md)
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 authenticaiton.
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
 
@@ -1,4 +1,4 @@
1
- require_relative '../../lib/sendgrid-ruby.rb'
1
+ require_relative '../../lib/sendgrid-ruby'
2
2
  sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
3
3
 
4
4
  ##################################################
@@ -5,6 +5,7 @@ require_relative 'version'
5
5
  class BaseInterface
6
6
  attr_accessor :client
7
7
  attr_reader :request_headers, :host, :version, :impersonate_subuser
8
+
8
9
  # * *Args* :
9
10
  # - +auth+ -> authorization header value
10
11
  # - +host+ -> the base URL for the API
@@ -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__) + '/config.yml')
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__) + '/config.yml')
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|
@@ -3,6 +3,7 @@ require 'json'
3
3
  module SendGrid
4
4
  class TrackingSettings
5
5
  attr_writer :click_tracking, :open_tracking, :subscription_tracking, :ganalytics
6
+
6
7
  def initialize
7
8
  @click_tracking = nil
8
9
  @open_tracking = nil
@@ -3,7 +3,7 @@ require 'yaml'
3
3
 
4
4
  module SendGrid
5
5
  class Scope
6
- SCOPES = YAML.load_file(File.dirname(__FILE__) + '/scopes.yml').freeze
6
+ SCOPES = YAML.load_file("#{File.dirname(__FILE__)}/scopes.yml").freeze
7
7
 
8
8
  class << self
9
9
  def admin_permissions
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '6.3.6'.freeze
2
+ VERSION = '6.3.7'.freeze
3
3
  end
@@ -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 + "\r\n" # Be sure to include the trailing carriage return and newline!
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 .to raise_error(SendGrid::EventWebhook::NotSupportedError)
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__) + '/../../../lib/sendgrid/helpers/permissions/scopes.yml').freeze
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.rb'
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.6', SendGrid::VERSION)
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.md')[2].gsub(/[^\d]/, '')
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.md'))
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.6
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-10-14 00:00:00.000000000 Z
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.md
181
+ - LICENSE
182
182
  - Makefile
183
183
  - PULL_REQUEST_TEMPLATE.md
184
184
  - README.md