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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52d4f3db6aff7605079f714b836dbc438bbf5feb421c78557be8977ef357aae4
4
- data.tar.gz: 8f68774593c5276a52948eda7bcb5f4424b64adccf7c8e908b4665a3c76eebf5
3
+ metadata.gz: 7fa0f50036e0d9dddef069de0b98a59235451d79040305751112d30025572e53
4
+ data.tar.gz: 7d8dd135ce3841ae0decb330d0f64938ee96e70d17d62e6a1a885e2c98d9d1a4
5
5
  SHA512:
6
- metadata.gz: 6184c59c4297d67fdc07260a59ff5a8f62d92ec08ae05e17f3206d2b65ccf50dd8855ca84651e778910f4c7c3c7491a6069c17e3283735efa16bf359ccc3f7ff
7
- data.tar.gz: 0dbba08d80fbffc8a4b1321ec3b8b9601c1ad37fbac0af9aed5cfe932de26d54e2c7703b4993edf9734adf394c70206f44f2e79714e663bd16a34b6cfe589f04
6
+ metadata.gz: a6a41bdb9a4cf45e508558d0a2f494e90df42aa875b0343d5cb3ca97040cc9bc7ff527ad526e266101fb98d678714bee84c399a0e8bf18a3b73820be367af1e1
7
+ data.tar.gz: 30f02075ec7959b766840c8875816f1419a0a84626b0c38916a408cb9fa56cd2439aa017f9e5ee4410a62f2f319e338e9dbe3e0b1b465fc5cdeb3015c44e5354
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "httpi-adapter-typhoeus"
6
- spec.version = "0.2.0"
6
+ spec.version = "1.0.0"
7
7
  spec.authors = ["Micke Lisinge"]
8
8
  spec.email = ["micke@apoex.se"]
9
9
 
@@ -31,7 +31,12 @@ module HTTPI
31
31
  if response.timed_out?
32
32
  raise TimeoutError
33
33
  elsif response.response_code == 0
34
- raise TyphoesConnectionError, response.return_message
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.2.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-25 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler