ruby_http_client 3.0.0 → 3.0.1

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: 16500ecdd61ca9dbcdc9ab0d80771c045238cf0d
4
- data.tar.gz: 2f73958bb9e074e61375f19ceaa452f5aab53fe5
3
+ metadata.gz: b63c2713199b58782f416e3e227fc6b5b3d461fb
4
+ data.tar.gz: c3eaace81c3ac9824eb2ebf2b7d176ed4ea4d8e3
5
5
  SHA512:
6
- metadata.gz: 07f99dbdca201ed7ab622eeec9c4c7f12e08e893b97f912b04c660442557d0021c013e8c6af1a677545ec2e4f7ae4d49cf694db5b46355a4e24b338f52491029
7
- data.tar.gz: 77d3423eefaa543c534d0cd25614fbe46c4aec374b84b5f8f677b5fdeb76e73ceda8873662ba86daf96e847d9946e5d99886ec30754e791430719424bf108ae7
6
+ metadata.gz: 4dfaa2f5ac354e5db31fa29c96ead42d96a3c6ffd4a3fe951f4c57cb7de7e2a18b1e40df3dbf4ffc4856912b87bce03f67d6d6f2662ac97638b2f8413600c133
7
+ data.tar.gz: 8df6524cf7066f7a0db19f36356577484663e1cb1662be59b9012ef0f6a6276f0eccf33db32424c5e02d0a5e1bcbaa63d6418ecd36dca1e90075284d3a18b831
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.1] - 2016-01-25
7
+ ### Fix
8
+ - [Pull Request #7](https://github.com/sendgrid/ruby-http-client/pull/7)
9
+ - Fixes [issue #6](https://github.com/sendgrid/ruby-http-client/issues/6): TLS certificates not verified
10
+ - Thanks to [Koen Rouwhorst](https://github.com/koenrh) for the pull request!
11
+
6
12
  ## [3.0.0] - 2016-07-23
7
13
  ### BREAKING CHANGE
8
14
  - Implements [issue #3](https://github.com/sendgrid/ruby-http-client/issues/3): Headers on Response
@@ -181,7 +181,7 @@ module SendGrid
181
181
  protocol = host.split(':')[0]
182
182
  if protocol == 'https'
183
183
  http.use_ssl = true
184
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
184
+ http.verify_mode = OpenSSL::SSL::VERIFY_PEER
185
185
  end
186
186
  http
187
187
  end
@@ -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 = '3.0.0'
7
+ spec.version = '3.0.1'
8
8
  spec.authors = ['Elmer Thomas']
9
9
  spec.email = 'dx@sendgrid.com'
10
10
  spec.summary = 'A simple REST client'
@@ -100,7 +100,7 @@ class TestClient < Minitest::Test
100
100
  http = Net::HTTP.new(uri.host, uri.port)
101
101
  http = @client.add_ssl(http)
102
102
  assert_equal(http.use_ssl, true)
103
- assert_equal(http.verify_mode, OpenSSL::SSL::VERIFY_NONE)
103
+ assert_equal(http.verify_mode, OpenSSL::SSL::VERIFY_PEER)
104
104
  end
105
105
 
106
106
  def test__
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: 3.0.0
4
+ version: 3.0.1
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-23 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake