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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 320be95cd3ffe6b905abacda5aa1a7fad00324bd79eafbe9969c3f80ed2695b5
4
- data.tar.gz: f53305c6f1a07080ce16412ad4d1eb272691f27f50ccb468ee6f8bcb9bf69382
3
+ metadata.gz: 7d92c04c82f120570d29b58787a36897bb769d789dfd5ecbf5f7da725c08710a
4
+ data.tar.gz: d7e25b8f1eb0e269dec2d6cf8c0c9209693b2f068ebf389ee61f3450fe7db3b2
5
5
  SHA512:
6
- metadata.gz: 3201b30bcde133d5edc963d2522627082783df3565bff9644c8a9c33e2ade577cc8f3ca80b97d6a47ccfa9fc9734a768b94842386883604dd60b69176cc636c0
7
- data.tar.gz: 9faaed9ade6c3e6258b7480fe6b2007a715f6b338413b09079b8e523823c4392ee82ec8fe5570dd71236d126c75b7e59fa0161380c5ea15c5df8a62f3d697c74
6
+ metadata.gz: 432f908bf812f69f6398e0346d6f7a104391f56c1057adaa14de06457f2512ddd695b58f2b96ad90ca9063ea533bc54429f4b199c5dea541901dc2839c645143
7
+ data.tar.gz: 1fdbe4cbe2d354d15d04fb2ba4fd3fd04f2f6c966d91123f443b75831d28aa977c691864bb3d84e1a6922878dbc0120d88d1cdc54ae0390f3052e6331f7dd12f
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.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.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
+ 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
 
@@ -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.3"
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.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-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,