smtpapi 0.1.3 → 0.1.8

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: f89f8ac62abff24d95a7737b412131cdd56650aecfc06f939f79ecb051e4a10e
4
- data.tar.gz: e99048b10947e343bbe0c4fbdb4cdbc4b34a4ea2d96074c6d88333999af4eac7
3
+ metadata.gz: 03db13b8fad2cfff41a85a74ae3d5b43c463b358c35bcad5a8d7dfa8ae1f06b3
4
+ data.tar.gz: 2e6fc93174ddd3aa70ddfe929b2df651d07c0f16926e6cc71c44b2c4a91fc96f
5
5
  SHA512:
6
- metadata.gz: fe322d1390aeb75111d9f9fef9ec9832c2b2c04d649f8eab16514c25cabc27e28fad551982c56e83c67b23f67bd5fcabf34c52c1de460ec9f31ecb544f2ade35
7
- data.tar.gz: fcf9ba724de2636c774adc71b5bb06d5ff0f01fd0df2708ecf47b218a339b6e3572dd26333c99ed9308cc83c85182a70e0906e0f0f474657e1b7ff86d09690b6
6
+ metadata.gz: aa7d466509d90184e2c5c926af626e4a2105b063d5837f986736086dd541c2bc0b792bd1bad9a49cb8ee591c4ad42db8ea39b94795692bc0786e526e84961c8c
7
+ data.tar.gz: ce4488347de557411bb13a8b197d617e84b4148b72d17d130f00b6c6ce24a56a91cd7d5f44aba9a2ddc6d174af3a945e2431e767ed1abf949752657706b88f53
@@ -1,18 +1,18 @@
1
1
  language: ruby
2
2
  rvm:
3
- - ruby-head
4
- - 2.6
5
- - 2.5
6
- - 2.4
7
- - jruby
3
+ - ruby-head
4
+ - 2.7
5
+ - 2.6
6
+ - 2.5
7
+ - 2.4
8
+ - jruby-9.2
8
9
  before_script:
9
- - bundle install
10
+ - make install
10
11
  script:
11
- - rubocop --fail-level=W
12
- - rake test
12
+ - make test
13
13
  matrix:
14
14
  allow_failures:
15
- - rvm: ruby-head
15
+ - rvm: ruby-head
16
16
  fast_finish: true
17
17
  deploy:
18
18
  provider: rubygems
@@ -23,3 +23,12 @@ deploy:
23
23
  tags: true
24
24
  rvm: '2.4'
25
25
  skip_cleanup: true
