charai 0.2.0.beta1 → 0.2.0.beta3

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: 0da70ce8b749b76af884e10bc9a801965e49e80defde5b118cbecaae71277ac5
4
- data.tar.gz: bafaf0e4d31d0a9e0bc7e2bfd381c1671cf8b9776d13e40b23f50f4ab1671c3b
3
+ metadata.gz: 6869155416cf575fb5ca92ad016bc290d5c9f22588f7df3ad7dea42e4203cfdd
4
+ data.tar.gz: 2c1104a4f589a27d7c0df38e145bfe75593a58e6cee74c96b9667d63b1019d26
5
5
  SHA512:
6
- metadata.gz: 1d20a04f1c1653c8e4482bd0f454a567ba08ff571f7ff0d6aa1f634e9a0146e6b8f2e17684bd3f7441f92ba3428e06cc32541a8b701e54253cbc4e5181a68525
7
- data.tar.gz: d27e90d862d238ee218f998eca39774afbe795c4427a3e837efa2f8f5879f6e2802ff8b07b22f5d9ea8ea36154b5103a9e9e45396f06411bb80d8e21d15d7a19
6
+ metadata.gz: 03b0a8ffc1279452a44475e80b9ddbf701462562d3a238a2ad42f005f4f8ae160e080a403a368f38c247c3b26d712a6df331d540bf891f97a5c0a17ac8ddb405
7
+ data.tar.gz: 485479120797b7be38843d81b6dc14be31f9656999869355067ec5bb2a577a37bc0d59c31a6be565f8cfa98d1f08b3420a5ac591af8e56cbc1513c123b5d40f1
data/lib/charai/driver.rb CHANGED
@@ -37,7 +37,7 @@ module Charai
37
37
  end
38
38
 
39
39
  def save_screenshot(path = nil, **_options)
40
- browsing_context.capture_screenshot.tap do |binary|
40
+ browsing_context.capture_screenshot(format: { type: 'png' }).tap do |binary|
41
41
  if path
42
42
  File.open(path, 'wb') do |fp|
43
43
  fp.write(binary)
@@ -60,7 +60,7 @@ module Charai
60
60
  trigger_callback(:on_action_start, 'capture_screenshot', {})
61
61
 
62
62
  current_url = @browsing_context.url
63
- @browsing_context.capture_screenshot(format: 'png').tap do |binary|
63
+ @browsing_context.capture_screenshot(format: { type: 'png' }).tap do |binary|
64
64
  if @message_sender
65
65
  message = Agent::Message.new(
66
66
  text: "Capture of #{current_url}",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Charai
4
- VERSION = "0.2.0.beta1"
4
+ VERSION = "0.2.0.beta3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta1
4
+ version: 0.2.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki