sendgrid-ruby 4.0.7 → 4.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9843482338c61a87550111fdaf99d40961aa31eb
4
- data.tar.gz: e64700784ea090cb52408d6537159a61f395e615
3
+ metadata.gz: 7a840acb40e2da148fe009b968673e85da03b126
4
+ data.tar.gz: 835cfbda40d0ef43706814349b7db9bd580c622c
5
5
  SHA512:
6
- metadata.gz: 4eb9d201e5ed811d60561047a25ea90c4768f4180be49c0b496372e9fcc4d53c83a46e60175c01cec8c7ba79397ad803e3b5faeba26369b0119b701a30a166cf
7
- data.tar.gz: c3b4371bc2ef5a1c5f4456ee9c68966cc52222dfde9bdea8728ae6d2c1b21f1e3c7ac23c88d41acef924a783cdc36f51350fe2d5cedf5c5ec83d0b15820298ac
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)
@@ -22,7 +22,8 @@ module SendGrid
22
22
  @request_headers = JSON.parse('
23
23
  {
24
24
  "Authorization": "Bearer ' + @api_key + '",
25
- "Accept": "application/json"
25
+ "Accept": "application/json",
26
+ "User-agent": "' + @user_agent + '"
26
27
  }
27
28
  ')
28
29
 
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '4.0.7'
2
+ VERSION = '4.0.8'
3
3
  end
@@ -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.7", SendGrid::VERSION)
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.7
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-01-25 00:00:00.000000000 Z
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.4.8
130
+ rubygems_version: 2.6.8
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Official SendGrid Gem