smtpapi 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/CODE_OF_CONDUCT.md +57 -25
- data/CONTRIBUTING.md +1 -1
- data/ISSUE_TEMPLATE.md +26 -0
- data/LICENSE.md +21 -0
- data/PULL_REQUEST_TEMPLATE.md +31 -0
- data/README.md +2 -2
- data/lib/smtpapi/version.rb +1 -1
- data/test/test.rb +6 -6
- metadata +6 -6
- data/.github/ISSUE_TEMPLATE +0 -17
- data/.github/PULL_REQUEST_TEMPLATE +0 -24
- data/LICENSE.txt +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67133d1164778251a9c37490925e80fc1d87111a90ab856fc3c5d3389e8f0905
|
4
|
+
data.tar.gz: be492d0b300754ac81fe33483a7f2d41ce9c349681f302f80135e7b7b9e6e3de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84814ed5deacb38587faac01a58fd9b01d6935dc784566037b156293a55cf665cfe96edc744722a85871b0932942fe805dc1dedcdb2a6d341062adff749de83d
|
7
|
+
data.tar.gz: f0a3d5da5f36f16e120124640194f61e244a81d55f269bbeaf161896efb14f5a49eb1eddda9b4a4625be245a8e5dd2d0fb63a65c6d64211cc6e0072edca9cb10
|
data/.travis.yml
CHANGED
@@ -18,7 +18,7 @@ deploy:
|
|
18
18
|
provider: rubygems
|
19
19
|
api_key:
|
20
20
|
secure: PRNz0pPyO99KdYcQ1WKkunc3TOz1N5ZmdT997KlzRYa5uos+IFqr5UsztJzOrus5iWoQdKKtLGSRYe1SFnXDkSOwK61Q5YvYdSqF3OE/QD63qHub+is4CxmfMmXg+eBGreSH+kIWlSD8N3ic2CDZR8JoQmhPcit6zCZSN3WVRfY=
|
21
|
-
gem: smtpapi
|
21
|
+
gem: smtpapi
|
22
22
|
on:
|
23
23
|
tags: true
|
24
24
|
rvm: '2.4'
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ 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-01-22] Version 0.1.2
|
7
|
+
--------------------------
|
8
|
+
**Library - Docs**
|
9
|
+
- [PR #93](https://github.com/sendgrid/smtpapi-ruby/pull/93): baseline all the templated markdown docs. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
10
|
+
|
11
|
+
|
6
12
|
[2020-01-09] Version 0.1.1
|
7
13
|
--------------------------
|
8
14
|
**Library - Chore**
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,41 +1,73 @@
|
|
1
|
-
#
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
2
|
|
3
|
-
|
3
|
+
## Our Pledge
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
7
11
|
|
8
|
-
|
9
|
-
Members of the community are considerate of their peers, which include other contributors and users of SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views.
|
12
|
+
## Our Standards
|
10
13
|
|
11
|
-
|
12
|
-
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
13
16
|
|
14
|
-
|
17
|
+
- Using welcoming and inclusive language
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
19
|
+
- Gracefully accepting constructive criticism
|
20
|
+
- Focusing on what is best for the community
|
21
|
+
- Showing empathy towards other community members
|
15
22
|
|
16
|
-
|
17
|
-
Community discussions often involve interested parties. We expect participants to be aware when they are conflicted due to employment or other projects they are involved in and disclose those interests to other project members. When in doubt, over-disclose. Perceived conflicts of interest are important to address so that the community’s decisions are credible even when unpopular, difficult or favorable to the interests of one group over another.
|
23
|
+
Examples of unacceptable behavior by participants include:
|
18
24
|
|
19
|
-
|
20
|
-
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
- Public or private harassment
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
21
33
|
|
22
|
-
|
23
|
-
Most members of the SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors.
|
34
|
+
## Our Responsibilities
|
24
35
|
|
25
|
-
|
26
|
-
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
27
39
|
|
28
|
-
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
29
45
|
|
30
|
-
|
46
|
+
## Scope
|
31
47
|
|
32
|
-
|
33
|
-
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at open-source@twilio.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
34
67
|
|
35
68
|
## Attribution
|
36
69
|
|
37
|
-
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
38
72
|
|
39
|
-
|
40
|
-
* [Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct)
|
41
|
-
* [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
data/CONTRIBUTING.md
CHANGED
@@ -51,7 +51,7 @@ Before you decide to create a new issue, please try the following:
|
|
51
51
|
|
52
52
|
### Please use our Bug Report Template
|
53
53
|
|
54
|
-
In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/smtpapi-ruby
|
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.
|
55
55
|
|
56
56
|
<a name="improvements-to-the-codebase"></a>
|
57
57
|
## Improvements to the Codebase
|
data/ISSUE_TEMPLATE.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<!--
|
2
|
+
If this is a feature request, make sure you search Issues for an existing request before creating a new one!
|
3
|
+
-->
|
4
|
+
|
5
|
+
### Issue Summary
|
6
|
+
A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, or code examples.
|
7
|
+
|
8
|
+
### Steps to Reproduce
|
9
|
+
1. This is the first step
|
10
|
+
2. This is the second step
|
11
|
+
3. Further steps, etc.
|
12
|
+
|
13
|
+
### Code Snippet
|
14
|
+
```ruby
|
15
|
+
# paste code here
|
16
|
+
```
|
17
|
+
|
18
|
+
### Exception/Log
|
19
|
+
```
|
20
|
+
# paste exception/log here
|
21
|
+
```
|
22
|
+
|
23
|
+
### Technical details:
|
24
|
+
* smtpapi-ruby version:
|
25
|
+
* ruby version:
|
26
|
+
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (C) 2020, Twilio SendGrid, Inc. <help@twilio.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
10
|
+
so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!--
|
2
|
+
We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines, then fill out the blanks below.
|
3
|
+
|
4
|
+
Please format the PR title appropriately based on the type of change:
|
5
|
+
<type>[!]: <description>
|
6
|
+
Where <type> is one of: docs, chore, feat, fix, test.
|
7
|
+
Add a '!' after the type for breaking changes (e.g. feat!: new breaking feature).
|
8
|
+
|
9
|
+
**All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.**
|
10
|
+
|
11
|
+
Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
|
12
|
+
e.g.
|
13
|
+
Fixes #1
|
14
|
+
Closes #2
|
15
|
+
-->
|
16
|
+
|
17
|
+
# Fixes #
|
18
|
+
|
19
|
+
A short description of what this PR does.
|
20
|
+
|
21
|
+
### Checklist
|
22
|
+
- [ ] I acknowledge that all my contributions will be made under the project's license
|
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
|
25
|
+
- [ ] I have titled the PR appropriately
|
26
|
+
- [ ] I have updated my branch with the master branch
|
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
|
29
|
+
- [ ] I have added inline documentation to the code I modified
|
30
|
+
|
31
|
+
If you have questions, please file a [support ticket](https://twilio.com/help/contact), or create a GitHub Issue in this repository.
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
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)
|
7
|
-
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.
|
7
|
+
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.md)
|
8
8
|
[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
|
9
9
|
[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/smtpapi-ruby.svg)](https://github.com/sendgrid/smtpapi-ruby/graphs/contributors)
|
10
10
|
|
@@ -112,4 +112,4 @@ smtpapi-ruby is maintained and funded by SendGrid, Inc. The names and logos for
|
|
112
112
|
<a name="license"></a>
|
113
113
|
# License
|
114
114
|
|
115
|
-
[The MIT License (MIT)](LICENSE.
|
115
|
+
[The MIT License (MIT)](LICENSE.md)
|
data/lib/smtpapi/version.rb
CHANGED
data/test/test.rb
CHANGED
@@ -6,7 +6,7 @@ require './lib/smtpapi'
|
|
6
6
|
#
|
7
7
|
class SmtpapiTest < Test::Unit::TestCase
|
8
8
|
def test_version
|
9
|
-
assert_equal('0.1.
|
9
|
+
assert_equal('0.1.2', Smtpapi::VERSION)
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_empty
|
@@ -246,7 +246,7 @@ class SmtpapiTest < Test::Unit::TestCase
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def test_issue_template_exists
|
249
|
-
assert(File.file?('
|
249
|
+
assert(File.file?('./ISSUE_TEMPLATE.md'))
|
250
250
|
end
|
251
251
|
|
252
252
|
def test_license_exists
|
@@ -254,7 +254,7 @@ class SmtpapiTest < Test::Unit::TestCase
|
|
254
254
|
end
|
255
255
|
|
256
256
|
def test_pull_request_template_exists
|
257
|
-
assert(File.file?('
|
257
|
+
assert(File.file?('./PULL_REQUEST_TEMPLATE.md'))
|
258
258
|
end
|
259
259
|
|
260
260
|
def test_readme_exists
|
@@ -274,11 +274,11 @@ class SmtpapiTest < Test::Unit::TestCase
|
|
274
274
|
# end
|
275
275
|
|
276
276
|
def test_license_date_is_updated
|
277
|
-
|
278
|
-
/Copyright \(
|
277
|
+
license_year = IO.read('LICENSE.md').match(
|
278
|
+
/Copyright \(C\) (\d{4}), Twilio SendGrid/
|
279
279
|
)[1]
|
280
280
|
current_year = Time.new.year
|
281
281
|
|
282
|
-
assert_equal(current_year,
|
282
|
+
assert_equal(current_year, license_year.to_i)
|
283
283
|
end
|
284
284
|
end
|
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.
|
4
|
+
version: 0.1.2
|
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-
|
12
|
+
date: 2020-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -69,8 +69,6 @@ extra_rdoc_files: []
|
|
69
69
|
files:
|
70
70
|
- ".codeclimate.yml"
|
71
71
|
- ".env_sample"
|
72
|
-
- ".github/ISSUE_TEMPLATE"
|
73
|
-
- ".github/PULL_REQUEST_TEMPLATE"
|
74
72
|
- ".gitignore"
|
75
73
|
- ".rubocop.yml"
|
76
74
|
- ".travis.yml"
|
@@ -78,8 +76,10 @@ files:
|
|
78
76
|
- CODE_OF_CONDUCT.md
|
79
77
|
- CONTRIBUTING.md
|
80
78
|
- Gemfile
|
81
|
-
-
|
79
|
+
- ISSUE_TEMPLATE.md
|
80
|
+
- LICENSE.md
|
82
81
|
- Makefile
|
82
|
+
- PULL_REQUEST_TEMPLATE.md
|
83
83
|
- README.md
|
84
84
|
- Rakefile
|
85
85
|
- TROUBLESHOOTING.md
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.0.
|
111
|
+
rubygems_version: 3.0.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Smtpapi library for SendGrid.
|
data/.github/ISSUE_TEMPLATE
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#### Issue Summary
|
2
|
-
|
3
|
-
A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, code examples.
|
4
|
-
|
5
|
-
|
6
|
-
#### Steps to Reproduce
|
7
|
-
|
8
|
-
1. This is the first step
|
9
|
-
2. This is the second step
|
10
|
-
3. Further steps, etc.
|
11
|
-
|
12
|
-
Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?
|
13
|
-
|
14
|
-
#### Technical details:
|
15
|
-
|
16
|
-
* smtpapi-ruby Version: master (latest commit: [commit number])
|
17
|
-
* Ruby Version: 2.2
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines given above, then fill out the blanks below.
|
3
|
-
|
4
|
-
|
5
|
-
Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
|
6
|
-
e.g.
|
7
|
-
Fixes #1
|
8
|
-
Closes #2
|
9
|
-
-->
|
10
|
-
# Fixes #
|
11
|
-
|
12
|
-
### Checklist
|
13
|
-
- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
|
14
|
-
- [ ] I have read the [Contribution Guide] and my PR follows them.
|
15
|
-
- [ ] I updated my branch with the master branch.
|
16
|
-
- [ ] I have added tests that prove my fix is effective or that my feature works
|
17
|
-
- [ ] I have added necessary documentation about the functionality in the appropriate .md file
|
18
|
-
- [ ] I have added in line documentation to the code I modified
|
19
|
-
|
20
|
-
### Short description of what this PR does:
|
21
|
-
-
|
22
|
-
-
|
23
|
-
|
24
|
-
If you have questions, please send an email to [Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository.
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2012-2020 Twilio SendGrid, Inc.
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|