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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbc43cd12736e82ca3259af4a6f5dfbd1acdc107f405deae5988a69202f638c4
4
- data.tar.gz: 6fe527aba4f7050be0ee039b8e28228cea194f11ab6a039eeb3c4fa72b647b15
3
+ metadata.gz: 5e905c9995f718c953c11c9c199e7c945c0d413750becae8bdbc13cc4c0c1e5f
4
+ data.tar.gz: 9fec2af23369834b277ec50ef655b4a086b9df67698465f133b1af2ed059b11e
5
5
  SHA512:
6
- metadata.gz: 282e114ed352bcd64639fbf7c4ae52fc7364f2556b72980ac3abd27b0aab674a73ab41995265520c61770b9c5d3087527d3231cd4772c74bb1199290321aa8d9
7
- data.tar.gz: 17c02fd2fc0900d2ab5c0eb512e7afddfcfa7d6b372a75077e475cf17ccdcc8b470bf0b047cc1c03bb6166a019d62e0ce9ab38978cdc9008362386b83e487b48
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
@@ -1,6 +1,6 @@
1
1
  # API coverages
2
2
  - Puppeteer version: v24.35.0
3
- - puppeteer-ruby version: 0.50.0
3
+ - puppeteer-ruby version: 0.50.1
4
4
 
5
5
  ## Puppeteer
6
6
 
@@ -1,3 +1,3 @@
1
1
  module Puppeteer
2
- VERSION = '0.50.0'
2
+ VERSION = '0.50.1'
3
3
  end
@@ -17,7 +17,10 @@ class Puppeteer::WebSocketTransport
17
17
 
18
18
  def initialize(url)
19
19
  @url = url
20
- @endpoint = Async::HTTP::Endpoint.parse(url)
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2026-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async