blade-sauce_labs_plugin 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blade/sauce_labs_plugin/tunnel.rb +9 -6
- data/lib/blade/sauce_labs_plugin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22a46cbac58623726ac3afd141455b82784352b8
|
4
|
+
data.tar.gz: 2fa8257a14a638c2e54693dda4f4d3c1bdfec269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fac9e05d635f7616ecf176adf166eb29d837376a47c72d8c26cbf181b3115d5cdba99f8b2042525946310b7dce89de5d942da5ffcf9747f9e47cb7c7a9e3252
|
7
|
+
data.tar.gz: d52460395a4d0ef296bf5530ccf615d2d7af07afd162caa28752020076afbb32f94380b39a3dc985446089019743cb58a1d588f420f47f4d4cf2ce647eb925cf
|
@@ -7,9 +7,11 @@ module Blade::SauceLabsPlugin::Tunnel
|
|
7
7
|
extend Forwardable
|
8
8
|
def_delegators Blade::SauceLabsPlugin, :username, :access_key, :tunnel_timeout, :config, :debug, :debug?
|
9
9
|
|
10
|
-
attr_reader :identifier
|
10
|
+
attr_reader :identifier
|
11
11
|
|
12
12
|
def start
|
13
|
+
return if @process
|
14
|
+
|
13
15
|
@identifier = SecureRandom.hex(10)
|
14
16
|
@process = create_child_process
|
15
17
|
|
@@ -31,13 +33,14 @@ module Blade::SauceLabsPlugin::Tunnel
|
|
31
33
|
end
|
32
34
|
|
33
35
|
def stop
|
36
|
+
return unless @process
|
37
|
+
|
34
38
|
begin
|
35
39
|
tunnel_io.unlink
|
36
|
-
process.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
nil
|
40
|
+
@process.stop(15)
|
41
|
+
@process = nil
|
42
|
+
rescue => error
|
43
|
+
debug "Error stopping tunnel: #{error}"
|
41
44
|
end
|
42
45
|
end
|
43
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blade-sauce_labs_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javan Makhmali
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|