smtpapi 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af640577636ac62deb6984eb06d9eb7839c5277dcd8313500034403e61740797
4
- data.tar.gz: 39947511c7fcc7ebd71226a43308f19c36afde3e111042ff29bcbf060e71c2b4
3
+ metadata.gz: f703034c8bca559b9820a2141798ab17659d5d6bebacbbd710a5e11c8c94be82
4
+ data.tar.gz: '08d97aaf3b6a07da8a6f0f167e75b6dfaf23a9d7250a0cbed9753d36c1d0b5f8'
5
5
  SHA512:
6
- metadata.gz: 806488937861caee70a5d8f3b5aa7da3716f43a9daf44677c60f574e83daa124837238cbb0dcf838d83a4a201705301e77db7a90f3e190b301270a792a075a24
7
- data.tar.gz: 2c6c7ef3634c8ac3b5cda1bc24915864bb48fa803dd7c1abfc1ff02bf0fb90a453dffdb23469f26d8fa25b8c43abd49f6765ad1a0fa8d2a64eccce292ce06194
6
+ metadata.gz: 320e0446b122b8b0b639e812d6373922c94f2c7475752797878d8252edef29eafb87ef938c33cd9efc03eca34a6561f84f83525014a8f90de8084916297bbb3f
7
+ data.tar.gz: 5d068b0ff4304e658ed7090d255a6133a0a113ee09e564384ae3d564547984ec9f534c79997fa4d04778cc8b4f2491f7a18b1905433000386378de63023e6806
@@ -27,7 +27,7 @@ deploy:
27
27
 
28
28
  notifications:
29
29
  slack:
30
- if: branch = master
30
+ if: branch = main
31
31
  on_pull_requests: false
32
32
  on_success: never
33
33
  on_failure: change
@@ -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**
@@ -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
@@ -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
 
@@ -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.6'.freeze
5
+ VERSION = '0.1.7'.freeze
6
6
  end
@@ -7,7 +7,7 @@ require './lib/smtpapi'
7
7
  #
8
8
  class SmtpapiTest < Test::Unit::TestCase
9
9
  def test_version
10
- assert_equal('0.1.6', Smtpapi::VERSION)
10
+ assert_equal('0.1.7', Smtpapi::VERSION)
11
11
  end
12
12
 
13
13
  def test_empty
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.6
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-07-22 00:00:00.000000000 Z
12
+ date: 2020-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake