browsed 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/browsed/chrome.rb +1 -1
- data/lib/browsed/proxies/chrome/proxy_authentication.rb +2 -2
- data/lib/browsed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2912f572bf4721e3c324b4888113d21af4b480817e4dd80905b93e66a75c344b
|
4
|
+
data.tar.gz: bc30648ef8cfe3976918d922ffb4254c35740b1e4fcbd82bfb119ad9bbc57f56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6bd02c049efd51d390d9545d5090f2bb5672cd8ae5634ee68b82b08ecd279f87de0594a086e417218dac766693496871c9f7963c9728de1bfc785523e337261
|
7
|
+
data.tar.gz: a10d2c5f84fe7dfa0c3f38df4859824f603e6572cf2788c22d7bd813acca7d004f073e8fe286b01d390e41895e715f2d9ee01e06166969701846b77c6a1f3377
|
data/lib/browsed/chrome.rb
CHANGED
@@ -51,7 +51,7 @@ module Browsed
|
|
51
51
|
|
52
52
|
if !headless? && proxy_using_auth?
|
53
53
|
log("Generating a new proxy plugin to manage proxy authentication.")
|
54
|
-
plugin_path =
|
54
|
+
plugin_path = Browsed::Proxies::Chrome::ProxyAuthentication::Packager.package_extension(proxy, self.configuration.temp_path)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
@@ -10,10 +10,10 @@ module Browser
|
|
10
10
|
FileUtils.mkdir_p plugin_path
|
11
11
|
|
12
12
|
manifest_file = "#{plugin_path}/manifest.json"
|
13
|
-
File.open(manifest_file, 'w') { |file| file.write(::
|
13
|
+
File.open(manifest_file, 'w') { |file| file.write(::Browsed::Proxies::Chrome::ProxyAuthentication::MANIFEST_JSON_TEMPLATE) }
|
14
14
|
|
15
15
|
script_file = "#{plugin_path}/background.js"
|
16
|
-
script_result =
|
16
|
+
script_result = Browsed::Proxies::Chrome::ProxyAuthentication::BACKGROUND_SCRIPT_TEMPLATE % [proxy[:host], proxy[:port], proxy[:username], proxy[:password]]
|
17
17
|
File.open(script_file, 'w') { |file| file.write(script_result) }
|
18
18
|
|
19
19
|
return plugin_path
|
data/lib/browsed/version.rb
CHANGED