puppeteer-ruby 0.40.0 → 0.40.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: af966d033f8cff7c99c121805ffe7dde6f4d73cfe0fa9f34937b9eedbeafd9b8
4
- data.tar.gz: 3578653749391fd953144e21160beb6baee5eb6463b43b8cecafcf3f3433bda7
3
+ metadata.gz: 189bf68e4da7ec9b5b816ef859469c084697b29237aeaa2e26cdc829620fda22
4
+ data.tar.gz: 661e878eb399c8513e3a92210949eca200c3853623169b548d0f288b525aa951
5
5
  SHA512:
6
- metadata.gz: 9ae375c2763cd2fd597f72b0e82ccae84eba414cb4e1b7b3e0067c250c869020118f58fc1d74e0bfe0bb512318501fcedd5c1a25f3725de44a29e01393227765
7
- data.tar.gz: 4dec50af05864ec0410e4d99bbec2cdccfbf06412eb21b3f923be4de892244510ba4a5d553dafc04b62d6de6381caf852238a9e971d2ba2d30c3009e78c9e048
6
+ metadata.gz: 4848815b7576739d73ce9f945099508cc2e5122a7fe230f28ae5cb2d78cd77867c97650c7004ab0ce7172938a05de52246e43ce2ecde21c825c3456a971a49d1
7
+ data.tar.gz: 3acfcec865a1a202dacfb831ca7dfaba5e2228769074e492487208edb7a2e944e6ad9d5202763359b8c36dbddc05e671f1f9fa53176f1e9e832d63c0ab907b8f
data/CHANGELOG.md CHANGED
@@ -1,7 +1,23 @@
1
- ### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.39.0...main)]
1
+ ### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.40.1...main)]
2
2
 
3
3
  - xxx
4
4
 
5
+ ### 0.40.1 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.40.0...0.40.1)]
6
+
7
+ Bugfix:
8
+
9
+ - Fix error on reload [#190](https://github.com/YusukeIwaki/puppeteer-ruby/pull/190)
10
+ - Fix error message on failing to find Chrome executable.
11
+ - Fix apidoc
12
+
13
+ ### 0.40.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.39.0...0.40.0)]
14
+
15
+ New features:
16
+
17
+ - Puppeteer 13.0, 13.1 functionalities
18
+ - Support Ruby 3.1
19
+
20
+
5
21
  ### 0.39.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.38.0...0.39.0)]
6
22
 
7
23
  New features:
data/docs/api_coverage.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # API coverages
2
2
  - Puppeteer version: v13.0.1
3
- - puppeteer-ruby version: 0.40.0
3
+ - puppeteer-ruby version: 0.40.1
4
4
 
5
5
  ## Puppeteer
6
6
 
@@ -296,6 +296,7 @@
296
296
  * ~~toString~~
297
297
  * type => `#type_text`
298
298
  * uploadFile => `#upload_file`
299
+ * waitForSelector => `#wait_for_selector`
299
300
 
300
301
  ## HTTPRequest
301
302
 
@@ -309,6 +310,8 @@
309
310
  * frame
310
311
  * headers
311
312
  * initiator
313
+ * ~~interceptResolutionState~~
314
+ * ~~isInterceptResolutionHandled~~
312
315
  * isNavigationRequest => `#navigation_request?`
313
316
  * method
314
317
  * postData => `#post_data`
@@ -286,15 +286,15 @@ module Puppeteer::Launcher
286
286
  end
287
287
 
288
288
  chrome_path = chrome_path_map[channel]
289
- if chrome_path.is_a?(Proc)
290
- chrome_path = chrome_path.call
291
- end
292
-
293
289
  unless chrome_path
294
290
  raise ArgumentError.new("Invalid channel: '#{channel}'. Allowed channel is #{chrome_path_map.keys}")
295
291
  end
296
292
 
297
- unless File.exist?(chrome_path)
293
+ if chrome_path.is_a?(Proc)
294
+ chrome_path = chrome_path.call
295
+ end
296
+
297
+ if !chrome_path || !File.exist?(chrome_path)
298
298
  raise "#{channel} is not installed on this system.\nExpected path: #{chrome_path}"
299
299
  end
300
300
 
@@ -195,7 +195,7 @@ module Puppeteer::Launcher
195
195
  firefox_path = firefox_path.call
196
196
  end
197
197
 
198
- unless File.exist?(firefox_path)
198
+ if !firefox_path || !File.exist?(firefox_path)
199
199
  raise "Nightly version of Firefox is not installed on this system.\nExpected path: #{firefox_path}"
200
200
  end
201
201
 
@@ -367,7 +367,7 @@ class Puppeteer::NetworkManager
367
367
 
368
368
  unless extra_info
369
369
  # Wait until we get the corresponding ExtraInfo event.
370
- @network_event_manager.enqueue_event_group(event['requestId'], QueuedEventGroup.new(event))
370
+ @network_event_manager.enqueue_event_group(event['requestId'], QueuedEventGroup.new(response_received_event: event))
371
371
  return
372
372
  end
373
373
  end
@@ -1,3 +1,3 @@
1
1
  module Puppeteer
2
- VERSION = '0.40.0'
2
+ VERSION = '0.40.1'
3
3
  end
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.40.0
4
+ version: 0.40.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby