playwright-ruby-client 1.17.0 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/docs/api/api_request.md +7 -0
  3. data/documentation/docs/api/api_request_context.md +137 -0
  4. data/documentation/docs/api/api_response.md +90 -0
  5. data/documentation/docs/api/browser_context.md +4 -0
  6. data/documentation/docs/include/api_coverage.md +30 -13
  7. data/lib/playwright/api_response_impl.rb +73 -0
  8. data/lib/playwright/channel_owners/api_request_context.rb +232 -0
  9. data/lib/playwright/channel_owners/browser_context.rb +3 -1
  10. data/lib/playwright/channel_owners/page.rb +4 -0
  11. data/lib/playwright/version.rb +2 -2
  12. data/lib/playwright_api/android.rb +6 -6
  13. data/lib/playwright_api/android_device.rb +8 -8
  14. data/lib/playwright_api/api_request.rb +18 -0
  15. data/lib/playwright_api/api_request_context.rb +14 -14
  16. data/lib/playwright_api/api_response.rb +68 -0
  17. data/lib/playwright_api/browser.rb +6 -6
  18. data/lib/playwright_api/browser_context.rb +12 -12
  19. data/lib/playwright_api/browser_type.rb +6 -6
  20. data/lib/playwright_api/cdp_session.rb +6 -6
  21. data/lib/playwright_api/console_message.rb +6 -6
  22. data/lib/playwright_api/dialog.rb +6 -6
  23. data/lib/playwright_api/element_handle.rb +6 -6
  24. data/lib/playwright_api/frame.rb +6 -6
  25. data/lib/playwright_api/js_handle.rb +6 -6
  26. data/lib/playwright_api/page.rb +15 -10
  27. data/lib/playwright_api/playwright.rb +6 -6
  28. data/lib/playwright_api/request.rb +6 -6
  29. data/lib/playwright_api/response.rb +6 -6
  30. data/lib/playwright_api/route.rb +6 -6
  31. data/lib/playwright_api/selectors.rb +6 -6
  32. data/lib/playwright_api/web_socket.rb +6 -6
  33. data/lib/playwright_api/worker.rb +8 -8
  34. data/playwright.gemspec +1 -1
  35. metadata +11 -6
@@ -27,12 +27,6 @@ module Playwright
27
27
  wrap_impl(@impl.wait_for_event(unwrap_impl(event), predicate: unwrap_impl(predicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
28
28
  end
29
29
 
30
- # -- inherited from EventEmitter --
31
- # @nodoc
32
- def off(event, callback)
33
- event_emitter_proxy.off(event, callback)
34
- end
35
-
36
30
  # -- inherited from EventEmitter --
37
31
  # @nodoc
38
32
  def once(event, callback)
@@ -45,6 +39,12 @@ module Playwright
45
39
  event_emitter_proxy.on(event, callback)
46
40
  end
47
41
 
42
+ # -- inherited from EventEmitter --
43
+ # @nodoc
44
+ def off(event, callback)
45
+ event_emitter_proxy.off(event, callback)
46
+ end
47
+
48
48
  private def event_emitter_proxy
49
49
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
50
50
  end
@@ -43,20 +43,14 @@ module Playwright
43
43
  wrap_impl(@impl.url)
44
44
  end
45
45
 
46
- # @nodoc
47
- def page=(req)
48
- wrap_impl(@impl.page=(unwrap_impl(req)))
49
- end
50
-
51
46
  # @nodoc
52
47
  def context=(req)
53
48
  wrap_impl(@impl.context=(unwrap_impl(req)))
54
49
  end
55
50
 
56
- # -- inherited from EventEmitter --
57
51
  # @nodoc
58
- def off(event, callback)
59
- event_emitter_proxy.off(event, callback)
52
+ def page=(req)
53
+ wrap_impl(@impl.page=(unwrap_impl(req)))
60
54
  end
61
55
 
62
56
  # -- inherited from EventEmitter --
@@ -71,6 +65,12 @@ module Playwright
71
65
  event_emitter_proxy.on(event, callback)
72
66
  end
73
67
 
68
+ # -- inherited from EventEmitter --
69
+ # @nodoc
70
+ def off(event, callback)
71
+ event_emitter_proxy.off(event, callback)
72
+ end
73
+
74
74
  private def event_emitter_proxy
75
75
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
76
76
  end
data/playwright.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.required_ruby_version = '>= 2.4'
28
28
  spec.add_dependency 'concurrent-ruby', '>= 1.1.6'
29
29
  spec.add_dependency 'mime-types', '>= 3.0'
30
- spec.add_development_dependency 'bundler', '~> 2.2.3'
30
+ spec.add_development_dependency 'bundler', '~> 2.3.0'
31
31
  spec.add_development_dependency 'chunky_png'
32
32
  spec.add_development_dependency 'dry-inflector'
33
33
  spec.add_development_dependency 'faye-websocket'
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.17.0
4
+ version: 1.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.3
47
+ version: 2.3.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.3
54
+ version: 2.3.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: chunky_png
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,9 @@ files:
210
210
  - documentation/README.md
211
211
  - documentation/babel.config.js
212
212
  - documentation/docs/api/accessibility.md
213
+ - documentation/docs/api/api_request.md
213
214
  - documentation/docs/api/api_request_context.md
215
+ - documentation/docs/api/api_response.md
214
216
  - documentation/docs/api/browser.md
215
217
  - documentation/docs/api/browser_context.md
216
218
  - documentation/docs/api/browser_type.md
@@ -275,6 +277,7 @@ files:
275
277
  - lib/playwright/accessibility_impl.rb
276
278
  - lib/playwright/android_input_impl.rb
277
279
  - lib/playwright/api_implementation.rb
280
+ - lib/playwright/api_response_impl.rb
278
281
  - lib/playwright/channel.rb
279
282
  - lib/playwright/channel_owner.rb
280
283
  - lib/playwright/channel_owners/android.rb
@@ -340,7 +343,9 @@ files:
340
343
  - lib/playwright_api/android_input.rb
341
344
  - lib/playwright_api/android_socket.rb
342
345
  - lib/playwright_api/android_web_view.rb
346
+ - lib/playwright_api/api_request.rb
343
347
  - lib/playwright_api/api_request_context.rb
348
+ - lib/playwright_api/api_response.rb
344
349
  - lib/playwright_api/browser.rb
345
350
  - lib/playwright_api/browser_context.rb
346
351
  - lib/playwright_api/browser_type.rb
@@ -386,8 +391,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
391
  - !ruby/object:Gem::Version
387
392
  version: '0'
388
393
  requirements: []
389
- rubygems_version: 3.2.32
394
+ rubygems_version: 3.3.3
390
395
  signing_key:
391
396
  specification_version: 4
392
- summary: The Ruby binding of playwright driver 1.17.0
397
+ summary: The Ruby binding of playwright driver 1.17.2
393
398
  test_files: []