playwright-ruby-client 1.58.1.alpha1 → 1.58.1.alpha2

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: 78c64e38b462ad2449eda1349128c44ae6dbe7adae66570b76cd886e005f418f
4
- data.tar.gz: d410ab0adf418bbf8f43925984a95663b7f947519b85e9afa93bec64daf76f06
3
+ metadata.gz: adc760c38322e07cf99965e6fde7741a8d5881fd060f8fbc1441279ba6e4bf2a
4
+ data.tar.gz: 4424e8fa87a872ae68fd1ad8fc30ea4fa839a9fc1804151fc483852c14149e7c
5
5
  SHA512:
6
- metadata.gz: 319787778e82280859a291247e01b4fc5626b12974e9d7e08fd7331beb596696f15cc83c09d9b6f2cb5a76c15ef30308cc9e9eb7f2f16462188d08bc72546ddc
7
- data.tar.gz: df5b988a9124a42006720bee860c3ebc91804ebc9ce396a922b0dbd0e1a1c81798912cd42530f91dcde49da83432b60be17cded55408548d7e795a7991b8276b
6
+ metadata.gz: 92c6a41d91acaa155621b79304a65e6adcdac2d33baf5c33db110f88643629ff564b2af2480cc7dc1d52a52d9191765b7c77d1c31be0d97e505347b82dd23317
7
+ data.tar.gz: 435c63a632b413fa1c4ebb7234cff26149ad3658024e462906af99b03a0487ddf67672eff7d20bed694d44aa1949d0586f93a70a8dd87eb6ba97a686b1a1e6ba
@@ -1,8 +1,12 @@
1
1
  require 'base64'
2
+ require 'fileutils'
2
3
 
3
4
  module Playwright
4
5
  define_channel_owner :Stream do
5
6
  def save_as(path)
7
+ parent_dir = File.dirname(path)
8
+ FileUtils.mkdir_p(parent_dir) unless parent_dir == '.'
9
+
6
10
  File.open(path, 'wb') do |f|
7
11
  read_with_block do |chunk|
8
12
  f.write(chunk)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playwright
4
- VERSION = '1.58.1.alpha1'
4
+ VERSION = '1.58.1.alpha2'
5
5
  COMPATIBLE_PLAYWRIGHT_VERSION = '1.58.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playwright-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.58.1.alpha1
4
+ version: 1.58.1.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki