puppeteer-ruby 0.44.0 → 0.44.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/CHANGELOG.md +18 -10
- data/docs/api_coverage.md +1 -1
- data/lib/puppeteer/lifecycle_watcher.rb +1 -1
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/web_socket.rb +5 -0
- 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: 122e93a49a21ba31268f981920fb45ddf3bbc4e5b5e37705337c7f0fcfb416d8
|
|
4
|
+
data.tar.gz: '0940d06d294a8a069d23fd02dee7a1f00b99a3a0c787b4520d8854be0103f1cf'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8253f32cb5b92f3413ba88e5179494f76b7e3c6b7a7b58e1544691586ae771ded9992cb9404f94998e72a958e6da7fbb21df4eb00e04c7446a875b0ce4cb005f
|
|
7
|
+
data.tar.gz: 07114ec059413a71c444e467cc61a35428c5091a1cc015b1b33447f1bfae0c543fc419a36020824e40a3ad7d8e79438c7a69770a850578eea1c8e6f3ab6b4aa3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.44.
|
|
1
|
+
### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.44.2...main)]
|
|
2
2
|
|
|
3
3
|
- xxx
|
|
4
4
|
|
|
5
|
+
### 0.44.2 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.44.1...0.44.2)]
|
|
6
|
+
|
|
7
|
+
Bugfix
|
|
8
|
+
|
|
9
|
+
- Fix warning on `Page#wait_for_navigation`
|
|
10
|
+
|
|
11
|
+
### 0.44.1 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.44.0...0.44.1)]
|
|
12
|
+
|
|
13
|
+
Bugfix
|
|
14
|
+
|
|
15
|
+
- Ensure closing websocket [#269](https://github.com/YusukeIwaki/puppeteer-ruby/pull/269)
|
|
16
|
+
|
|
5
17
|
### 0.44.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.43.1...0.44.0)]
|
|
6
18
|
|
|
7
19
|
- Port Puppeteer v17.0-v17.1 features.
|
|
8
20
|
- `wait_for_selector` no longer accept `root` parameter.
|
|
9
21
|
|
|
10
|
-
|
|
11
22
|
### 0.43.1 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.43.0...0.43.1)]
|
|
12
23
|
|
|
13
24
|
- Port Puppeteer v16.1 features, including bugfix and XPath query handler.
|
|
@@ -50,7 +61,6 @@ Bugfix:
|
|
|
50
61
|
|
|
51
62
|
- Prevent `Ctrl+C` from stopping Chrome [#196](https://github.com/YusukeIwaki/puppeteer-ruby/pull/196)
|
|
52
63
|
|
|
53
|
-
|
|
54
64
|
### 0.40.2 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.40.1...0.40.2)]
|
|
55
65
|
|
|
56
66
|
Bugfix:
|
|
@@ -72,7 +82,6 @@ New features:
|
|
|
72
82
|
- Puppeteer 13.0, 13.1 functionalities
|
|
73
83
|
- Support Ruby 3.1
|
|
74
84
|
|
|
75
|
-
|
|
76
85
|
### 0.39.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.38.0...0.39.0)]
|
|
77
86
|
|
|
78
87
|
New features:
|
|
@@ -84,12 +93,11 @@ New features:
|
|
|
84
93
|
New features:
|
|
85
94
|
|
|
86
95
|
- Puppeteer 11.0 functionalities
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
96
|
+
- OOP iframe support
|
|
97
|
+
- Customize debugging port
|
|
98
|
+
- HTTPRequest#initiator
|
|
99
|
+
- Customize temp directory for user data
|
|
100
|
+
- Add webp to screenshot quality option allow list
|
|
93
101
|
|
|
94
102
|
### 0.37.4 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.37.3...0.37.4)]
|
|
95
103
|
|
data/docs/api_coverage.md
CHANGED
|
@@ -100,7 +100,7 @@ class Puppeteer::LifecycleWatcher
|
|
|
100
100
|
# Resolve previous navigation response in case there are multiple
|
|
101
101
|
# navigation requests reported by the backend. This generally should not
|
|
102
102
|
# happen by it looks like it's possible.
|
|
103
|
-
@navigation_response_received
|
|
103
|
+
@navigation_response_received.fulfill(nil) if @navigation_response_received && !@navigation_response_received.resolved?
|
|
104
104
|
@navigation_response_received = resolvable_future
|
|
105
105
|
if request.response && !@navigation_response_received.resolved?
|
|
106
106
|
@navigation_response_received.fulfill(nil)
|
data/lib/puppeteer/version.rb
CHANGED
data/lib/puppeteer/web_socket.rb
CHANGED
|
@@ -45,6 +45,10 @@ class Puppeteer::WebSocket
|
|
|
45
45
|
rescue Errno::ECONNRESET
|
|
46
46
|
raise EOFError.new('closed by remote')
|
|
47
47
|
end
|
|
48
|
+
|
|
49
|
+
def dispose
|
|
50
|
+
@socket.close
|
|
51
|
+
end
|
|
48
52
|
end
|
|
49
53
|
|
|
50
54
|
STATE_CONNECTING = 0
|
|
@@ -107,6 +111,7 @@ class Puppeteer::WebSocket
|
|
|
107
111
|
return if @ready_state >= STATE_CLOSING
|
|
108
112
|
@ready_state = STATE_CLOSING
|
|
109
113
|
@driver.close(reason, code)
|
|
114
|
+
@impl.dispose
|
|
110
115
|
end
|
|
111
116
|
|
|
112
117
|
def on_open(&block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppeteer-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.44.
|
|
4
|
+
version: 0.44.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YusukeIwaki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|