coelacanth 0.2.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +28 -32
- data/lib/coelacanth/client.rb +4 -1
- data/lib/coelacanth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d92c04c82f120570d29b58787a36897bb769d789dfd5ecbf5f7da725c08710a
|
4
|
+
data.tar.gz: d7e25b8f1eb0e269dec2d6cf8c0c9209693b2f068ebf389ee61f3450fe7db3b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432f908bf812f69f6398e0346d6f7a104391f56c1057adaa14de06457f2512ddd695b58f2b96ad90ca9063ea533bc54429f4b199c5dea541901dc2839c645143
|
7
|
+
data.tar.gz: 1fdbe4cbe2d354d15d04fb2ba4fd3fd04f2f6c966d91123f443b75831d28aa977c691864bb3d84e1a6922878dbc0120d88d1cdc54ae0390f3052e6331f7dd12f
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
coelacanth (0.2.
|
4
|
+
coelacanth (0.2.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -11,61 +11,57 @@ GEM
|
|
11
11
|
ansi (1.5.0)
|
12
12
|
ast (2.4.2)
|
13
13
|
concurrent-ruby (1.3.4)
|
14
|
-
diff-lcs (1.
|
14
|
+
diff-lcs (1.5.1)
|
15
15
|
ferrum (0.15)
|
16
16
|
addressable (~> 2.5)
|
17
17
|
concurrent-ruby (~> 1.1)
|
18
18
|
webrick (~> 1.7)
|
19
19
|
websocket-driver (~> 0.7)
|
20
|
-
json (2.7.
|
20
|
+
json (2.7.2)
|
21
21
|
language_server-protocol (3.17.0.3)
|
22
22
|
oga (3.4)
|
23
23
|
ast
|
24
24
|
ruby-ll (~> 2.1)
|
25
|
-
parallel (1.
|
26
|
-
parser (3.3.0
|
25
|
+
parallel (1.26.3)
|
26
|
+
parser (3.3.5.0)
|
27
27
|
ast (~> 2.4.1)
|
28
28
|
racc
|
29
29
|
public_suffix (6.0.1)
|
30
|
-
racc (1.
|
30
|
+
racc (1.8.1)
|
31
31
|
rainbow (3.1.1)
|
32
|
-
rake (13.1
|
33
|
-
regexp_parser (2.9.
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
rspec-
|
38
|
-
|
39
|
-
rspec-
|
40
|
-
rspec-
|
41
|
-
rspec-support (~> 3.10.0)
|
42
|
-
rspec-expectations (3.10.1)
|
32
|
+
rake (13.2.1)
|
33
|
+
regexp_parser (2.9.2)
|
34
|
+
rspec (3.13.0)
|
35
|
+
rspec-core (~> 3.13.0)
|
36
|
+
rspec-expectations (~> 3.13.0)
|
37
|
+
rspec-mocks (~> 3.13.0)
|
38
|
+
rspec-core (3.13.2)
|
39
|
+
rspec-support (~> 3.13.0)
|
40
|
+
rspec-expectations (3.13.3)
|
43
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-mocks (3.
|
42
|
+
rspec-support (~> 3.13.0)
|
43
|
+
rspec-mocks (3.13.2)
|
46
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-support (3.
|
49
|
-
rubocop (1.
|
45
|
+
rspec-support (~> 3.13.0)
|
46
|
+
rspec-support (3.13.1)
|
47
|
+
rubocop (1.67.0)
|
50
48
|
json (~> 2.3)
|
51
49
|
language_server-protocol (>= 3.17.0)
|
52
50
|
parallel (~> 1.10)
|
53
51
|
parser (>= 3.3.0.2)
|
54
52
|
rainbow (>= 2.2.2, < 4.0)
|
55
|
-
regexp_parser (>=
|
56
|
-
|
57
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
53
|
+
regexp_parser (>= 2.4, < 3.0)
|
54
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
58
55
|
ruby-progressbar (~> 1.7)
|
59
56
|
unicode-display_width (>= 2.4.0, < 3.0)
|
60
|
-
rubocop-ast (1.
|
61
|
-
parser (>= 3.3.0
|
57
|
+
rubocop-ast (1.32.3)
|
58
|
+
parser (>= 3.3.1.0)
|
62
59
|
ruby-ll (2.1.3)
|
63
60
|
ansi
|
64
61
|
ast
|
65
62
|
ruby-progressbar (1.13.0)
|
66
|
-
|
67
|
-
|
68
|
-
webrick (1.8.1)
|
63
|
+
unicode-display_width (2.6.0)
|
64
|
+
webrick (1.8.2)
|
69
65
|
websocket-driver (0.7.6)
|
70
66
|
websocket-extensions (>= 0.1.0)
|
71
67
|
websocket-extensions (0.1.5)
|
@@ -78,9 +74,9 @@ DEPENDENCIES
|
|
78
74
|
coelacanth!
|
79
75
|
ferrum (~> 0.15)
|
80
76
|
oga (~> 3.4)
|
81
|
-
rake (~> 13.
|
77
|
+
rake (~> 13.2)
|
82
78
|
rspec (~> 3.0)
|
83
79
|
rubocop (~> 1.21)
|
84
80
|
|
85
81
|
BUNDLED WITH
|
86
|
-
2.5.
|
82
|
+
2.5.17
|
data/lib/coelacanth/client.rb
CHANGED
@@ -15,12 +15,15 @@ module Coelacanth
|
|
15
15
|
def get_response(url = nil)
|
16
16
|
@status_code = remote_client.network.status
|
17
17
|
@origin_response = remote_client
|
18
|
-
remote_client.body
|
18
|
+
body = remote_client.body
|
19
|
+
remote_client.network.wait_for_idle! # might raise an error
|
20
|
+
body
|
19
21
|
end
|
20
22
|
|
21
23
|
def get_screenshot
|
22
24
|
tempfile = Tempfile.new
|
23
25
|
remote_client.screenshot(path: tempfile.path, format: "png")
|
26
|
+
remote_client.network.wait_for_idle! # might raise an error
|
24
27
|
File.read(tempfile.path)
|
25
28
|
end
|
26
29
|
|
data/lib/coelacanth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coelacanth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
coelacanth is a gem that allows you to easily parse and analyze web pages,
|