stf-client 0.3.0.rc4 → 0.3.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stf/interactor/start_one_debug_session_interactor.rb +4 -3
- data/lib/stf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e4b966ae9b724edac48f9de91437c4018fbe12
|
4
|
+
data.tar.gz: 9dd7879d424aafa1b6b22701166ed17b43fe9029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360fb34f71844e5ca57dfd8cecdaa7658b1ed8d70454902615ce4218ed3143273f8b88b7c1971af974ad893d9743fa592f7e2a3e674e0f88ab66324231f37073
|
7
|
+
data.tar.gz: d9bbf0b9e2e21be8031d7abda264db7f18edab1e8f682228c00b75318862c1dce0ef61ebbbdf48a7625cf9759200decda5c64b11f23c3fabe027acde7745e3f3
|
@@ -47,8 +47,9 @@ module Stf
|
|
47
47
|
# we will try clean anyway
|
48
48
|
DI[:stf].remove_device serial
|
49
49
|
if test ?d, '/custom-metrics'
|
50
|
-
File.open('/custom-metrics/openstf_connect_fail', 'a') do
|
51
|
-
|
50
|
+
File.open('/custom-metrics/openstf_connect_fail', 'a') do |f|
|
51
|
+
message = (!e.nil? && !e.message.nil?) ? e.message : ""
|
52
|
+
f.write("openstf_connect_fail,reason=\"#{escape(message)}\" serial=\"#{serial}\" #{Time.now.to_i}\n")
|
52
53
|
end
|
53
54
|
end
|
54
55
|
rescue
|
@@ -60,7 +61,7 @@ module Stf
|
|
60
61
|
end
|
61
62
|
|
62
63
|
def escape(s)
|
63
|
-
s.gsub(/["]/, '\"')
|
64
|
+
s.gsub(/["]/, '\"').gsub(/[ ]/, '\ ').gsub(/[=]/, '\=').gsub(/[,]/, '\,')
|
64
65
|
end
|
65
66
|
end
|
66
67
|
end
|
data/lib/stf/version.rb
CHANGED