playwright-ruby-client 0.5.2 → 0.5.3

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: 8979977d78ed7f62007ac6049ccf50a4c865093ac0d4c8828a8f8b8fdd69beef
4
- data.tar.gz: 20346e5f5a373b49441c81a1fc77cc15ed0afb3bd47479e7cb6e545935fb7dfa
3
+ metadata.gz: 81be247e4fe8a3bf351cf8ead156c490657547f89a1ae5f8a1536ad72a1c30e4
4
+ data.tar.gz: '0398932fd2d3eae453668624bad5271990bc426168caa56e71be773e87e9504a'
5
5
  SHA512:
6
- metadata.gz: f74fc9b91dccf461603ef6be94c7dbb6aae4899f7246fb4db1456018cc16c9e4fc63d6bf8c9912623b69d20d2901fcd5aab6e128638afc799fa20caac989ddaf
7
- data.tar.gz: f25f60d3d258fc5fa3592201a45e46e6b111a8508b4493c4308a206d4b33f7909925a1b8760e433a2b7139223e7670b4c9fa0474eccfc3ec2bf2c46061af04b4
6
+ metadata.gz: b77d93002b1395839dc4f9cf2c62bb40e9abaca0008aaf2a52c83498b811018782144686c7a83acdc8ae2b9bc3287b21e2808fcb996d6b270deb7fdf04c2dddb
7
+ data.tar.gz: 72c787d2dc63a2b78e09ae5660d1774a390e65ceb322529807965a0da95f27ca5f6ffd23dbcf1b81fb8ac4bb44f17ac58e508075c5cae959b1d1e233ed7c09e1
@@ -230,10 +230,11 @@ module Playwright
230
230
  nil
231
231
  end
232
232
 
233
- def check(force: nil, noWaitAfter: nil, timeout: nil)
233
+ def check(force: nil, noWaitAfter: nil, position: nil, timeout: nil)
234
234
  params = {
235
235
  force: force,
236
236
  noWaitAfter: noWaitAfter,
237
+ position: position,
237
238
  timeout: timeout,
238
239
  }.compact
239
240
  @channel.send_message_to_server('check', params)
@@ -241,10 +242,11 @@ module Playwright
241
242
  nil
242
243
  end
243
244
 
244
- def uncheck(force: nil, noWaitAfter: nil, timeout: nil)
245
+ def uncheck(force: nil, noWaitAfter: nil, position: nil, timeout: nil)
245
246
  params = {
246
247
  force: force,
247
248
  noWaitAfter: noWaitAfter,
249
+ position: position,
248
250
  timeout: timeout,
249
251
  }.compact
250
252
  @channel.send_message_to_server('uncheck', params)
@@ -124,7 +124,9 @@ module Playwright
124
124
  end
125
125
 
126
126
  private def unwrap_impl(object)
127
- if object.is_a?(PlaywrightApi)
127
+ if object.is_a?(Array)
128
+ object.map { |obj| unwrap_impl(obj) }
129
+ elsif object.is_a?(PlaywrightApi)
128
130
  object.instance_variable_get(:@impl)
129
131
  else
130
132
  object
@@ -33,7 +33,7 @@ module Playwright
33
33
  @stdin.write([msg.size].pack('V')) # unsigned 32bit, little endian
34
34
  @stdin.write(msg)
35
35
  }
36
- rescue Errno::EPIPE
36
+ rescue Errno::EPIPE, IOError
37
37
  raise AlreadyDisconnectedError.new('send_message failed')
38
38
  end
39
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playwright
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.3'
5
5
  end
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: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-28 00:00:00.000000000 Z
11
+ date: 2021-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby