domoscio_viz 0.1.1.3 → 0.1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/domoscio_viz/http_calls.rb +5 -3
- data/lib/domoscio_viz/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b56d8068cc89b1fd70f1d0d085e960307ce7038261c9a2640fc2033286f7b49
|
4
|
+
data.tar.gz: d64091ea450a17c5500f13caa3b48618c12f8cdf7e135eac6912fff31254367e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd0f66253608031e7ccb578492430d9b4d0febc8b8c9fff50f8cae52a910f3ae77d81acc53b3b6c21e6deedbb07a81a677b1855bc255989e046084370fe817c
|
7
|
+
data.tar.gz: ecf4b4b43f307db1d29950ecadbbccc25ebd3cec5ad2e0a310afe6d1aa5200d7c1ce7bfc57b15f3f604f0cb89882192dc2339a2b65bfeeda1ef48ee35e30983f
|
@@ -1,10 +1,13 @@
|
|
1
1
|
module DomoscioViz
|
2
2
|
module HTTPCalls
|
3
|
-
|
4
3
|
module GetUrl
|
5
4
|
module ClassMethods
|
5
|
+
# In order to catch current SocketsTimeoutError that seem to appear when the VizEngine stays Idle for too long
|
6
|
+
# Perform the request a second time if it fails the fisrt time
|
6
7
|
def get_url(util_name = nil, params = {})
|
7
|
-
DomoscioViz.request(:post, url(util_name), params)
|
8
|
+
response = DomoscioViz.request(:post, url(util_name), params)
|
9
|
+
response = DomoscioViz.request(:post, url(util_name), params) unless response && response.is_a?(Hash) && response['url'] && response['success'] == true
|
10
|
+
response
|
8
11
|
end
|
9
12
|
end
|
10
13
|
|
@@ -12,6 +15,5 @@ module DomoscioViz
|
|
12
15
|
base.extend(ClassMethods)
|
13
16
|
end
|
14
17
|
end
|
15
|
-
|
16
18
|
end
|
17
19
|
end
|
data/lib/domoscio_viz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: domoscio_viz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit Praly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -64,8 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
|
-
|
68
|
-
rubygems_version: 2.7.6
|
67
|
+
rubygems_version: 3.0.8
|
69
68
|
signing_key:
|
70
69
|
specification_version: 4
|
71
70
|
summary: Summary of DomoscioViz.
|