rookout 0.1.18 → 0.1.19

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: 49455f2ecaae2121f3abefd5b746a89374e980b91c1bea8af891afffb197238c
4
- data.tar.gz: 04d208ab7bcbd7434dbfcbcc61023f8720592e3f9a41a083ea49637fa8df1b51
3
+ metadata.gz: f0a6779a6336398a744919c44647b6d63cb1c7178c9063545f70530954750e74
4
+ data.tar.gz: 498661e2d876a90a3df2e91c63e4ecef923bffab7dc1a08c375c43708a85018a
5
5
  SHA512:
6
- metadata.gz: f996d2549273e91c247caf4e12a2c77f7e673750f21cd1dde9defd34a2529f8eb11fee23f642a19ba464210d196dee07d9bc38236436307d6abf08d48ebc8eac
7
- data.tar.gz: 0fcc91dd1f6f534045e51c62fa01cc69480496d4df22381670cdf2630daa11bfa3e448efc53734ac73a6f2108df40fb7ae0f6a5952350d72c232dd81b33a8c34
6
+ metadata.gz: bd968a36a0e0cdb97bc6032d2f2e916099b7bde3f01cbe78c99985cc352b98f784c02b50a9b6f07bb3259113dbbc1cc30b2d5a08bdf7f830e3486904b00f7315
7
+ data.tar.gz: b0a1d91c5461c758363e4e5d2a28f25f41d81592b549e8374b08580a99c0ee7c6485c66ef71644cf19aff6cfc30244ba9de55a51b3cbc9b3c3eb84a46cb4f627
@@ -17,9 +17,14 @@ module Rookout
17
17
  if Time.now - @last_ping > @interval
18
18
  Logger.instance.debug "Sending Ping"
19
19
  @last_ping = Time.now
20
- @connection.ping Time.now.to_s do
21
- Logger.instance.debug "Got Ping reply"
22
- @last_pong = Time.now
20
+ begin
21
+ @connection.ping Time.now.to_s do
22
+ Logger.instance.debug "Got Ping reply"
23
+ @last_pong = Time.now
24
+ end
25
+ rescue RuntimeError
26
+ Logger.instance.debug "Failed to send ping"
27
+ break
23
28
  end
24
29
  end
25
30
 
@@ -14,7 +14,6 @@ module Rookout
14
14
  @connection = WebsocketConnection.new url, proxy
15
15
  @proxy = proxy
16
16
  @driver = nil
17
- @last_ping = nil
18
17
  end
19
18
 
20
19
  def connect
@@ -64,7 +63,12 @@ module Rookout
64
63
  def close
65
64
  return if @driver.nil?
66
65
 
67
- @driver.close
66
+ begin
67
+ @driver.close
68
+ rescue RuntimeError
69
+ # Protocol close may fail if the connection is already closed
70
+ nil
71
+ end
68
72
  @connection.close
69
73
  end
70
74
 
@@ -1,3 +1,3 @@
1
1
  module Rookout
2
- COMMIT = "f803c4b88c8cdacd2201420927e5646b15adbe01".freeze
2
+ COMMIT = "d73fb2179498d7e9dd75c474b5b5aeee97db687b".freeze
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Rookout
2
- VERSION = "0.1.18".freeze
2
+ VERSION = "0.1.19".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rookout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liran Haimovitch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2021-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binding_of_caller
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  requirements: []
271
- rubygems_version: 3.1.2
271
+ rubygems_version: 3.1.4
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: rookout is the Ruby SDK for the Rookout Debugging Platform