26
+
27
+ notifications:
28
+ slack:
29
+ if: branch = main
30
+ on_pull_requests: false
31
+ on_success: never
32
+ on_failure: change
33
+ rooms:
34
+ - secure: kyDurUDtXcp+6SfpFeszmzRZEpl2IOFqevGelhKVfx7j+M+p1wvPCkv9vnSdpKaZbQ80EKORxS4ZsnKUL9/yOP2uF9mrzB/DCfzFynw/IVfBejM8nkbf/CmosFh0SkkLuwotaPeqMhAtg1J8Avk1HVKJmihaJfkD6kzQ3PSyKlw=
@@ -3,6 +3,40 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ [2020-08-19] Version 0.1.8
7
+ --------------------------
8
+ **Library - Docs**
9
+ - [PR #72](https://github.com/sendgrid/smtpapi-ruby/pull/72): Update *.md files using Grammarly. Thanks to [@anatolyyyyyy](https://github.com/anatolyyyyyy)!
10
+
11
+ **Library - Chore**
12
+ - [PR #96](https://github.com/sendgrid/smtpapi-ruby/pull/96): update GitHub branch references to use HEAD. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
13
+
14
+
15
+ [2020-08-05] Version 0.1.7
16
+ --------------------------
17
+ **Library - Chore**
18
+ - [PR #36](https://github.com/sendgrid/smtpapi-ruby/pull/36): fix CodeClimate suggestions. Thanks to [@valterbarros](https://github.com/valterbarros)!
19
+
20
+
21
+ [2020-07-22] Version 0.1.6
22
+ --------------------------
23
+ **Library - Docs**
24
+ - [PR #82](https://github.com/sendgrid/smtpapi-ruby/pull/82): Create usage.md file. Thanks to [@prathamsharma92](https://github.com/prathamsharma92)!
25
+ - [PR #83](https://github.com/sendgrid/smtpapi-ruby/pull/83): add code review section in contributions. Thanks to [@prathamsharma92](https://github.com/prathamsharma92)!
26
+
27
+
28
+ [2020-03-04] Version 0.1.5
29
+ --------------------------
30
+ **Library - Chore**
31
+ - [PR #95](https://github.com/sendgrid/smtpapi-ruby/pull/95): add Ruby 2.7 to Travis. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
32
+
33
+
34
+ [2020-02-19] Version 0.1.4
35
+ --------------------------
36
+ **Library - Chore**
37
+ - [PR #87](https://github.com/sendgrid/smtpapi-ruby/pull/87): Add test coverage analysis. Thanks to [@RolandBurrows](https://github.com/RolandBurrows)!
38
+
39
+
6
40
  [2020-01-22] Version 0.1.3
7
41
  --------------------------
8
42
  **Library - Fix**
@@ -1,7 +1,5 @@
1
- Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
1
+ Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
2
2
 
3
- - [CLAs and CCLAs](#cla)
4
- - [Roadmap & Milestones](#roadmap)
5
3
  - [Feature Request](#feature-request)
6
4
  - [Submit a Bug Report](#submit-a-bug-report)
7
5
  - [Improvements to the Codebase](#improvements-to-the-codebase)
@@ -9,22 +7,9 @@ Hello! Thank you for choosing to help contribute to one of the SendGrid open sou
9
7
  - [Testing](#testing)
10
8
  - [Style Guidelines & Naming Conventions](#style-guidelines-and-naming-conventions)
11
9
  - [Creating a Pull Request](#creating-a-pull-request)
10
+ - [Code Reviews](#code-reviews)
12
11
 
13
- <a name="roadmap"></a>
14
- We use [Milestones](https://github.com/sendgrid/smtpapi-ruby/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged.
15
-
16
- <a name="cla"></a>
17
- ## CLAs and CCLAs
18
-
19
- Before you get started, SendGrid requires that a SendGrid Contributor License Agreement (CLA) be filled out by every contributor to a SendGrid open source project.
20
-
21
- Our goal with the CLA is to clarify the rights of our contributors and reduce other risks arising from inappropriate contributions. The CLA also clarifies the rights SendGrid holds in each contribution and helps to avoid misunderstandings over what rights each contributor is required to grant to SendGrid when making a contribution. In this way the CLA encourages broad participation by our open source community and helps us build strong open source projects, free from any individual contributor withholding or revoking rights to any contribution.
22
-
23
- SendGrid does not merge a pull request made against a SendGrid open source project until that pull request is associated with a signed CLA. Copies of the CLA are available [here](https://gist.github.com/SendGridDX/98b42c0a5d500058357b80278fde3be8#file-sendgrid_cla).
24
-
25
- When you create a Pull Request, after a few seconds, a comment will appear with a link to the CLA. Click the link and fill out the brief form and then click the "I agree" button and you are all set. You will not be asked to re-sign the CLA unless we make a change.
26
-
27
- There are a few ways to contribute, which we'll enumerate below:
12
+ We use [Milestones](https://github.com/sendgrid/smtpapi-ruby/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions, and additional PRs are welcomed and encouraged.
28
13
 
29
14
  <a name="feature-request"></a>
30
15
  ## Feature Request
@@ -51,7 +36,7 @@ Before you decide to create a new issue, please try the following:
51
36
 
52
37
  ### Please use our Bug Report Template
53
38
 
54
- In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/smtpapi-ruby/ISSUE_TEMPLATE.md) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting.
39
+ In order to make the process easier, we've included a [sample bug report template](ISSUE_TEMPLATE.md).
55
40
 
56
41
  <a name="improvements-to-the-codebase"></a>
57
42
  ## Improvements to the Codebase
@@ -76,7 +61,7 @@ cd smtpapi-ruby
76
61
 
77
62
  ##### Execute: #####
78
63
 
79
- See the [examples folder](https://github.com/sendgrid/smtpapi-ruby/tree/master/examples) to get started quickly.
64
+ See the [examples folder](examples) to get started quickly.
80
65
 
81
66
  To run the example:
82
67
 
@@ -104,9 +89,9 @@ Source code.
104
89
 
105
90
  All PRs require passing tests before the PR will be reviewed.
106
91
 
107
- All test files are in the [`test`](https://github.com/sendgrid/smtpapi-ruby/tree/master/test) directory.
92
+ All test files are in the [`test`](test) directory.
108
93
 
109
- For the purposes of contributing to this repo, please update the [`test.rb`](https://github.com/sendgrid/smtpapi-ruby/blob/master/test/test.rb) file with unit tests as you modify the code.
94
+ For the purposes of contributing to this repo, please update the [`test.rb`](test/test.rb) file with unit tests as you modify the code.
110
95
 
111
96
  To run the tests:
112
97
 
@@ -155,7 +140,7 @@ Please run your code through:
155
140
 
156
141
  4. Commit your changes in logical chunks. Please adhere to these [git commit
157
142
  message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
158
- or your code is unlikely be merged into the main project. Use Git's
143
+ or your code is unlikely to be merged into the main project. Use Git's
159
144
  [interactive rebase](https://help.github.com/articles/interactive-rebase)
160
145
  feature to tidy up your commits before making them public.
161
146
 
@@ -166,7 +151,7 @@ Please run your code through:
166
151
  5. Locally merge (or rebase) the upstream development branch into your topic branch:
167
152
 
168
153
  ```bash
169
- git pull [--rebase] upstream master
154
+ git pull [--rebase] upstream main
170
155
  ```
171
156
 
172
157
  6. Push your topic branch up to your fork:
@@ -176,6 +161,9 @@ Please run your code through:
176
161
  ```
177
162
 
178
163
  7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
179
- with a clear title and description against the `master` branch. All tests must be passing before we will review the PR.
164
+ with a clear title and description against the `main` branch. All tests must be passing before we will review the PR.
165
+
166
+ <a name="code-reviews"></a>
167
+ ## Code Reviews
180
168
 
181
- If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo.
169
+ If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great <a href="https://help.github.com/articles/about-pull-request-reviews/">information on how to review a Pull Request.</a>
@@ -0,0 +1,79 @@
1
+ # How To Contribute to Twilio SendGrid Repositories via GitHub
2
+ Contributing to the Twilio SendGrid repositories is easy! All you need to do is find an open issue (see the bottom of this page for a list of repositories containing open issues), fix it and submit a pull request. Once you have submitted your pull request, the team can easily review it before it is merged into the repository.
3
+
4
+ To make a pull request, follow these steps:
5
+
6
+ 1. Log into GitHub. If you do not already have a GitHub account, you will have to create one in order to submit a change. Click the Sign up link in the upper right-hand corner to create an account. Enter your username, password, and email address. If you are an employee of Twilio SendGrid, please use your full name with your GitHub account and enter Twilio SendGrid as your company so we can easily identify you.
7
+
8
+ <img src="/static/img/github-sign-up.png" width="800">
9
+
10
+ 2. __[Fork](https://help.github.com/fork-a-repo/)__ the [smtpapi-php](https://github.com/sendgrid/smtpapi-php) repository:
11
+
12
+ <img src="/static/img/github-fork.png" width="800">
13
+
14
+ 3. __Clone__ your fork via the following commands:
15
+
16
+ ```bash
17
+ # Clone your fork of the repo into the current directory
18
+ git clone https://github.com/your_username/smtpapi-php
19
+ # Navigate to the newly cloned directory
20
+ cd smtpapi-php
21
+ # Assign the original repo to a remote called "upstream"
22
+ git remote add upstream https://github.com/sendgrid/smtpapi-php
23
+ ```
24
+
25
+ > Don't forget to replace *your_username* in the URL by your real GitHub username.
26
+
27
+ 4. __Create a new topic branch__ (off the main project development branch) to contain your feature, change, or fix:
28
+
29
+ ```bash
30
+ git checkout -b <topic-branch-name>
31
+ ```
32
+
33
+ 5. __Commit your changes__ in logical chunks.
34
+
35
+ Please adhere to these [git commit message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) or your code is unlikely be merged into the main project. Use Git's [interactive rebase](https://help.github.com/articles/interactive-rebase) feature to tidy up your commits before making them public. Probably you will also have to create tests (if needed) or create or update the example code that demonstrates the functionality of this change to the code.
36
+
37
+ 6. __Locally merge (or rebase)__ the upstream development branch into your topic branch:
38
+
39
+ ```bash
40
+ git pull [--rebase] upstream main
41
+ ```
42
+
43
+ 7. __Push__ your topic branch up to your fork:
44
+
45
+ ```bash
46
+ git push origin <topic-branch-name>
47
+ ```
48
+
49
+ 8. __[Open a Pull Request](https://help.github.com/articles/creating-a-pull-request/#changing-the-branch-range-and-destination-repository/)__ with a clear title and description against the `main` branch. All tests must be passing before we will review the PR.
50
+
51
+ ## Important notice
52
+
53
+ Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](CONTRIBUTING.md) file.
54
+
55
+ ## Repositories with Open, Easy, Help Wanted, Issue Filters
56
+
57
+ * [Python SDK](https://github.com/sendgrid/sendgrid-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
58
+ * [PHP SDK](https://github.com/sendgrid/sendgrid-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
59
+ * [C# SDK](https://github.com/sendgrid/sendgrid-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
60
+ * [Ruby SDK](https://github.com/sendgrid/sendgrid-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
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
+ * [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
+ * [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)
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
+ * [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
+ * [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)
74
+ * [Java HTTP Client](https://github.com/sendgrid/java-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
75
+ * [Ruby HTTP Client](https://github.com/sendgrid/ruby-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
76
+ * [Go HTTP Client](https://github.com/sendgrid/rest/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
77
+ * [Open API Definition](https://github.com/sendgrid/sendgrid-oai/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
78
+ * [DX Automator](https://github.com/sendgrid/dx-automator/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
79
+ * [Documentation](https://github.com/sendgrid/docs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22)
@@ -1,5 +1,9 @@
1
1
  <!--
2
2
  If this is a feature request, make sure you search Issues for an existing request before creating a new one!
3
+
4
+ Please utilize the template below to help us resolve your issue.
5
+
6
+ Note that many issues can be resolved by updating to the latest version.
3
7
  -->
4
8
 
5
9
  ### Issue Summary
@@ -21,6 +25,6 @@ A summary of the issue and the environment in which it occurs. If suitable, incl
21
25
  ```
22
26
 
23
27
  ### Technical details:
24
- * smtpapi-ruby version:
28
+ * smtpapi-ruby version:
25
29
  * ruby version:
26
30
 
@@ -23,7 +23,7 @@ A short description of what this PR does.
23
23
  - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
24
24
  - [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them
25
25
  - [ ] I have titled the PR appropriately
26
- - [ ] I have updated my branch with the master branch
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
28
  - [ ] I have added necessary documentation about the functionality in the appropriate .md file
29
29
  - [ ] I have added inline documentation to the code I modified
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)
1
+ ![SendGrid Logo](twilio_sendgrid_logo.png)
2
2
 
3
- [![Build Status](https://travis-ci.org/sendgrid/smtpapi-ruby.svg?branch=master)](https://travis-ci.org/SendGrid/smtpapi-ruby)
3
+ [![Build Status](https://travis-ci.org/sendgrid/smtpapi-ruby.svg?branch=main)](https://travis-ci.org/SendGrid/smtpapi-ruby)
4
4
  [![Gem Version](https://badge.fury.io/rb/smtpapi.svg)](https://badge.fury.io/rb/smtpapi)
5
5
  [![Email Notifications Badge](https://dx.sendgrid.com/badge/ruby)](https://dx.sendgrid.com/newsletter/ruby)
6
6
  [![Gem Version](https://badge.fury.io/rb/sendgrid-ruby.svg)](https://badge.fury.io/rb/sendgrid-ruby)
@@ -10,12 +10,10 @@
10
10
 
11
11
  **This ruby gem allows you to quickly and more easily generate SendGrid X-SMTPAPI headers.**
12
12
 
13
-
14
13
  # Announcements
14
+ **The default branch name for this repository has been changed to `main` as of 07/27/2020.**
15
15
 
16
- **NEW:** If you're a software engineer who is passionate about #DeveloperExperience and/or #OpenSource, [this is an incredible opportunity to join our #DX team](https://sendgrid.com/careers/role/1421152/?gh_jid=1421152) as a Developer Experience Engineer and work with [@thinkingserious](https://github.com/thinkingserious) and [@aroach](https://github.com/aroach)! Tell your friends :)
17
-
18
- All updates to this library is documented in our [CHANGELOG](https://github.com/sendgrid/smtpapi-ruby/blob/master/CHANGELOG.md).
16
+ All updates to this library is documented in our [CHANGELOG](CHANGELOG.md).
19
17
 
20
18
  # Table of Contents
21
19
  - [Installation](#installation)
@@ -31,7 +29,7 @@ All updates to this library is documented in our [CHANGELOG](https://github.com/
31
29
 
32
30
  ## Prerequisites
33
31
 
34
- - Ruby version 2.2
32
+ - Ruby version >= 2.4
35
33
  - The SendGrid service, starting at the [free level](https://sendgrid.com/free?source=smtpapi-ruby)
36
34
 
37
35
  ## Install Package
@@ -79,7 +77,7 @@ print header.to_json
79
77
  # Usage
80
78
 
81
79
  - [SendGrid Docs](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html)
82
- - [Example Code](https://github.com/sendgrid/smtpapi-ruby/blob/master/examples)
80
+ - [Example Code](examples)
83
81
 
84
82
  <a name="roadmap"></a>
85
83
  # Roadmap
@@ -89,14 +87,14 @@ If you are interested in the future direction of this project, please take a loo
89
87
  <a name="contribute"></a>
90
88
  # How to Contribute
91
89
 
92
- We encourage contribution to our libraries, please see our [CONTRIBUTING](https://github.com/sendgrid/smtpapi-ruby/blob/master/CONTRIBUTING.md) guide for details.
90
+ We encourage contribution to our libraries, please see our [CONTRIBUTING](CONTRIBUTING.md) guide for details.
93
91
 
94
92
  Quick links:
95
93
 
96
- - [Feature Request](https://github.com/sendgrid/smtpapi-ruby/blob/master/CONTRIBUTING.md#feature_request)
97
- - [Bug Reports](https://github.com/sendgrid/smtpapi-ruby/blob/master/CONTRIBUTING.md#submit_a_bug_report)
98
- - [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/smtpapi-ruby/blob/master/CONTRIBUTING.md#cla)
99
- - [Improvements to the Codebase](https://github.com/sendgrid/smtpapi-ruby/blob/master/CONTRIBUTING.md#improvements_to_the_codebase)
94
+ - [Feature Request](CONTRIBUTING.md#feature_request)
95
+ - [Bug Reports](CONTRIBUTING.md#submit_a_bug_report)
96
+ - [Improvements to the Codebase](CONTRIBUTING.md#improvements_to_the_codebase)
97
+ - [Review Pull Requests](CONTRIBUTING.md#code-reviews)
100
98
 
101
99
  ## Credits
102
100
 
@@ -105,9 +103,11 @@ This library was created by [Wataru Sato](https://github.com/awwa) and is now ma
105
103
  <a name="about"></a>
106
104
  # About
107
105
 
108
- smtpapi-ruby is guided and supported by the SendGrid [Developer Experience Team](mailto:dx@sendgrid.com).
106
+ smtpapi-ruby is maintained and funded by Twilio SendGrid, Inc. The names and logos for smtpapi-ruby are trademarks of Twilio SendGrid, Inc.
107
+
108
+ If you need help installing or using the library, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).
109
109
 
110
- smtpapi-ruby is maintained and funded by SendGrid, Inc. The names and logos for smtpapi-ruby are trademarks of SendGrid, Inc.
110
+ If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
111
111
 
112
112
  <a name="license"></a>
113
113
  # License
@@ -8,7 +8,7 @@ If you can't find a solution below, please open an [issue](https://github.com/se
8
8
  <a name="request-header"></a>
9
9
  ## Viewing the Request Header
10
10
 
11
- When debugging or testing, it may be useful to exampine the raw request header to compare against the [documented format](https://sendgrid.com/docs/API_Reference/api_v3.html).
11
+ When debugging or testing, it may be useful to examine the raw request header to compare against the [documented format](https://sendgrid.com/docs/API_Reference/api_v3.html).
12
12
 
13
13
  You can do this like so:
14
14
 
@@ -0,0 +1,4 @@
1
+ # Usage
2
+
3
+ - [SendGrid Docs](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html)
4
+ - [Example Code](examples)
@@ -81,9 +81,7 @@ module Smtpapi
81
81
 
82
82
  def add_filter(filter_name, parameter_name, parameter_value)
83
83
  @filters[filter_name] = {} if @filters[filter_name].nil?
84
- if @filters[filter_name]['settings'].nil?
85
- @filters[filter_name]['settings'] = {}
86
- end
84
+ @filters[filter_name]['settings'] = {} if @filters[filter_name]['settings'].nil?
87
85
  @filters[filter_name]['settings'][parameter_name] = parameter_value
88
86
  self
89
87
  end
@@ -140,7 +138,8 @@ module Smtpapi
140
138
  def json_string
141
139
  escape_unicode(to_array.to_json)
142
140
  end
143
- alias_method :to_json, :json_string
141
+
142
+ alias :to_json :json_string
144
143
 
145
144
  def escape_unicode(str)
146
145
  str.unpack('U*').map do |i|
@@ -2,5 +2,5 @@
2
2
  # SendGrid smtpapi
3
3
  #
4
4
  module Smtpapi
5
- VERSION = '0.1.3'.freeze
5
+ VERSION = '0.1.8'.freeze
6
6
  end
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency 'rake'
21
21
  spec.add_development_dependency('rubocop', '>=0.29.0', '<0.30.0')
22
22
  spec.add_development_dependency('test-unit', '~> 3.0')
23
+ spec.add_development_dependency('simplecov', '~> 0.18.5')
23
24
  end
@@ -1,3 +1,4 @@
1
+ require 'test_helper'
1
2
  require 'test/unit'
2
3
  require './lib/smtpapi'
3
4
 
@@ -6,7 +7,7 @@ require './lib/smtpapi'
6
7
  #
7
8
  class SmtpapiTest < Test::Unit::TestCase
8
9
  def test_version
9
- assert_equal('0.1.3', Smtpapi::VERSION)
10
+ assert_equal('0.1.8', Smtpapi::VERSION)
10
11
  end
11
12
 
12
13
  def test_empty
@@ -0,0 +1,2 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smtpapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wataru Sato
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-22 00:00:00.000000000 Z
12
+ date: 2020-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -59,6 +59,20 @@ dependencies:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: simplecov
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.18.5
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.18.5
62
76
  description: Smtpapi library for SendGrid.
63
77
  email:
64
78
  - awwa500@gmail.com
@@ -75,6 +89,7 @@ files:
75
89
  - CHANGELOG.md
76
90
  - CODE_OF_CONDUCT.md
77
91
  - CONTRIBUTING.md
92
+ - FIRST_TIMERS.md
78
93
  - Gemfile
79
94
  - ISSUE_TEMPLATE.md
80
95
  - LICENSE.md
@@ -83,11 +98,16 @@ files:
83
98
  - README.md
84
99
  - Rakefile
85
100
  - TROUBLESHOOTING.md
101
+ - USAGE.md
86
102
  - examples/example.rb
87
103
  - lib/smtpapi.rb
88
104
  - lib/smtpapi/version.rb
89
105
  - smtpapi.gemspec
106
+ - static/img/github-fork.png
107
+ - static/img/github-sign-up.png
90
108
  - test/test.rb
109
+ - test/test_helper.rb
110
+ - twilio_sendgrid_logo.png
91
111
  - use_cases/README.md
92
112
  homepage: https://github.com/sendgrid/smtpapi-ruby
93
113
  licenses:
@@ -108,9 +128,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
128
  - !ruby/object:Gem::Version
109
129
  version: '0'
110
130
  requirements: []
111
- rubygems_version: 3.0.3
131
+ rubygems_version: 3.0.8
112
132
  signing_key:
113
133
  specification_version: 4
114
134
  summary: Smtpapi library for SendGrid.
115
135
  test_files:
116
136
  - test/test.rb
137
+ - test/test_helper.rb