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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d47506288c283595f9537fd540bf754239d0c95366e582dfe04f17c17a9fba42
4
- data.tar.gz: 16c73ed3d9f6ae52dc0cc920920aa196e42104a6d339eb7a5e8127428b1b06e5
3
+ metadata.gz: 4b56d8068cc89b1fd70f1d0d085e960307ce7038261c9a2640fc2033286f7b49
4
+ data.tar.gz: d64091ea450a17c5500f13caa3b48618c12f8cdf7e135eac6912fff31254367e
5
5
  SHA512:
6
- metadata.gz: c3854e49ac043dcc41571d90e84a6b9dd9fe9cee853fae9a3b5aab8cf3f9c3a2d57baf338cdf0ae82adf5f944e2b97bb8041373221486ff8b01adde069e6098a
7
- data.tar.gz: 5e38902b0677b7d5ee5224fb32ededaebd6243cafb9cf2d710932ceb1fee8fc1e7b8e5e3ed84a228ef5b67200f00b04064e987afbe76bd52aa52befaaeacfcbd
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
@@ -1,3 +1,3 @@
1
1
  module DomoscioViz
2
- VERSION = "0.1.1.3"
2
+ VERSION = "0.1.1.4"
3
3
  end
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.3
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: 2018-08-07 00:00:00.000000000 Z
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
- rubyforge_project:
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.