puppeteer-ruby 0.44.0 → 0.44.2

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: 6ade25ba8f8e99240ed29fdad9300af7b65cc12ddf09e45c43f7b672c6324ed4
4
- data.tar.gz: 97d3bfc48b3a2e3729dd8857c2bb6deca7babd4d0b055195f2dbe7c01c941e97
3
+ metadata.gz: 122e93a49a21ba31268f981920fb45ddf3bbc4e5b5e37705337c7f0fcfb416d8
4
+ data.tar.gz: '0940d06d294a8a069d23fd02dee7a1f00b99a3a0c787b4520d8854be0103f1cf'
5
5
  SHA512:
6
- metadata.gz: 891d8c29ac63d25cdb34178024d7a9202675d77b121a903e24a51e9465e46a9b7a0a9b70a2d893d9b274724b5547d5bb90e133aa2c217052f3f523f952e1a0a3
7
- data.tar.gz: eea1fb6ff2f179208932a3bb84ca96841b1b08ff588d914e88ace6ad9e31f71c567c21321e3376b019a265122e51a4352b3f0039dd6bea770dba2a383efe82e5
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.0...main)]
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
- * OOP iframe support
88
- * Customize debugging port
89
- * HTTPRequest#initiator
90
- * Customize temp directory for user data
91
- * Add webp to screenshot quality option allow list
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
@@ -1,6 +1,6 @@
1
1
  # API coverages
2
2
  - Puppeteer version: v17.1.3
3
- - puppeteer-ruby version: 0.44.0
3
+ - puppeteer-ruby version: 0.44.2
4
4
 
5
5
  ## Puppeteer
6
6
 
@@ -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&.fulfill(nil)
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)
@@ -1,3 +1,3 @@
1
1
  module Puppeteer
2
- VERSION = '0.44.0'
2
+ VERSION = '0.44.2'
3
3
  end
@@ -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.0
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-09-21 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby