sendgrid-ruby 3.0.7 → 4.0.0

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: f2e4c4f609ac09eee2af7a117a7e149d322229f2
4
- data.tar.gz: 0322d3868fbc93f37f4f1b2ae410ed5cf7d9a9e6
3
+ metadata.gz: 58e24c0cfd83197efded57156c9b03e9426669cd
4
+ data.tar.gz: 50fcc1d3309165332a3abd6834e5076e862bbbe9
5
5
  SHA512:
6
- metadata.gz: 22d6d4a1ed6f4d5f402e0b179d18a7632851c94fb62b19a04150a8c006a51509abb6bfca3929f98f5497470464c503e7c5e44f18ed8d7de2165c2c562f5d3d34
7
- data.tar.gz: 74fc4c64185b74b97b89173ae1f24424544bb7fcf75760707ddbb2ee2da3a81e2aba00177ec002088a88631eb3e81c4f48d544f33dc801cc06aa7cd707074ed0
6
+ metadata.gz: 64b4d83d8c7d4d2a0720902442f991d277c8570d5f30f70873fe9fb1a65d57063432ca76f378ac434d7425c0009c2280399b27e5249da6e32af564158ea713d8
7
+ data.tar.gz: bc15d4aa204006ba4b2c3ad52566c4bb8a2c08b06b8f4a46d7fd23749b7ffc49f836d70f59faed22ada7ca8754372594b113e5ec4cc7242ddacd7fae8a9076fc
@@ -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.0.0] - 2016-07-23 ##
5
+ - BREAKING CHANGE
6
+ - Update dependency to [ruby-http-client](https://github.com/sendgrid/ruby-http-client/releases/tag/v3.0.0)
7
+ - Response headers now return a hash instead of a string
8
+ - Thanks to [Chris France](https://github.com/hipsterelitist) for the pull request!
9
+
4
10
  ## [3.0.7] - 2016-07-20 ##
5
11
  ### Added
6
12
  - README updates
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  **This library allows you to quickly and easily use the SendGrid Web API v3 via Ruby.**
5
5
 
6
- Version 3.X.X of this library provides full support for all SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint).
6
+ Version 3.X.X+ of this library provides full support for all SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint).
7
7
 
8
8
  This library represents the beginning of a new path for SendGrid. We want this library to be community driven and SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/sendgrid/sendgrid-ruby/issues) and [pull requests](https://github.com/sendgrid/sendgrid-ruby/blob/master/CONTRIBUTING.md) or simply upvote or comment on existing issues or pull requests.
9
9
 
@@ -14,8 +14,8 @@ def hello_world
14
14
  sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'], host: 'https://api.sendgrid.com')
15
15
  response = sg.client.mail._('send').post(request_body: mail.to_json)
16
16
  puts response.status_code
17
- puts response.response_body
18
- puts response.response_headers
17
+ puts response.body
18
+ puts response.headers
19
19
  end
20
20
 
21
21
  def kitchen_sink
@@ -122,8 +122,8 @@ def kitchen_sink
122
122
  sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'], host: 'https://api.sendgrid.com')
123
123
  response = sg.client.mail._('send').post(request_body: mail.to_json)
124
124
  puts response.status_code
125
- puts response.response_body
126
- puts response.response_headers
125
+ puts response.body
126
+ puts response.headers
127
127
  end
128
128
 
129
129
  hello_world
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '3.0.7'
2
+ VERSION = '4.0.0'
3
3
  end
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(/^(test|spec|features)/)
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'ruby_http_client', '~> 2.1.3'
21
+ spec.add_dependency 'ruby_http_client', '~> 3.0.0'
22
22
  spec.add_development_dependency 'rake', '~> 0'
23
23
  end
@@ -30,7 +30,7 @@ class TestAPI < Minitest::Test
30
30
  ')
31
31
  assert_equal(test_headers, sg.request_headers)
32
32
  assert_equal("v3", sg.version)
33
- assert_equal("3.0.7", SendGrid::VERSION)
33
+ assert_equal("4.0.0", SendGrid::VERSION)
34
34
  assert_instance_of(SendGrid::Client, sg.client)
35
35
  end
36
36
 
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: 3.0.7
4
+ version: 4.0.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: 2016-07-20 00:00:00.000000000 Z
13
+ date: 2016-07-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_http_client
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 2.1.3
21
+ version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 2.1.3
28
+ version: 3.0.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement