browsed 0.2.7 → 0.2.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e688b3b3f2398cbd384699c58d39b385d63de2c85943de6e9c63a65cdeb45e2
|
4
|
+
data.tar.gz: 0525237c271b47aa8d0d19c31664aec950809d780d8de8743c22007f7504b4f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec6c792ea2a665fb944df8796a55ea7954fc5668ff5dcec881744b2d7a6674dcfc511f94e82b9c5cb50567c39f153295841351ba22876b52f9eedb4d58f6bf6b
|
7
|
+
data.tar.gz: 342ec5e838bad81a9bddb404e8b2944695be21f3492ef8bcd8c3b6ebd934e8c3152e2672cb3da064ae0f81c0345e662dfd51f22c16f0a85988b06b001e0df8b2
|
@@ -10,11 +10,14 @@ module Browsed
|
|
10
10
|
self.generated_proxy_url = nil
|
11
11
|
end
|
12
12
|
|
13
|
-
def start_server(proxy_url)
|
13
|
+
def start_server(proxy_url, wait: 3)
|
14
14
|
IO.popen("((node #{self.script_path} \"#{proxy_url}\" proxy-chain-instance-id-#{instance_id} &)&)") do |io|
|
15
15
|
self.generated_proxy_url = io.gets&.strip
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
|
+
# Wait a couple of seconds to let proxy-chain initiate the connection with the target proxy server
|
19
|
+
sleep wait
|
20
|
+
|
18
21
|
identify_pid
|
19
22
|
|
20
23
|
self.generated_proxy_url
|
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.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|