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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 278284a08171aff994f5effaa073fe16176f25068251d4c4308c46fa6f6ba9b2
4
- data.tar.gz: 99900aebcb0eefaa5b785eb8205fddfd496ed3b5197d2ceaaaf2f26ea7586e51
3
+ metadata.gz: d7b5625e893a3a4e085854bcf32451526fdea75fb5cc94b88cc775c505a15cd9
4
+ data.tar.gz: a5643c9109b0a8ff29a06f7b837e8d3f5947421f77772ccc8952c8f4907a7a16
5
5
  SHA512:
6
- metadata.gz: ce6401a9d324063ba14eaf445ed2ca22dbd9cc88067b01b46ab32d346a99f155e587f9bd173021ec842b252bac85cd3d459dbbca4e0be477f2ea5d1d19668887
7
- data.tar.gz: 0775e561f9b18f1123b0589c7f245d60215864c84566aa2d14ccc018edff50bd25204f71a26e264aee56b8429c55c84db716fb95bb360a638cb9751713e7ef6d
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
- Process.kill("INT", self.pid) unless self.pid.to_s.empty?
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
@@ -1,3 +1,3 @@
1
1
  module Browsed
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.9
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-09 00:00:00.000000000 Z
11
+ date: 2019-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara