browsed 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browsed/proxies/proxy_chain.rb +9 -2
- data/lib/browsed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7b5625e893a3a4e085854bcf32451526fdea75fb5cc94b88cc775c505a15cd9
|
4
|
+
data.tar.gz: a5643c9109b0a8ff29a06f7b837e8d3f5947421f77772ccc8952c8f4907a7a16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c976d6f214a6a15e0a1ea70b3bcf80194e311490fd57634b7c7526717f4f0395b48df481ec4f6a8a7869c1e57ff8695ca1f311dd5481b9197f49ee8268a6899
|
7
|
+
data.tar.gz: 1f717397bad460b53c1cdb6cdbfe0298d186198b4a64120f2eb8f483916dc1f26db07c1f8ea9c4ea5eb483d41b9e5ad0aca9b7ecd6269012138a5044f454aeea
|
@@ -30,8 +30,15 @@ module Browsed
|
|
30
30
|
self.pid = !pid.to_s.empty? ? pid.to_i : nil
|
31
31
|
end
|
32
32
|
|
33
|
-
def stop_server
|
34
|
-
|
33
|
+
def stop_server(retries: 3)
|
34
|
+
begin
|
35
|
+
Process.kill("INT", self.pid) unless self.pid.to_s.empty?
|
36
|
+
|
37
|
+
rescue Errno::ESRCH => e
|
38
|
+
identify_pid
|
39
|
+
retries -= 1
|
40
|
+
retry if retries > 0
|
41
|
+
end
|
35
42
|
end
|
36
43
|
|
37
44
|
end
|
data/lib/browsed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browsed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|