playwright-ruby-client 0.5.7 → 0.5.8

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: 66cf08a96bb2b41f99fdfcaa8880785ba08afb7287c9d98199d9312812d93362
4
- data.tar.gz: b7ee7d9db9f28a6752f20e935825412a7bf088e2c138f3ea5b985f114bf6e66d
3
+ metadata.gz: 6edb69becb86be4d50f959a89b068bca80135f98b7db737a8de23301abd92310
4
+ data.tar.gz: 61b8b4aed269864caadb03b780787ebb627269bdcf416ce1513b77a530c87dbe
5
5
  SHA512:
6
- metadata.gz: c50508317e8468f6cea658190b6b199f889777b8fcf6e0e7c208fb4e6574e122c0337562c4a8fec03a779750569ba54fa502ca85b71e8491a335cd7ae21e37b7
7
- data.tar.gz: 035fff2a09a49a95b28ebfed67b13842c4baf54021613af9a3efc5b0da99198c28bed559d8e6724dd15ede4dd99dd19509ef44f05640e8c090acba9539b5be31
6
+ metadata.gz: 8826473bfaf34affa5898551a68cc421403c0cea9cccd436fa3181706f84b3ef49cac4629a9749259096b41c90dcaa1cd844b88e0e4b6bf8a9761d6270ed07a2
7
+ data.tar.gz: 7d554a71a19a3473108b2e4a8e213a3dcac1adbdfa74c007fd95bc868f9d882b9c319660be65700e09791e1111526544875575150e81c0dea0437f818f29b4dc
@@ -10,6 +10,9 @@ module Playwright
10
10
  channel&.object
11
11
  end
12
12
 
13
+ # hidden field for caching API instance.
14
+ attr_accessor :_api
15
+
13
16
  # @param parent [Playwright::ChannelOwner|Playwright::Connection]
14
17
  # @param type [String]
15
18
  # @param guid [String]
@@ -31,7 +31,7 @@ module Playwright
31
31
  def wrap
32
32
  api_class = detect_class_for(@impl.class)
33
33
  if api_class
34
- api_class.new(@impl)
34
+ @impl._api ||= api_class.new(@impl)
35
35
  else
36
36
  raise NotImplementedError.new("Playwright::#{expected_class_name_for(@impl.class)} is not implemented")
37
37
  end
@@ -101,10 +101,6 @@ module Playwright
101
101
  @impl = impl
102
102
  end
103
103
 
104
- def ==(other)
105
- @impl.to_s == other.instance_variable_get(:'@impl').to_s
106
- end
107
-
108
104
  # @param block [Proc]
109
105
  private def wrap_block_call(block)
110
106
  return nil unless block.is_a?(Proc)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playwright
4
- VERSION = '0.5.7'
4
+ VERSION = '0.5.8'
5
5
  end
@@ -740,13 +740,13 @@ module Playwright
740
740
  end
741
741
 
742
742
  # @nodoc
743
- def options=(req)
744
- wrap_impl(@impl.options=(unwrap_impl(req)))
743
+ def pause
744
+ wrap_impl(@impl.pause)
745
745
  end
746
746
 
747
747
  # @nodoc
748
- def pause
749
- wrap_impl(@impl.pause)
748
+ def options=(req)
749
+ wrap_impl(@impl.options=(unwrap_impl(req)))
750
750
  end
751
751
 
752
752
  # -- inherited from EventEmitter --
@@ -60,13 +60,13 @@ module Playwright
60
60
  end
61
61
 
62
62
  # @nodoc
63
- def ok?
64
- wrap_impl(@impl.ok?)
63
+ def after_initialize
64
+ wrap_impl(@impl.after_initialize)
65
65
  end
66
66
 
67
67
  # @nodoc
68
- def after_initialize
69
- wrap_impl(@impl.after_initialize)
68
+ def ok?
69
+ wrap_impl(@impl.ok?)
70
70
  end
71
71
 
72
72
  # -- inherited from EventEmitter --
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.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby