dato 0.3.19 → 0.3.20

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: 987b8b8070402b459c3af4c1b22356f6386d4d92
4
- data.tar.gz: 4fbb0f6216e9ac3dfbe4910b3bf8ba0bfbf32e8f
3
+ metadata.gz: 0560582decbc9e19a529ea56f8ea4f11d428c28b
4
+ data.tar.gz: f1d53150ce553415bc060b52cfc19644b590fa2a
5
5
  SHA512:
6
- metadata.gz: 950b340073ebb6c099a3ed454c564fea88fafb2054647cb087a8e917b158d09216848e026e587ea085947a0dbb3050467e363cd53cf514fc0b8466919e437c06
7
- data.tar.gz: 271161ac60abf23153eb317abca4f454953b7674eb2287cbf778663b3c184c29a369a23b45079e0be625d32c0202e18fe73133965c98f6705ed4b75dd0ebff2e
6
+ metadata.gz: 85c6c9e69fcf33cf15298ca48e5a2985050e82d88060d271c0a6d2e28ff30bb2a20da2edb2ab58aa5f0df1846be2a662bbb3248e0398837ee549a3ce3ce3ea04
7
+ data.tar.gz: 18737567221940e7ab086a27e6485076e43b8aa158abdb3c2da92fb0ae177b6bdfcd5ba94fbb531f41d4aabd42047c3b1301c687228682078b6b95f3659f34cb
@@ -69,9 +69,14 @@ module Dato
69
69
  Cacert.set_in_env
70
70
  request(*args)
71
71
  rescue Faraday::ConnectionFailed, Faraday::TimeoutError => e
72
+ puts e.message
72
73
  raise e
73
74
  rescue Faraday::ClientError => e
74
- raise ApiError, e
75
+ error = ApiError.new(e)
76
+ puts "===="
77
+ puts error.message
78
+ puts "===="
79
+ raise error
75
80
  end
76
81
 
77
82
  private
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.3.19'
3
+ VERSION = '0.3.20'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler