coelacanth 0.2.0 → 0.2.2
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/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: 506450022b367ef2795c9d67d66548b1893757dd740512286fb90f9b952f21d1
|
|
4
|
+
data.tar.gz: df860c4216846549ac335b15dbef4cd9f99aa068a464a47b58ba973ba9d3b771
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4f483791381bf5672c74c382c73129703983c936720184cdd870db211cb740bb5ff6685460c6152213eea8dfcce85c6666ffa189d23e3b58e92c183658b486e
|
|
7
|
+
data.tar.gz: 577737cc29a81134a288bb3bee66a220d46f80749a9824ff5b487b62dfe97a8f1209124266715c58d9021e7e88d47e634f675462e9d27e62bd8e3e93c532e31d
|
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.2)
|
|
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
|
+
page.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
|
+
page.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.2
|
|
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,
|