capybara-playwright-driver 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f12da8f24faaf7dca07c39e57c8ea56d79395a89c2240d99ff48fdc065e10dc1
4
- data.tar.gz: 07c2560cc17f103aecd41ddd7267e9eb0abd310546f32756a852cc61e3e3f92d
3
+ metadata.gz: ff2e156c0f77ca328e9f95266e2b3ec6bf5a8250dbdbdb4d8c5e58b6590c042b
4
+ data.tar.gz: 252a5c70de1364cde5fd3996466d166deb3d17639476731c63e24c362a3f46bd
5
5
  SHA512:
6
- metadata.gz: 0d1de191eff8c0a8a3da8366c38e367eaf215a836c5148cc1ed001c9af28b13f9d9126685a43fb0c871829f9b97e5ec55d0d1cbc77d44da5fb4e42b907941e2f
7
- data.tar.gz: d7be26ec2e30b783a24324c923ac5ca9164a88077c7010a39e95757b3a0ef68bd156f849354085e8344f76a7f9a38843bc972ad516bd8c1416964aa2a486f538
6
+ metadata.gz: fcfa998db2aa8701ba465be17b67df0164e9fdb4cb9c7c087342256143dde984573f7627d20297f6dc1b9680d9b6bfa5b3e2227f4bbc91eea3bfd878c76ad01a
7
+ data.tar.gz: f792c1dd299fc9d257c6a38311a270979da849f4617d5827bbcfe7b186ccbca80cb92f27b1f4b6e6684a9443f8751af18501d4857f22031754ded783b6519219
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ['lib']
26
26
 
27
27
  spec.required_ruby_version = '>= 2.4'
28
+ spec.add_dependency 'addressable'
28
29
  spec.add_dependency 'capybara'
29
30
  spec.add_dependency 'playwright-ruby-client', '>= 1.16.0'
30
31
  spec.add_development_dependency 'allure-rspec'
@@ -1,3 +1,4 @@
1
+ require 'addressable/uri'
1
2
  require_relative './tmpdir_owner'
2
3
 
3
4
  module Capybara
@@ -74,9 +75,9 @@ module Capybara
74
75
  assert_page_alive {
75
76
  url =
76
77
  if Capybara.app_host
77
- URI(Capybara.app_host).merge(path)
78
+ Addressable::URI.parse(Capybara.app_host) + path
78
79
  elsif Capybara.default_host
79
- URI(Capybara.default_host).merge(path)
80
+ Addressable::URI.parse(Capybara.default_host) + path
80
81
  else
81
82
  path
82
83
  end
@@ -26,7 +26,7 @@ module Capybara
26
26
  end
27
27
 
28
28
  def playwright_execution
29
- @playwright_execution ||= ::Playwright.connect_to_playwright_server(@ws_endpoint)
29
+ @playwright_execution ||= ::Playwright.connect_to_playwright_server("#{@ws_endpoint}?browser=#{@browser_type}")
30
30
  end
31
31
 
32
32
  def playwright_browser
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capybara
4
4
  module Playwright
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-playwright-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: addressable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: capybara
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -227,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
241
  - !ruby/object:Gem::Version
228
242
  version: '0'
229
243
  requirements: []
230
- rubygems_version: 3.3.26
244
+ rubygems_version: 3.5.11
231
245
  signing_key:
232
246
  specification_version: 4
233
247
  summary: Playwright driver for Capybara