coelacanth 0.3.7 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9cde2dc7423280f6c872e9f63ba42391d42a6fc34692424b32fe634b9661089
4
- data.tar.gz: 133f914a1596ac1630050c6a070629260958ed45d2a086ea3ae29752816c6048
3
+ metadata.gz: 62040d12a6682d20ad4ec71ec6ab5d45f00a4814f2c4cd8dad22bc555352daac
4
+ data.tar.gz: 400b7e76c8a0260abc9c713566323dac84cd50758cda8013e54747cd465f909a
5
5
  SHA512:
6
- metadata.gz: d5faecc2919b8dc5b38b1b35df2b7bfb243ce22342aa7689f6b8e27de7bcf4c9cee43eb14d8231a9efde8df7822c129026aedc3e87a399dc878a76134ce30e34
7
- data.tar.gz: bef880be3dca56cab95599f57999a74de692d75e6816b161a8c75ebf6d62234e4b087494377daba4bd1c96c93c662f3ce30372a408359db7e68fd03869ecde53
6
+ metadata.gz: 6ffc542b1004c3cc3b8170f46e6e2f465bd7012ecebd99e9495c88431169f73e34f4e4558fab6c65b30e71b5e10509b2d76cca576cbc44345e098fa174f65732
7
+ data.tar.gz: 05c11331d46384976a872638e1e601118e49de427eb4a989e76ee73b02773379e6a3172a0a264a015e5db910800cc8fe0188c5d9d178bb2b9522c84b6043c884
data/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [v0.3.10] - 2025-06-19
8
+ ### :bug: Bug Fixes
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
+
11
+ ### :wrench: Chores
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))*
15
+
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.2"
9
+ gem "rake", "~> 13.3"
10
10
  gem "rspec", "~> 3.0"
11
- gem "rubocop", "~> 1.75"
11
+ gem "rubocop", "~> 1.76"
12
12
  gem "oga", "~> 3.4"
13
- gem "base64", "~> 0.2.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.2.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.2.1)
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.75.7)
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.44.0, < 2.0)
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.44.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.2.0)
93
+ base64 (~> 0.3.0)
94
94
  coelacanth!
95
95
  ferrum (~> 0.16)
96
96
  oga (~> 3.4)
97
- rake (~> 13.2)
97
+ rake (~> 13.3)
98
98
  rspec (~> 3.0)
99
- rubocop (~> 1.75)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coelacanth
4
- VERSION = "0.3.7"
4
+ VERSION = "0.3.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coelacanth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke
@@ -20,6 +20,7 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - ".rspec"
22
22
  - ".rubocop.yml"
23
+ - CHANGELOG.md
23
24
  - CODE_OF_CONDUCT.md
24
25
  - Dockerfile
25
26
  - Gemfile