charai 0.2.0.beta1 → 0.2.0.beta2

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: 7bfb144fd502f114e8749abd5cc23188a99014ad30e47452e81a5b2aa755028a
4
+ data.tar.gz: 5210f942e451c57aaae8bfa72cd803dc77ec8cffc5c517ac7b2da56498d70b9e
5
5
  SHA512:
6
- metadata.gz: 1d20a04f1c1653c8e4482bd0f454a567ba08ff571f7ff0d6aa1f634e9a0146e6b8f2e17684bd3f7441f92ba3428e06cc32541a8b701e54253cbc4e5181a68525
7
- data.tar.gz: d27e90d862d238ee218f998eca39774afbe795c4427a3e837efa2f8f5879f6e2802ff8b07b22f5d9ea8ea36154b5103a9e9e45396f06411bb80d8e21d15d7a19
6
+ metadata.gz: e900017b056d4f0d58e3895a4364a575b1925b10ca41d5fa50066d2394329f8f5de897deadafe6b5cd8767b506021f373bebe6bbea2f3df7d9c9b1a6cbe7c06f
7
+ data.tar.gz: d11259eb89c00fa35a76125ab8c339b697de67f538865a7d8df6d1a497cf1bb51770d0654097527e318e20d864f19a4412278577814d2e0134f800eb468371a8
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,8 @@ 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
+ binding.irb
64
+ @browsing_context.capture_screenshot(format: { type: 'png' }).tap do |binary|
64
65
  if @message_sender
65
66
  message = Agent::Message.new(
66
67
  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.beta2"
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.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki