sauce-connect 3.5.2 → 3.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sauce/connect.rb +8 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1b5c6dd4457afc676e843312bbecc879268e250
4
- data.tar.gz: 7a2d36c03c852d85a6b25fdb7e2b89f4321318c5
3
+ metadata.gz: d7e6f85db52f14d80e95c3aa2d517afef5dead4c
4
+ data.tar.gz: 3dccc6b9b194df819b31069bbddf8b6a445ccfd1
5
5
  SHA512:
6
- metadata.gz: 349d362737df5d4ab56ae5026e20c851fe1885ec2f6c66c29510aa4d372e9b58d36e96ec583548291575a1effd693d1986b2cb4306d34e95043269a34cb08a30
7
- data.tar.gz: 5c512c005a4da0155626211a90b8c7db6507d35cbbf13840725bcf4dd9ac7e094a1cbf73540c958689acf0427aa2d0abd326ffba68cf85441f6ab938f74f45cb
6
+ metadata.gz: cb2449e09c1b007ccb47ae1d235590f7bb09484c157ad31c989065320dab4932b7827b13a3c2590ba890909c15bf31d1a653935f6662df0f9b8561da7692fa12
7
+ data.tar.gz: d68cf386f77e5afe569cf925e6a5aad61f406d1dd60ba7c881edb215d0c0c5f2ba11285748b19118820c492beffcf31b7ed8606e4b5e33456ace71df5441a8de
data/lib/sauce/connect.rb CHANGED
@@ -43,7 +43,7 @@ module Sauce
43
43
 
44
44
  unless response.kind_of? Net::HTTPOK
45
45
  $stderr.puts Sauce::Connect.cant_access_rest_api_message
46
- raise TunnelNotPossibleException "Couldn't access REST API"
46
+ raise TunnelNotPossibleException, "Couldn't access REST API"
47
47
  end
48
48
 
49
49
  begin
@@ -63,7 +63,7 @@ module Sauce
63
63
  end
64
64
 
65
65
  if java_is_present?
66
- puts "[Connecting to Sauce Labs...]"
66
+ puts "[Sauce Connect is connecting to Sauce Labs...]"
67
67
 
68
68
  formatted_cli_options = array_of_formatted_cli_options_from_hash(cli_options)
69
69
 
@@ -138,7 +138,9 @@ module Sauce
138
138
  end
139
139
 
140
140
  if !@ready
141
- raise "Sauce Connect failed to connect after #{@timeout} seconds"
141
+ error_message = "Sauce Connect failed to connect after #{@timeout} seconds"
142
+ error_message << "\n(Using Sauce Connect at #{@sc4_executable}" if @sc4_executable
143
+ raise error_message
142
144
  end
143
145
  end
144
146
 
@@ -182,10 +184,10 @@ module Sauce
182
184
  if File.executable? absolute_path
183
185
  true
184
186
  else
185
- raise TunnelNotPossibleException "#{absolute_path} is not executable by #{Process.euid}"
187
+ raise TunnelNotPossibleException, "#{absolute_path} is not executable by #{Process.euid}"
186
188
  end
187
189
  else
188
- raise TunnelNotPossibleException "#{absolute_path} does not exist"
190
+ raise TunnelNotPossibleException, "#{absolute_path} does not exist"
189
191
  end
190
192
  end
191
193
 
@@ -260,4 +262,4 @@ module Sauce
260
262
  ENDLINE
261
263
  end
262
264
  end
263
- end
265
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.2
4
+ version: 3.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - R. Tyler Croy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-03-03 00:00:00.000000000 Z
14
+ date: 2015-04-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sauce