ibm-watson-ruby 0.6.0 → 0.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efe4016297d166c8e8d43d4e8786b3b6b9f4aba7
4
- data.tar.gz: 5f37dc132e332f19a2bca187890c36b246e17496
3
+ metadata.gz: 3df110794164753482f33f4cb204f8b7146dcd9e
4
+ data.tar.gz: 73a8b2aa7305229a11518674d4597fcf9c28d20e
5
5
  SHA512:
6
- metadata.gz: 212502c1674f7d0d1a4c840253ac69cb9157c75d614f1301ba4f64e3d63149a99bdb5a0a499e8b99ce4c8e04d83c59137f183342e9962dbaddfd99838f0d193c
7
- data.tar.gz: 6a4c09bad9bcbc296eca61d88b1678eaf3763abc5fa97e375e9810d0855ffc17afc9a8d2e121efe6b2e0c1f78b9857a39671425232bbe41f00855bd29e526e37
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: 5, read: 5)
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
@@ -1,3 +1,3 @@
1
1
  module IBMWatson
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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-05-23 00:00:00.000000000 Z
12
+ date: 2017-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday