cuprite 0.12 → 0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/capybara/cuprite/driver.rb +1 -0
- data/lib/capybara/cuprite/javascripts/index.js +2 -2
- data/lib/capybara/cuprite/version.rb +1 -1
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e515ee98354d04170f435ea87fc5d9256a21f2ca7484a83b8078c76478bfeb73
|
4
|
+
data.tar.gz: 4a08d6b9957090cad3bb732199a9706bf0aa7e6dfe152cf41b1364d4f11a95d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '049bfdaf42c6bd78fdc40fcd6cc059ef6b38b5b3e0a7e03e4ee871fcb8c072cd5ec6215f5b5640f2e289505d582ffe9c3b9e84f688af9afc4e48616bfa5f7473'
|
7
|
+
data.tar.gz: 9b6c78303752248b85c6ca1dc2068dcc57687d94c141e2b10c75a54e9a6a8e767de3a804d98fe788580be0ec36d1230006ec784eb4b675c48752efee61e2a1fd
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ to the browser by CDP protocol. The design of the driver is as close to
|
|
8
8
|
[Poltergeist](https://github.com/teampoltergeist/poltergeist) as possible though
|
9
9
|
it's not a goal.
|
10
10
|
|
11
|
-
[Cuprite](https://evrone.com/cuprite) designed & supported by [Evrone](https://evrone.com/)
|
11
|
+
[Cuprite](https://evrone.com/cuprite) website is designed & supported by [Evrone](https://evrone.com/)
|
12
12
|
What else we build [with Ruby](https://evrone.com/ruby)
|
13
13
|
|
14
14
|
|
@@ -208,3 +208,8 @@ page.driver.browser.url_whitelist = ["http://www.example.com"]
|
|
208
208
|
If you are experiencing slower run times, consider creating a URL whitelist of
|
209
209
|
domains that are essential or a blacklist of domains that are not essential,
|
210
210
|
such as ad networks or analytics, to your testing environment.
|
211
|
+
|
212
|
+
## License
|
213
|
+
|
214
|
+
The gem is available as open source under the terms of the
|
215
|
+
[MIT License](https://opensource.org/licenses/MIT).
|
@@ -41,7 +41,7 @@ class Cuprite {
|
|
41
41
|
parents(node) {
|
42
42
|
let nodes = [];
|
43
43
|
let parent = node.parentNode;
|
44
|
-
while (parent != document) {
|
44
|
+
while (parent != document && parent !== null) {
|
45
45
|
nodes.push(parent);
|
46
46
|
parent = parent.parentNode;
|
47
47
|
}
|
@@ -97,7 +97,7 @@ class Cuprite {
|
|
97
97
|
path(node) {
|
98
98
|
let nodes = [node];
|
99
99
|
let parent = node.parentNode;
|
100
|
-
while (parent !== document) {
|
100
|
+
while (parent !== document && parent !== null) {
|
101
101
|
nodes.unshift(parent);
|
102
102
|
parent = parent.parentNode;
|
103
103
|
}
|
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.
|
4
|
+
version: '0.13'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Vorotilin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.11.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
46
|
+
version: 0.11.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: image_size
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,11 @@ files:
|
|
192
192
|
homepage: https://github.com/rubycdp/cuprite
|
193
193
|
licenses:
|
194
194
|
- MIT
|
195
|
-
metadata:
|
195
|
+
metadata:
|
196
|
+
homepage_uri: https://cuprite.rubycdp.com/
|
197
|
+
bug_tracker_uri: https://github.com/rubycdp/cuprite/issues
|
198
|
+
documentation_uri: https://github.com/rubycdp/cuprite/blob/master/README.md
|
199
|
+
source_code_uri: https://github.com/rubycdp/cuprite
|
196
200
|
post_install_message:
|
197
201
|
rdoc_options: []
|
198
202
|
require_paths:
|