takuhai_status 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/takuhai_status/version.rb +1 -1
- data/lib/takuhai_status.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd69e84959e3c841a56043ef6088957698669278930e36cb30b68050485d75c7
|
4
|
+
data.tar.gz: 88084041e49be27f6a489492163654900ae7d6d3211714f0bad554dbc2c51315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fc78cf315854767f87e7df30506a77ae5978ec4b4aef8ede18fe44d51a11bbb9664da9602dd80fa0e2b398feb0edcb356a77d0a2aed8af60cec89993a0941fe
|
7
|
+
data.tar.gz: 2c889f3cc4fa26d5b4b000cdb3b9ad5f29ab8c3de9556493ca56a8592720505da9dd92844bd7c34a28310c58b007d68bf07eaeba7b44749851fe470c285ec416
|
data/lib/takuhai_status.rb
CHANGED
@@ -27,12 +27,13 @@ module TakuhaiStatus
|
|
27
27
|
threads.push(Thread.new{
|
28
28
|
name = service.to_s.sub(/^.*::/, '')
|
29
29
|
begin
|
30
|
-
Timeout.timeout(timeout, Timeout::Error
|
30
|
+
Timeout.timeout(timeout, Timeout::Error) do
|
31
31
|
service.new(key)
|
32
32
|
end
|
33
|
-
rescue Timeout::Error, Faraday::TimeoutError
|
34
|
-
|
35
|
-
|
33
|
+
rescue Timeout::Error, Faraday::TimeoutError
|
34
|
+
m = "Timeout in #{name}(#{key})"
|
35
|
+
logger.error m
|
36
|
+
raise NotMyKey.new(m)
|
36
37
|
end
|
37
38
|
})
|
38
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: takuhai_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|