sendgrid-ruby 4.1.1 → 4.2.0
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/sendgrid/client.rb +1 -1
- data/lib/sendgrid/version.rb +1 -1
- data/test/sendgrid/test_sendgrid-ruby.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e1e76da22c9fe7be7a03f415d7bd8664fc2618
|
4
|
+
data.tar.gz: 5179dd042fba64eced6f9e70abdfc542eb827e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aab1b549e49661d83aff0a81489fce379ef2f1587979cab7c31f103edf77a208c93237308837acdda882205d55b68f288c313e7b19d9bf687e363605d02f083f
|
7
|
+
data.tar.gz: 5ae32bc2057d8941b9c8e3e3118ad254e4297dedabc9be80f9cc6aa5452e8c1daf4c7bcea3914e6cdfa2533c8dfeafc4efd76d05a5294a9dc2ddf836a8539764
|
data/CHANGELOG.md
CHANGED
@@ -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
|
+
## [4.2.0] - 2016-4-10 ##
|
5
|
+
### Added
|
6
|
+
- #148: Set api_key to empty string
|
7
|
+
- This makes creating an API key for a SendGrid subuser who does not have an API key easier. See #146 for details
|
8
|
+
- Thanks to [Adam Beck](https://github.com/Gwash3189) for the pull request!
|
9
|
+
|
4
10
|
## [4.1.1] - 2016-4-6 ##
|
5
11
|
### Fixed
|
6
12
|
- #115 #134: Fix typos in initialize methods
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ We appreciate your continued support, thank you!
|
|
30
30
|
|
31
31
|
## Prerequisites
|
32
32
|
|
33
|
-
- Ruby version 2.
|
33
|
+
- Ruby version 2.2+
|
34
34
|
- The SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-ruby)
|
35
35
|
|
36
36
|
## Setup Environment Variables
|
data/lib/sendgrid/client.rb
CHANGED
@@ -14,7 +14,7 @@ module SendGrid
|
|
14
14
|
# - +version+ -> the version of the API you wish to access,
|
15
15
|
# currently only "v3" is supported
|
16
16
|
#
|
17
|
-
def initialize(api_key:
|
17
|
+
def initialize(api_key: '', host: nil, request_headers: nil, version: nil)
|
18
18
|
@api_key = api_key
|
19
19
|
@host = host ? host : 'https://api.sendgrid.com'
|
20
20
|
@version = version ? version : 'v3'
|
data/lib/sendgrid/version.rb
CHANGED
@@ -13,7 +13,7 @@ class TestAPI < MiniTest::Test
|
|
13
13
|
IO.popen(['curl', '-s', 'https://raw.githubusercontent.com/stoplightio/prism/master/install.sh']) do |io|
|
14
14
|
out = io.read
|
15
15
|
unless system(out)
|
16
|
-
puts "Error downloading the prism binary, you can try downloading directly here (https://github.com/stoplightio/prism/releases) and place in your /
|
16
|
+
puts "Error downloading the prism binary, you can try downloading directly here (https://github.com/stoplightio/prism/releases) and place in your /usr/local/bin directory, #{out}"
|
17
17
|
exit
|
18
18
|
end
|
19
19
|
end
|
@@ -55,7 +55,7 @@ class TestAPI < MiniTest::Test
|
|
55
55
|
')
|
56
56
|
assert_equal(test_headers, sg.request_headers)
|
57
57
|
assert_equal("v3", sg.version)
|
58
|
-
assert_equal("4.
|
58
|
+
assert_equal("4.2.0", SendGrid::VERSION)
|
59
59
|
assert_instance_of(SendGrid::Client, sg.client)
|
60
60
|
end
|
61
61
|
|
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: 4.
|
4
|
+
version: 4.2.0
|
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: 2017-04-
|
13
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby_http_client
|