gibbon 3.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gibbon might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ee0feabc44b4f9a9f8ba62fbb303baf69412ce0
4
- data.tar.gz: 94ccc2373e6991acba4a32418bbe2a63ae852763
3
+ metadata.gz: 12a6fecb32704fd28e939c71d68d04b002daa26b
4
+ data.tar.gz: b203c08f25fab5920c4714448709cf16c1297a74
5
5
  SHA512:
6
- metadata.gz: 59cbe8d55f63cfd982cf1c5f59d770946177c2b567f123ce32f3527f88d05c4c0d1c1b55167f0cb48ebc9510293b0a4fa2a9100a62cdac26e00d61a66469d4b6
7
- data.tar.gz: 64c09481ecde6b9fc53bc91f666f681af60d316591dee398f8c60785d4f117bbf8edd210231cfc1f662f02377af83ee879883bbdf50ec7a28cf31e0ad11e4c82
6
+ metadata.gz: 049a905ad6d6ccb68ed25d76e3192ab38e2342405c57aa89070817e79ad64a3d0d635129821b44cc69da778381134f9cada53480644defc8350c9da065851fc2
7
+ data.tar.gz: 15b2cc277b73e3e9b6af78045061d16924cdf677547e82e96ec5c04f37a966f359bbb8e1b589d12f6493e82c5d02b3884dac82328ee92560fab6487d4cf3ce26
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased][unreleased]
2
2
 
3
+ ## [3.2.0] - 2017-11-08
4
+ - Force TLS version 1.2
5
+
3
6
  ## [3.1.1] - 2017-09-25
4
7
  - Fix MailChimpError initialization
5
8
 
@@ -146,7 +146,7 @@ module Gibbon
146
146
  end
147
147
 
148
148
  def rest_client
149
- client = Faraday.new(self.api_url, proxy: self.proxy) do |faraday|
149
+ client = Faraday.new(self.api_url, proxy: self.proxy, ssl: { version: "TLSv1_2" }) do |faraday|
150
150
  faraday.response :raise_error
151
151
  faraday.adapter adapter
152
152
  if @request_builder.debug
@@ -41,7 +41,7 @@ module Gibbon
41
41
  url = URI.parse(api_url)
42
42
  req = Net::HTTP::Post.new(url.path, initheader = {'Content-Type' => 'application/json'})
43
43
  req.body = MultiJson.dump(params)
44
- Net::HTTP.start(url.host, url.port, read_timeout: @timeout, use_ssl: true) do |http|
44
+ Net::HTTP.start(url.host, url.port, read_timeout: @timeout, use_ssl: true, ssl_version: :TLSv1_2) do |http|
45
45
  # http://stackoverflow.com/questions/29598196/ruby-net-http-read-body-nethttpokread-body-called-twice-ioerror
46
46
  http.request req do |response|
47
47
  i = -1
@@ -90,4 +90,4 @@ module Gibbon
90
90
  end
91
91
  end
92
92
  end
93
- end
93
+ end
@@ -1,3 +1,3 @@
1
1
  module Gibbon
2
- VERSION = "3.1.1"
2
+ VERSION = "3.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gibbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amro Mousa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-25 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday