ibm-watson-ruby 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ibm_watson/base_service.rb +3 -1
- data/lib/ibm_watson/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: 3df110794164753482f33f4cb204f8b7146dcd9e
|
4
|
+
data.tar.gz: 73a8b2aa7305229a11518674d4597fcf9c28d20e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 261f9652bbd22ec723179be7282a36b51cbffbf69b71e2d9614cf84af0f0f83ee3bd127a68aa74d5d00baff7549bead24787d78e28018f4849fb2c6d1b19baa8
|
7
|
+
data.tar.gz: 16bb38328f13877c3ed9427b7d3ad55708223a1f72926b69d1da3bf3b2d561b432db5c5a9f99acaad14c04beed01f223736e82e589541293b8e72621914c558f
|
@@ -31,7 +31,7 @@ module IBMWatson
|
|
31
31
|
attr_reader :username, :password, :timeouts
|
32
32
|
|
33
33
|
def default_timeouts
|
34
|
-
TimeoutConfig.new(connect:
|
34
|
+
TimeoutConfig.new(connect: 30, read: 30)
|
35
35
|
end
|
36
36
|
|
37
37
|
def connection
|
@@ -112,6 +112,8 @@ module IBMWatson
|
|
112
112
|
|
113
113
|
def handle_timeout
|
114
114
|
yield
|
115
|
+
rescue Net::OpenTimeout => error
|
116
|
+
handle_timeout_error(error)
|
115
117
|
rescue Faraday::Error::TimeoutError => error
|
116
118
|
handle_timeout_error(error)
|
117
119
|
end
|
data/lib/ibm_watson/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm-watson-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bram Whillock
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|