httpi-adapter-typhoeus 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/httpi-adapter-typhoeus.gemspec +1 -1
- data/lib/httpi/adapter/typhoeus.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fa0f50036e0d9dddef069de0b98a59235451d79040305751112d30025572e53
|
4
|
+
data.tar.gz: 7d8dd135ce3841ae0decb330d0f64938ee96e70d17d62e6a1a885e2c98d9d1a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6a41bdb9a4cf45e508558d0a2f494e90df42aa875b0343d5cb3ca97040cc9bc7ff527ad526e266101fb98d678714bee84c399a0e8bf18a3b73820be367af1e1
|
7
|
+
data.tar.gz: 30f02075ec7959b766840c8875816f1419a0a84626b0c38916a408cb9fa56cd2439aa017f9e5ee4410a62f2f319e338e9dbe3e0b1b465fc5cdeb3015c44e5354
|
@@ -31,7 +31,12 @@ module HTTPI
|
|
31
31
|
if response.timed_out?
|
32
32
|
raise TimeoutError
|
33
33
|
elsif response.response_code == 0
|
34
|
-
|
34
|
+
case response.return_message
|
35
|
+
when /ssl/i
|
36
|
+
raise SSLError, response.return_message
|
37
|
+
else
|
38
|
+
raise TyphoesConnectionError, response.return_message
|
39
|
+
end
|
35
40
|
else
|
36
41
|
Response.new(response.code, response.headers, response.body)
|
37
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpi-adapter-typhoeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micke Lisinge
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|