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 +4 -4
- data/lib/rookout/com_ws/pinger.rb +8 -3
- data/lib/rookout/com_ws/websocket_client.rb +6 -2
- data/lib/rookout/commit.rb +1 -1
- data/lib/rookout/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0a6779a6336398a744919c44647b6d63cb1c7178c9063545f70530954750e74
|
4
|
+
data.tar.gz: 498661e2d876a90a3df2e91c63e4ecef923bffab7dc1a08c375c43708a85018a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
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
|
|
data/lib/rookout/commit.rb
CHANGED
data/lib/rookout/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|