ferrum 0.17 → 0.17.1

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: f586cea5a9987e2a53bfb860fb503d36fc9e2f4e16b7288dafe68b2e62f20ede
4
- data.tar.gz: a33d17e091b0d7b506f0934dd19f056ab15c72891659cc227f03bccad8d90cdd
3
+ metadata.gz: 88410588edf257c46fba50deecb31eb76fb96dce22b23520afe54fbae8e10508
4
+ data.tar.gz: ab2166dc33362607038211e789d67a0a2273f12ae187c1ca154805ea1cd75018
5
5
  SHA512:
6
- metadata.gz: 031a4dcb48ba0d22c1070ab8e905881f07369e7c19b61f03ef747d4ff3813be097a8f8bc65f692f4ed186687ba1e4e83c9de4482939a963b2541364c0d745b16
7
- data.tar.gz: 207975dde463249331095cada046454110ee80d8a4a42fdc7f51898ad514e0aa5395946e037abd5c5599a7fa2d570c279925555822d432c4470c6e955f37b85b
6
+ metadata.gz: 28c200004fa63e4c68367b83bded54c44f2eebdd83db334cf9000d0c789869b341a4ec23b8ccba5613155d14b349ad48d262e1b0927b47d44b83764bc3414a01
7
+ data.tar.gz: 7aa95f643eb03be04bbbc53d466b396f5d3ab0ce46343b7e4161f0ad272b5ab6772958e598aefd8bfb5b7bdb445359c480e21ad19adbd89ef6de870cbb9210bb
@@ -295,6 +295,8 @@ module Ferrum
295
295
  end
296
296
 
297
297
  def build_remote_debug_url(path:)
298
+ return path if Addressable::URI.parse(path).absolute?
299
+
298
300
  "http://#{process.host}:#{process.port}#{path}"
299
301
  end
300
302
  end
@@ -266,11 +266,11 @@ module Ferrum
266
266
  def bounding_rect(selector)
267
267
  rect = evaluate_async(%(
268
268
  const rect = document
269
- .querySelector('#{selector}')
269
+ .querySelector(arguments[0])
270
270
  .getBoundingClientRect();
271
271
  const {x, y, width, height} = rect;
272
- arguments[0]([x, y, width, height])
273
- ), timeout)
272
+ arguments[1]([x, y, width, height])
273
+ ), timeout, selector)
274
274
 
275
275
  { x: rect[0], y: rect[1], width: rect[2], height: rect[3] }
276
276
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ferrum
4
- VERSION = "0.17"
4
+ VERSION = "0.17.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ferrum
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.17'
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Vorotilin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-10 00:00:00.000000000 Z
11
+ date: 2025-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable