cobot_client 1.4.0 → 1.4.2

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
  SHA1:
3
- metadata.gz: 13ac71d15e9711762794ea7fb9a6ff5457aa7abe
4
- data.tar.gz: c89cdc584f0fe68265e96f1cbb5f3b5fd88bf95f
3
+ metadata.gz: 12bf9865f9cd88f996c6cf7667197ce1fa8419fe
4
+ data.tar.gz: 6c76ba24f35b7cb8796577c0eb850fa56b5c98c3
5
5
  SHA512:
6
- metadata.gz: ef3a440c62cbff572de3e264df0b107e77d302a0d9f214e53ab7c6edb4befdef812f03bebefa95ae5737d6c3066caacabd0109382b350c23520a8ba76139d98a
7
- data.tar.gz: e383f6e75624c39d239ddd15c42defc3452c1b0f2c3ceeb72f6cdcc91da5b6f57f7aa220ceea19fa360cadd2b062e07a4c95d1849d8f9319c0cd708e54cfbac4
6
+ metadata.gz: fff3b5554f6ff1165024b2bfa80c68bbf14fb80be6f62deec090c4b0856dc0c4df3d3a6f7b4a7590f9fcf670af2820e950faa9968701b363da50f0f16cb06e8d
7
+ data.tar.gz: 3cd98078e8dc2203a491a015c8777d7ae0ed7d4df1b58a00939f794eac4669f3c26b0a2da21a4e68a4a4c78b43ce9a7dda020508277900fd59cf1a452ea3f368
@@ -7,8 +7,9 @@
7
7
  };
8
8
 
9
9
  window.Cobot.iframeHeight = window.Cobot.iframeHeight || function() {
10
- var height = document.body.offsetHeight;
11
- var style = getComputedStyle(document.body);
10
+ var html = document.body.parentElement;
11
+ var height = html.offsetHeight;
12
+ var style = getComputedStyle(html);
12
13
  height += parseInt(style.marginTop) + parseInt(style.marginBottom);
13
14
  return height;
14
15
  };
@@ -86,7 +86,7 @@ module CobotClient
86
86
  retries = 0
87
87
  begin
88
88
  yield
89
- rescue RestClient::BadGateway, SocketError, RestClient::RequestTimeout => e
89
+ rescue RestClient::BadGateway, SocketError, RestClient::RequestTimeout, CobotClient::InternalServerError => e
90
90
  if retries < 3
91
91
  sleep self.class.retry_time
92
92
  retries += 1
@@ -1,3 +1,3 @@
1
1
  module CobotClient
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobot_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Lang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.7
144
+ rubygems_version: 2.5.1
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Client for the Cobot API plus helpers
@@ -150,4 +150,3 @@ test_files:
150
150
  - spec/cobot_client/navigation_link_service_spec.rb
151
151
  - spec/cobot_client/url_helper_spec.rb
152
152
  - spec/spec_helper.rb
153
- has_rdoc: