puppeteer-ruby 0.50.0 → 0.50.1
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/CLAUDE.md +15 -0
- data/docs/api_coverage.md +1 -1
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/web_socket_transport.rb +4 -1
- 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: 5e905c9995f718c953c11c9c199e7c945c0d413750becae8bdbc13cc4c0c1e5f
|
|
4
|
+
data.tar.gz: 9fec2af23369834b277ec50ef655b4a086b9df67698465f133b1af2ed059b11e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e636edbdf0dcb3731e7b688936f4c04bf7b9f21668ce6ed712d993e2dac41b748f4e49e89b9b43ddfcdd2b37138275bf1b95e5191d7d09cd1d3df664f6838358
|
|
7
|
+
data.tar.gz: 1e7478c8a4757743d6e31321af550b0900b04a46785b51ac2bb0203060d1456e8917722ad6631ae86a546b8fccb7f1947b185b7c9007e7720773a1772146557a
|
data/CLAUDE.md
CHANGED
|
@@ -206,6 +206,21 @@ end
|
|
|
206
206
|
|
|
207
207
|
## Development Workflow
|
|
208
208
|
|
|
209
|
+
### Handling Bug Reports
|
|
210
|
+
|
|
211
|
+
When investigating a bug reported by a user (e.g., GitHub issue):
|
|
212
|
+
|
|
213
|
+
1. **First, reproduce the issue** - Write a minimal reproduction script or RSpec test that demonstrates the bug
|
|
214
|
+
2. **Verify the reproduction** - Run the test and confirm it fails as described in the report
|
|
215
|
+
3. **Then investigate** - Only after reproduction is confirmed, analyze the root cause
|
|
216
|
+
4. **Implement the fix** - Make the necessary code changes
|
|
217
|
+
5. **Verify the fix** - Run the reproduction test again and confirm it now passes
|
|
218
|
+
|
|
219
|
+
This workflow ensures:
|
|
220
|
+
- The bug is real and reproducible
|
|
221
|
+
- The fix actually addresses the reported issue
|
|
222
|
+
- A regression test exists for the future
|
|
223
|
+
|
|
209
224
|
### Before Submitting Changes
|
|
210
225
|
|
|
211
226
|
1. Run tests: `bundle exec rspec`
|
data/docs/api_coverage.md
CHANGED
data/lib/puppeteer/version.rb
CHANGED
|
@@ -17,7 +17,10 @@ class Puppeteer::WebSocketTransport
|
|
|
17
17
|
|
|
18
18
|
def initialize(url)
|
|
19
19
|
@url = url
|
|
20
|
-
|
|
20
|
+
# Force HTTP/1.1 for WebSocket connections.
|
|
21
|
+
# Some servers (e.g., Google Cloud Run) advertise HTTP/2 via ALPN but don't
|
|
22
|
+
# properly support WebSocket over HTTP/2 (RFC 8441), causing stream errors.
|
|
23
|
+
@endpoint = Async::HTTP::Endpoint.parse(url, alpn_protocols: ["http/1.1"])
|
|
21
24
|
@connection = nil
|
|
22
25
|
@task = nil
|
|
23
26
|
@closed = false
|
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.50.
|
|
4
|
+
version: 0.50.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YusukeIwaki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async
|