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: 2912f572bf4721e3c324b4888113d21af4b480817e4dd80905b93e66a75c344b
4
- data.tar.gz: bc30648ef8cfe3976918d922ffb4254c35740b1e4fcbd82bfb119ad9bbc57f56
3
+ metadata.gz: 8e688b3b3f2398cbd384699c58d39b385d63de2c85943de6e9c63a65cdeb45e2
4
+ data.tar.gz: 0525237c271b47aa8d0d19c31664aec950809d780d8de8743c22007f7504b4f2
5
5
  SHA512:
6
- metadata.gz: b6bd02c049efd51d390d9545d5090f2bb5672cd8ae5634ee68b82b08ecd279f87de0594a086e417218dac766693496871c9f7963c9728de1bfc785523e337261
7
- data.tar.gz: a10d2c5f84fe7dfa0c3f38df4859824f603e6572cf2788c22d7bd813acca7d004f073e8fe286b01d390e41895e715f2d9ee01e06166969701846b77c6a1f3377
6
+ metadata.gz: ec6c792ea2a665fb944df8796a55ea7954fc5668ff5dcec881744b2d7a6674dcfc511f94e82b9c5cb50567c39f153295841351ba22876b52f9eedb4d58f6bf6b
7
+ data.tar.gz: 342ec5e838bad81a9bddb404e8b2944695be21f3492ef8bcd8c3b6ebd934e8c3152e2672cb3da064ae0f81c0345e662dfd51f22c16f0a85988b06b001e0df8b2
@@ -1,4 +1,4 @@
1
- module Browser
1
+ module Browsed
2
2
  module Proxies
3
3
  module Chrome
4
4
  module ProxyAuthentication
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Browsed
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
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.7
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-12 00:00:00.000000000 Z
11
+ date: 2019-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara