sendgrid-ruby 4.0.7 → 4.0.8
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 +4 -0
- data/lib/sendgrid/client.rb +2 -1
- data/lib/sendgrid/version.rb +1 -1
- data/test/sendgrid/test_sendgrid-ruby.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a840acb40e2da148fe009b968673e85da03b126
|
|
4
|
+
data.tar.gz: 835cfbda40d0ef43706814349b7db9bd580c622c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 338e8d6b6a2d2f9ae1f91cc96945f59b607a5c0c9ab859db4cf4a0c5e57227178f26c48714204b357ea099f18aa8e96f208a2ece258f763d4b5748893e037af2
|
|
7
|
+
data.tar.gz: 3b24b4d95faddb1a5fd1376ce956738372931476bd712a6c697153fa322b00fba4495d76aeeec698e41ef6263b22a96d645c642e24c6636020a034a694633c14
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [4.0.8] - 2016-2-17 ##
|
|
5
|
+
### Add
|
|
6
|
+
- Solves #147: Add User Agent string
|
|
7
|
+
|
|
4
8
|
## [4.0.7] - 2016-1-25 ##
|
|
5
9
|
### Fixes
|
|
6
10
|
- [Pull Request #7](https://github.com/sendgrid/ruby-http-client/pull/7)
|
data/lib/sendgrid/client.rb
CHANGED
data/lib/sendgrid/version.rb
CHANGED
|
@@ -44,16 +44,18 @@ class TestAPI < MiniTest::Test
|
|
|
44
44
|
sg = SendGrid::API.new(api_key: "SENDGRID_API_KEY", host: "https://api.test.com", request_headers: headers, version: "v3")
|
|
45
45
|
|
|
46
46
|
assert_equal("https://api.test.com", sg.host)
|
|
47
|
+
user_agent = "sendgrid/#{SendGrid::VERSION};ruby"
|
|
47
48
|
test_headers = JSON.parse('
|
|
48
49
|
{
|
|
49
50
|
"Authorization": "Bearer SENDGRID_API_KEY",
|
|
50
51
|
"Accept": "application/json",
|
|
51
|
-
"X-Test": "test"
|
|
52
|
+
"X-Test": "test",
|
|
53
|
+
"User-agent": "' + user_agent + '"
|
|
52
54
|
}
|
|
53
55
|
')
|
|
54
56
|
assert_equal(test_headers, sg.request_headers)
|
|
55
57
|
assert_equal("v3", sg.version)
|
|
56
|
-
assert_equal("4.0.
|
|
58
|
+
assert_equal("4.0.8", SendGrid::VERSION)
|
|
57
59
|
assert_instance_of(SendGrid::Client, sg.client)
|
|
58
60
|
end
|
|
59
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.0.
|
|
4
|
+
version: 4.0.8
|
|
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-
|
|
13
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: ruby_http_client
|
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
127
|
version: '0'
|
|
128
128
|
requirements: []
|
|
129
129
|
rubyforge_project:
|
|
130
|
-
rubygems_version: 2.
|
|
130
|
+
rubygems_version: 2.6.8
|
|
131
131
|
signing_key:
|
|
132
132
|
specification_version: 4
|
|
133
133
|
summary: Official SendGrid Gem
|