playwright-ruby-client 1.42.0 → 1.42.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playwright
4
- VERSION = '1.42.0'
5
- COMPATIBLE_PLAYWRIGHT_VERSION = '1.42.0'
4
+ VERSION = '1.42.1'
5
+ COMPATIBLE_PLAYWRIGHT_VERSION = '1.42.1'
6
6
  end
@@ -81,19 +81,17 @@ module Playwright
81
81
 
82
82
  private def fulfill(result)
83
83
  cleanup
84
- unless @result.resolved?
85
- @result.fulfill(result)
86
- end
84
+ return if @result.resolved?
85
+ @result.fulfill(result)
87
86
  wait_for_event_info_after
88
87
  end
89
88
 
90
89
  private def reject(error)
91
90
  cleanup
91
+ return if @result.resolved?
92
92
  klass = error.is_a?(TimeoutError) ? TimeoutError : Error
93
93
  ex = klass.new(message: "#{error.message}#{format_log_recording(@logs)}")
94
- unless @result.resolved?
95
- @result.reject(ex)
96
- end
94
+ @result.reject(ex)
97
95
  wait_for_event_info_after(error: ex)
98
96
  end
99
97
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playwright-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.42.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-04 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -407,5 +407,5 @@ requirements: []
407
407
  rubygems_version: 3.3.26
408
408
  signing_key:
409
409
  specification_version: 4
410
- summary: The Ruby binding of playwright driver 1.42.0
410
+ summary: The Ruby binding of playwright driver 1.42.1
411
411
  test_files: []