gibbon 3.1.1 → 3.2.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.
Potentially problematic release.
This version of gibbon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/gibbon/api_request.rb +1 -1
- data/lib/gibbon/export.rb +2 -2
- data/lib/gibbon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a6fecb32704fd28e939c71d68d04b002daa26b
|
4
|
+
data.tar.gz: b203c08f25fab5920c4714448709cf16c1297a74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 049a905ad6d6ccb68ed25d76e3192ab38e2342405c57aa89070817e79ad64a3d0d635129821b44cc69da778381134f9cada53480644defc8350c9da065851fc2
|
7
|
+
data.tar.gz: 15b2cc277b73e3e9b6af78045061d16924cdf677547e82e96ec5c04f37a966f359bbb8e1b589d12f6493e82c5d02b3884dac82328ee92560fab6487d4cf3ce26
|
data/CHANGELOG.md
CHANGED
data/lib/gibbon/api_request.rb
CHANGED
@@ -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
|
data/lib/gibbon/export.rb
CHANGED
@@ -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
|
data/lib/gibbon/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|