ncore 2.0.3 → 2.0.4
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/LICENSE +1 -1
- data/lib/ncore/client.rb +8 -1
- data/lib/ncore/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: bb74f645a9005a54e5a3bedaa7fdfbd8b5b51a84
|
|
4
|
+
data.tar.gz: dcd43c51806ca15fa68f0ba3baad9c3973a2fc0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2c0db6acc9977609011051a1bb7afd2f4da11155e02dde9b0e49fb339ecd27920997df2d692c7b9c88235f5a05b5d23b9c96200579bdefeca58a709b55704d1
|
|
7
|
+
data.tar.gz: 8b812f822dde0db851bcdf2b67422a3c86929442c8a0e2619d8d62e69c2617487b72a54de0c61dfb91608cbcae0db21c49d2f7a4d09ac19000e6af3192b2098d
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/lib/ncore/client.rb
CHANGED
|
@@ -175,7 +175,7 @@ module NCore
|
|
|
175
175
|
begin
|
|
176
176
|
tries += 1
|
|
177
177
|
response = connection.request rest_opts.except(:url)
|
|
178
|
-
rescue Excon::Errors::SocketError, Errno::EADDRNOTAVAIL => e
|
|
178
|
+
rescue Excon::Errors::SocketError, Excon::Error::Timeout, Errno::EADDRNOTAVAIL => e
|
|
179
179
|
# retry when keepalive was closed
|
|
180
180
|
if tries <= 1 #&& e.message =~ /end of file reached/
|
|
181
181
|
retry
|
|
@@ -190,6 +190,13 @@ module NCore
|
|
|
190
190
|
raise parent::ConnectionError, "Connection reset for #{host_for_error rest_opts[:url]} : check network or visit #{status_page}."
|
|
191
191
|
rescue Errno::ECONNREFUSED
|
|
192
192
|
raise parent::ConnectionError, "Connection error for #{host_for_error rest_opts[:url]} : check network and DNS or visit #{status_page}."
|
|
193
|
+
rescue Excon::Error::Timeout => e
|
|
194
|
+
case e.message
|
|
195
|
+
when /timeout reached/
|
|
196
|
+
raise parent::ConnectionError, "Connection error for #{host_for_error rest_opts[:url]} : check network and DNS or visit #{status_page}."
|
|
197
|
+
else
|
|
198
|
+
raise e
|
|
199
|
+
end
|
|
193
200
|
rescue Excon::Errors::SocketError => e
|
|
194
201
|
case e.message
|
|
195
202
|
when /Unable to verify certificate/
|
data/lib/ncore/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ncore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Notioneer Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|