ruby_http_client 2.1.4 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab660cfe58b3b8c9201b87eab7a536e352f9bf7c
4
- data.tar.gz: 043f0f3769d908282515dc4ad98b9ad36d931362
3
+ metadata.gz: 16500ecdd61ca9dbcdc9ab0d80771c045238cf0d
4
+ data.tar.gz: 2f73958bb9e074e61375f19ceaa452f5aab53fe5
5
5
  SHA512:
6
- metadata.gz: 5e56122ab1cc1badbb6cce7a42fa0220ffa7eac25e4c28193027fc2734135a57b3aeaf701e420c49a735ee48d0ebbb25b3892e94f8eb72dec0df42ff7772deec
7
- data.tar.gz: a703f292747205a7cea06e0dc44ed5d115bd1b7fb8869f8b0358e312feb29ddfe0a07b6ff69644376ec21f3203c2dab6a313429602c0ca31fb11eaaa2a0e98f8
6
+ metadata.gz: 07f99dbdca201ed7ab622eeec9c4c7f12e08e893b97f912b04c660442557d0021c013e8c6af1a677545ec2e4f7ae4d49cf694db5b46355a4e24b338f52491029
7
+ data.tar.gz: 77d3423eefaa543c534d0cd25614fbe46c4aec374b84b5f8f677b5fdeb76e73ceda8873662ba86daf96e847d9946e5d99886ec30754e791430719424bf108ae7
data/CHANGELOG.md CHANGED
@@ -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
+ ## [3.0.0] - 2016-07-23
7
+ ### BREAKING CHANGE
8
+ - Implements [issue #3](https://github.com/sendgrid/ruby-http-client/issues/3): Headers on Response
9
+ - Response headers now return a hash instead of a string
10
+ - Thanks to [Chris France](https://github.com/hipsterelitist) for the pull request!
11
+
6
12
  ## [2.1.4] - 2016-07-12
7
13
  ### Fix
8
14
  - [Pull Request #2](https://github.com/sendgrid/ruby-http-client/pull/2), thanks [Billy Watson](https://github.com/billywatson)!
data/CONTRIBUTING.md CHANGED
@@ -64,7 +64,7 @@ We welcome direct contributions to the ruby-http-client code base. Thank you!
64
64
 
65
65
  ##### Prerequisites #####
66
66
 
67
- - Ruby 2.2 or higher
67
+ - Ruby version 2.2
68
68
 
69
69
  ##### Initial setup: #####
70
70
 
data/README.md CHANGED
@@ -10,14 +10,16 @@ All updates to this library is documented in our [CHANGELOG](https://github.com/
10
10
 
11
11
  # Installation
12
12
 
13
+ ## Prerequisites
14
+
15
+ - Ruby version 2.2
16
+
17
+ ## Install Package
18
+
13
19
  ```bash
14
20
  gem install ruby_http_client
15
21
  ```
16
22
 
17
- ## Dependencies
18
-
19
- - Ruby 2.2 or higher
20
-
21
23
  # Quick Start
22
24
 
23
25
  `GET /your/api/{param}/call`
@@ -13,7 +13,7 @@ module SendGrid
13
13
  def initialize(response)
14
14
  @status_code = response.code
15
15
  @body = response.body
16
- @headers = response.to_hash.inspect
16
+ @headers = response.to_hash
17
17
  end
18
18
  end
19
19
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ruby_http_client'
7
- spec.version = '2.1.4'
7
+ spec.version = '3.0.0'
8
8
  spec.authors = ['Elmer Thomas']
9
9
  spec.email = 'dx@sendgrid.com'
10
10
  spec.summary = 'A simple REST client'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elmer Thomas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake