coelacanth 0.3.9 → 0.3.10
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/CHANGELOG.md +6 -4
- data/Gemfile +3 -3
- data/Gemfile.lock +8 -8
- data/lib/coelacanth/client/ferrum.rb +6 -2
- data/lib/coelacanth/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: 62040d12a6682d20ad4ec71ec6ab5d45f00a4814f2c4cd8dad22bc555352daac
|
4
|
+
data.tar.gz: 400b7e76c8a0260abc9c713566323dac84cd50758cda8013e54747cd465f909a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ffc542b1004c3cc3b8170f46e6e2f465bd7012ecebd99e9495c88431169f73e34f4e4558fab6c65b30e71b5e10509b2d76cca576cbc44345e098fa174f65732
|
7
|
+
data.tar.gz: 05c11331d46384976a872638e1e601118e49de427eb4a989e76ee73b02773379e6a3172a0a264a015e5db910800cc8fe0188c5d9d178bb2b9522c84b6043c884
|
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [v0.3.
|
7
|
+
## [v0.3.10] - 2025-06-19
|
8
8
|
### :bug: Bug Fixes
|
9
|
-
- [`
|
9
|
+
- [`f297847`](https://github.com/slidict/coelacanth/commit/f29784715aba9453599ad7fd6467d4d2d3e9e82c) - improve error handling in Ferrum client and bump version to 0.3.10 *(commit by [@yubele](https://github.com/yubele))*
|
10
10
|
|
11
11
|
### :wrench: Chores
|
12
|
-
- [`
|
12
|
+
- [`58d383f`](https://github.com/slidict/coelacanth/commit/58d383fdc34e220e584d92447e938078ed75a889) - **deps**: Bump base64 from 0.2.0 to 0.3.0 *(commit by [@dependabot[bot]](https://github.com/apps/dependabot))*
|
13
|
+
- [`6f1b766`](https://github.com/slidict/coelacanth/commit/6f1b766ea8f65d2f9c0f1d8772cbd6f1c840a43b) - **deps**: Bump rake from 13.2.1 to 13.3.0 *(commit by [@dependabot[bot]](https://github.com/apps/dependabot))*
|
14
|
+
- [`0c9a6b2`](https://github.com/slidict/coelacanth/commit/0c9a6b2b9f28f686665914054016c90c49407e69) - **deps**: Bump rubocop from 1.75.7 to 1.76.1 *(commit by [@dependabot[bot]](https://github.com/apps/dependabot))*
|
13
15
|
|
14
|
-
[v0.3.
|
16
|
+
[v0.3.10]: https://github.com/slidict/coelacanth/compare/v0.3.9...v0.3.10
|
data/Gemfile
CHANGED
@@ -6,11 +6,11 @@ source "https://rubygems.org"
|
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
gem "ferrum", "~> 0.16"
|
9
|
-
gem "rake", "~> 13.
|
9
|
+
gem "rake", "~> 13.3"
|
10
10
|
gem "rspec", "~> 3.0"
|
11
|
-
gem "rubocop", "~> 1.
|
11
|
+
gem "rubocop", "~> 1.76"
|
12
12
|
gem "oga", "~> 3.4"
|
13
|
-
gem "base64", "~> 0.
|
13
|
+
gem "base64", "~> 0.3.0"
|
14
14
|
|
15
15
|
group :development, :test do
|
16
16
|
gem "webmock", "~> 3.25"
|
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
public_suffix (>= 2.0.2, < 7.0)
|
11
11
|
ansi (1.5.0)
|
12
12
|
ast (2.4.3)
|
13
|
-
base64 (0.
|
13
|
+
base64 (0.3.0)
|
14
14
|
bigdecimal (3.1.9)
|
15
15
|
concurrent-ruby (1.3.5)
|
16
16
|
crack (1.0.0)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
public_suffix (6.0.2)
|
39
39
|
racc (1.8.1)
|
40
40
|
rainbow (3.1.1)
|
41
|
-
rake (13.
|
41
|
+
rake (13.3.0)
|
42
42
|
regexp_parser (2.10.0)
|
43
43
|
rexml (3.4.1)
|
44
44
|
rspec (3.13.0)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
55
|
rspec-support (~> 3.13.0)
|
56
56
|
rspec-support (3.13.2)
|
57
|
-
rubocop (1.
|
57
|
+
rubocop (1.76.1)
|
58
58
|
json (~> 2.3)
|
59
59
|
language_server-protocol (~> 3.17.0.2)
|
60
60
|
lint_roller (~> 1.1.0)
|
@@ -62,10 +62,10 @@ GEM
|
|
62
62
|
parser (>= 3.3.0.2)
|
63
63
|
rainbow (>= 2.2.2, < 4.0)
|
64
64
|
regexp_parser (>= 2.9.3, < 3.0)
|
65
|
-
rubocop-ast (>= 1.
|
65
|
+
rubocop-ast (>= 1.45.0, < 2.0)
|
66
66
|
ruby-progressbar (~> 1.7)
|
67
67
|
unicode-display_width (>= 2.4.0, < 4.0)
|
68
|
-
rubocop-ast (1.
|
68
|
+
rubocop-ast (1.45.1)
|
69
69
|
parser (>= 3.3.7.2)
|
70
70
|
prism (~> 1.4)
|
71
71
|
ruby-ll (2.1.3)
|
@@ -90,13 +90,13 @@ PLATFORMS
|
|
90
90
|
x86_64-linux
|
91
91
|
|
92
92
|
DEPENDENCIES
|
93
|
-
base64 (~> 0.
|
93
|
+
base64 (~> 0.3.0)
|
94
94
|
coelacanth!
|
95
95
|
ferrum (~> 0.16)
|
96
96
|
oga (~> 3.4)
|
97
|
-
rake (~> 13.
|
97
|
+
rake (~> 13.3)
|
98
98
|
rspec (~> 3.0)
|
99
|
-
rubocop (~> 1.
|
99
|
+
rubocop (~> 1.76)
|
100
100
|
webmock (~> 3.25)
|
101
101
|
|
102
102
|
BUNDLED WITH
|
@@ -12,10 +12,11 @@ module Coelacanth::Client
|
|
12
12
|
|
13
13
|
def get_response(url = nil)
|
14
14
|
@status_code = remote_client.network.status
|
15
|
-
@origin_response = remote_client
|
16
|
-
body = remote_client.body
|
17
15
|
remote_client.network.wait_for_idle! # might raise an error
|
16
|
+
body = remote_client.body
|
18
17
|
body
|
18
|
+
rescue => e
|
19
|
+
raise "#{e.class}: #{e.message} RemoteClient: #{@remote_client.inspect}"
|
19
20
|
end
|
20
21
|
|
21
22
|
def get_screenshot
|
@@ -23,6 +24,9 @@ module Coelacanth::Client
|
|
23
24
|
remote_client.network.wait_for_idle! # まずJSの完了を待つ
|
24
25
|
remote_client.screenshot(path: tempfile.path, format: "png")
|
25
26
|
File.read(tempfile.path)
|
27
|
+
rescue => e
|
28
|
+
tempfile.close
|
29
|
+
raise "#{e.class}: #{e.message} RemoteClient: #{@remote_client.inspect}"
|
26
30
|
end
|
27
31
|
|
28
32
|
private
|
data/lib/coelacanth/version.rb
CHANGED