cuprite 0.14.2 → 0.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/cuprite/browser.rb +5 -0
- data/lib/capybara/cuprite/driver.rb +9 -5
- data/lib/capybara/cuprite/page.rb +1 -1
- data/lib/capybara/cuprite/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6480f3033eff59cc4f7d261e47c37ae7169ef8dd806c9b1f471d4d59be5b5a7
|
4
|
+
data.tar.gz: 4d35f4b5df0457b7ea51842738e66c1b6aecc2d1753bdec5d7dbf82d28273ecd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c347f3f5555138a6ae5660de778ec13d9e7686007ffdf9d635b826e6fa13a42520cb137693ee0142395b7cb00efa3a5939c9ccfc6fa75411397310f0593fef33
|
7
|
+
data.tar.gz: 82dd53121faab3a9f700928873d13dc42c33aae6a6065b88efcbadf02094356226ef8d72fa2d3ccfaf460a89ecfaf53950db49a57e6d9222ef9cf968eea7d6d2
|
@@ -33,7 +33,7 @@ module Capybara
|
|
33
33
|
@screen_size = @options.delete(:screen_size)
|
34
34
|
@screen_size ||= DEFAULT_MAXIMIZE_SCREEN_SIZE
|
35
35
|
|
36
|
-
@options[:save_path] = Capybara.save_path
|
36
|
+
@options[:save_path] = File.expand_path(Capybara.save_path) if Capybara.save_path
|
37
37
|
|
38
38
|
ENV["FERRUM_DEBUG"] = "true" if ENV["CUPRITE_DEBUG"]
|
39
39
|
|
@@ -206,10 +206,14 @@ module Capybara
|
|
206
206
|
end
|
207
207
|
|
208
208
|
def set_proxy(host, port, user = nil, password = nil, bypass = nil)
|
209
|
-
@options
|
210
|
-
|
211
|
-
|
212
|
-
|
209
|
+
browser_options = @options.fetch(:browser_options, {})
|
210
|
+
browser_options = browser_options.merge("proxy-server" => "#{host}:#{port}")
|
211
|
+
browser_options = browser_options.merge("proxy-bypass-list" => bypass) if bypass
|
212
|
+
@options[:browser_options] = browser_options
|
213
|
+
|
214
|
+
return unless user && password
|
215
|
+
|
216
|
+
browser.network.authorize(user: user, password: password, type: :proxy) do |request, _index, _total|
|
213
217
|
request.continue
|
214
218
|
end
|
215
219
|
end
|
@@ -10,7 +10,7 @@ module Capybara
|
|
10
10
|
|
11
11
|
extend Forwardable
|
12
12
|
delegate %i[at_css at_xpath css xpath
|
13
|
-
current_url current_title body execution_id
|
13
|
+
current_url current_title body execution_id execution_id!
|
14
14
|
evaluate evaluate_on evaluate_async execute] => :active_frame
|
15
15
|
|
16
16
|
def initialize(*args)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuprite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Vorotilin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.13.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: byebug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,7 @@ metadata:
|
|
192
192
|
documentation_uri: https://github.com/rubycdp/cuprite/blob/master/README.md
|
193
193
|
source_code_uri: https://github.com/rubycdp/cuprite
|
194
194
|
rubygems_mfa_required: 'true'
|
195
|
-
post_install_message:
|
195
|
+
post_install_message:
|
196
196
|
rdoc_options: []
|
197
197
|
require_paths:
|
198
198
|
- lib
|
@@ -207,8 +207,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
211
|
-
signing_key:
|
210
|
+
rubygems_version: 3.3.7
|
211
|
+
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: Headless Chrome driver for Capybara
|
214
214
|
test_files: []
|