smtpapi 0.1.6 → 0.1.7
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/ISSUE_TEMPLATE.md +5 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +1 -0
- data/lib/smtpapi.rb +3 -4
- data/lib/smtpapi/version.rb +1 -1
- data/test/test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f703034c8bca559b9820a2141798ab17659d5d6bebacbbd710a5e11c8c94be82
|
4
|
+
data.tar.gz: '08d97aaf3b6a07da8a6f0f167e75b6dfaf23a9d7250a0cbed9753d36c1d0b5f8'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 320e0446b122b8b0b639e812d6373922c94f2c7475752797878d8252edef29eafb87ef938c33cd9efc03eca34a6561f84f83525014a8f90de8084916297bbb3f
|
7
|
+
data.tar.gz: 5d068b0ff4304e658ed7090d255a6133a0a113ee09e564384ae3d564547984ec9f534c79997fa4d04778cc8b4f2491f7a18b1905433000386378de63023e6806
|
data/.travis.yml
CHANGED
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-08-05] Version 0.1.7
|
7
|
+
--------------------------
|
8
|
+
**Library - Chore**
|
9
|
+
- [PR #36](https://github.com/sendgrid/smtpapi-ruby/pull/36): fix CodeClimate suggestions. Thanks to [@valterbarros](https://github.com/valterbarros)!
|
10
|
+
|
11
|
+
|
6
12
|
[2020-07-22] Version 0.1.6
|
7
13
|
--------------------------
|
8
14
|
**Library - Docs**
|
data/ISSUE_TEMPLATE.md
CHANGED
@@ -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
|
|
data/PULL_REQUEST_TEMPLATE.md
CHANGED
@@ -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
|
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
@@ -11,6 +11,7 @@
|
|
11
11
|
**This ruby gem allows you to quickly and more easily generate SendGrid X-SMTPAPI headers.**
|
12
12
|
|
13
13
|
# Announcements
|
14
|
+
**The default branch name for this repository has been changed to `main` as of 07/27/2020.**
|
14
15
|
|
15
16
|
All updates to this library is documented in our [CHANGELOG](https://github.com/sendgrid/smtpapi-ruby/blob/master/CHANGELOG.md).
|
16
17
|
|
data/lib/smtpapi.rb
CHANGED
@@ -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
|
-
|
141
|
+
|
142
|
+
alias :to_json :json_string
|
144
143
|
|
145
144
|
def escape_unicode(str)
|
146
145
|
str.unpack('U*').map do |i|
|
data/lib/smtpapi/version.rb
CHANGED
data/test/test.rb
CHANGED
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.7
|
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-
|
12
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|