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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 320be95cd3ffe6b905abacda5aa1a7fad00324bd79eafbe9969c3f80ed2695b5
4
- data.tar.gz: f53305c6f1a07080ce16412ad4d1eb272691f27f50ccb468ee6f8bcb9bf69382
3
+ metadata.gz: 506450022b367ef2795c9d67d66548b1893757dd740512286fb90f9b952f21d1
4
+ data.tar.gz: df860c4216846549ac335b15dbef4cd9f99aa068a464a47b58ba973ba9d3b771
5
5
  SHA512:
6
- metadata.gz: 3201b30bcde133d5edc963d2522627082783df3565bff9644c8a9c33e2ade577cc8f3ca80b97d6a47ccfa9fc9734a768b94842386883604dd60b69176cc636c0
7
- data.tar.gz: 9faaed9ade6c3e6258b7480fe6b2007a715f6b338413b09079b8e523823c4392ee82ec8fe5570dd71236d126c75b7e59fa0161380c5ea15c5df8a62f3d697c74
6
+ metadata.gz: f4f483791381bf5672c74c382c73129703983c936720184cdd870db211cb740bb5ff6685460c6152213eea8dfcce85c6666ffa189d23e3b58e92c183658b486e
7
+ data.tar.gz: 577737cc29a81134a288bb3bee66a220d46f80749a9824ff5b487b62dfe97a8f1209124266715c58d9021e7e88d47e634f675462e9d27e62bd8e3e93c532e31d
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "ferrum", "~> 0.15"
9
- gem "rake", "~> 13.0"
9
+ gem "rake", "~> 13.2"
10
10
  gem "rspec", "~> 3.0"
11
11
  gem "rubocop", "~> 1.21"
12
12
  gem "oga", "~> 3.4"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coelacanth (0.2.0)
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.4.4)
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.1)
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.24.0)
26
- parser (3.3.0.5)
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.7.3)
30
+ racc (1.8.1)
31
31
  rainbow (3.1.1)
32
- rake (13.1.0)
33
- regexp_parser (2.9.0)
34
- rexml (3.3.6)
35
- strscan
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
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.10.0)
45
- rspec-mocks (3.10.2)
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.10.0)
48
- rspec-support (3.10.2)
49
- rubocop (1.62.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 (>= 1.8, < 3.0)
56
- rexml (>= 3.2.5, < 4.0)
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.31.2)
61
- parser (>= 3.3.0.4)
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
- strscan (3.1.0)
67
- unicode-display_width (2.5.0)
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.0)
77
+ rake (~> 13.2)
82
78
  rspec (~> 3.0)
83
79
  rubocop (~> 1.21)
84
80
 
85
81
  BUNDLED WITH
86
- 2.5.7
82
+ 2.5.17
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coelacanth
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
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.0
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-09-12 00:00:00.000000000 Z
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,