eyes_core 6.7.2 → 6.8.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 +4 -4
- data/CHANGELOG.md +103 -0
- data/eyes_core.gemspec +1 -1
- data/lib/applitools/core/dynamic_region.rb +34 -4
- data/lib/applitools/core/padding_bounds.rb +13 -1
- data/lib/applitools/eyes_core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd48d92ea1cfdc378db85dd20b116b5ea8ac6cd632784d89514a0cedb42fd8e
|
4
|
+
data.tar.gz: 59733c27cb8644386944326ef7f6d6e3510bd69601e890865e602d6e3743f544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce231c8a12f0cc24ad29b8e74bddedb62a1d2c1f3941a04bed2604e23d67a3f51d11450c5fed10f3d81b84a1df89a636099d922087866aeb78410b70c774ae01
|
7
|
+
data.tar.gz: 3fdbdd19556581597b7b2672c3b9b2c985ba82d3872685578a79580d44aa252f3bb19b6f3e7c49a6f2c0735bd98e4ed3c35e56c84e129c5050747e4f9e746ce7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,108 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [6.8.1](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.8.0...ruby/eyes_core@6.8.1) (2025-07-15)
|
4
|
+
|
5
|
+
|
6
|
+
### Dependencies
|
7
|
+
|
8
|
+
* @applitools/dom-snapshot bumped to 4.12.1
|
9
|
+
#### Performance Improvements
|
10
|
+
|
11
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
* @applitools/req bumped to 1.7.15
|
16
|
+
#### Performance Improvements
|
17
|
+
|
18
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
19
|
+
* @applitools/driver bumped to 1.22.1
|
20
|
+
#### Performance Improvements
|
21
|
+
|
22
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
23
|
+
* @applitools/spec-driver-selenium bumped to 1.6.1
|
24
|
+
|
25
|
+
* @applitools/screenshoter bumped to 3.11.7
|
26
|
+
#### Performance Improvements
|
27
|
+
|
28
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
* @applitools/nml-client bumped to 1.9.7
|
33
|
+
#### Performance Improvements
|
34
|
+
|
35
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
* @applitools/tunnel-client bumped to 1.9.0
|
40
|
+
#### Features
|
41
|
+
|
42
|
+
* enable EC healthchecks | AD-10040 ([#3017](https://github.com/Applitools-Dev/sdk/issues/3017)) ([c01c300](https://github.com/Applitools-Dev/sdk/commit/c01c300259427ddae53147a64d30b152960503d9))
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
* @applitools/ufg-client bumped to 1.16.14
|
47
|
+
#### Performance Improvements
|
48
|
+
|
49
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
* @applitools/core-base bumped to 1.25.6
|
54
|
+
#### Performance Improvements
|
55
|
+
|
56
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
* @applitools/ec-client bumped to 1.11.0
|
61
|
+
#### Features
|
62
|
+
|
63
|
+
* enable EC healthchecks | AD-10040 ([#3017](https://github.com/Applitools-Dev/sdk/issues/3017)) ([c01c300](https://github.com/Applitools-Dev/sdk/commit/c01c300259427ddae53147a64d30b152960503d9))
|
64
|
+
|
65
|
+
|
66
|
+
#### Performance Improvements
|
67
|
+
|
68
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
* @applitools/core bumped to 4.42.0
|
73
|
+
#### Features
|
74
|
+
|
75
|
+
* enable EC healthchecks | AD-10040 ([#3017](https://github.com/Applitools-Dev/sdk/issues/3017)) ([c01c300](https://github.com/Applitools-Dev/sdk/commit/c01c300259427ddae53147a64d30b152960503d9))
|
76
|
+
|
77
|
+
|
78
|
+
#### Performance Improvements
|
79
|
+
|
80
|
+
* yarn dedup packages ([#3061](https://github.com/Applitools-Dev/sdk/issues/3061)) ([2fd8951](https://github.com/Applitools-Dev/sdk/commit/2fd8951d6ce9c18a5dbdb648adaa2c454eae9b4e))
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
* @applitools/spec-driver-webdriver bumped to 1.3.1
|
85
|
+
|
86
|
+
* @applitools/spec-driver-puppeteer bumped to 1.5.1
|
87
|
+
|
88
|
+
* eyes_universal bumped to 4.42.0
|
89
|
+
|
90
|
+
|
91
|
+
## [6.8.0](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.7.2...ruby/eyes_core@6.8.0) (2025-07-14)
|
92
|
+
|
93
|
+
|
94
|
+
### Features
|
95
|
+
|
96
|
+
* updated ruby dummy files ([#3095](https://github.com/Applitools-Dev/sdk/issues/3095)) ([fcacc0f](https://github.com/Applitools-Dev/sdk/commit/fcacc0f5ca14e0159bc0060ce5c085c40b9f5569))
|
97
|
+
|
98
|
+
|
99
|
+
### Dependencies
|
100
|
+
|
101
|
+
* eyes_universal bumped to 4.41.0
|
102
|
+
#### Features
|
103
|
+
|
104
|
+
* updated ruby dummy files ([#3095](https://github.com/Applitools-Dev/sdk/issues/3095)) ([fcacc0f](https://github.com/Applitools-Dev/sdk/commit/fcacc0f5ca14e0159bc0060ce5c085c40b9f5569))
|
105
|
+
|
3
106
|
## [6.7.2](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_core@6.7.1...ruby/eyes_core@6.7.2) (2025-06-15)
|
4
107
|
|
5
108
|
|
data/eyes_core.gemspec
CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_dependency 'colorize'
|
41
41
|
spec.add_dependency 'websocket'
|
42
42
|
spec.add_dependency 'sorted_set'
|
43
|
-
spec.add_dependency 'eyes_universal', "= 4.
|
43
|
+
spec.add_dependency 'eyes_universal', "= 4.42.0"
|
44
44
|
|
45
45
|
spec.add_development_dependency 'bundler'
|
46
46
|
spec.add_development_dependency 'rake'
|
@@ -6,16 +6,46 @@ module Applitools
|
|
6
6
|
class DynamicRegion < ::Applitools::Region
|
7
7
|
attr_accessor :region_type
|
8
8
|
def initialize(element, region_type)
|
9
|
-
|
9
|
+
if element.is_a?(::Applitools::Region)
|
10
|
+
super(element.left, element.top, element.width, element.height)
|
11
|
+
self.padding = element.current_padding if element.current_padding
|
12
|
+
else
|
13
|
+
super(element.location.x, element.location.y, element.size.width, element.size.height)
|
14
|
+
end
|
10
15
|
self.region_type = region_type
|
11
16
|
end
|
12
17
|
|
13
18
|
def to_hash
|
19
|
+
hash = {
|
20
|
+
region: {
|
21
|
+
x: left,
|
22
|
+
y: top,
|
23
|
+
width: width,
|
24
|
+
height: height
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
# Type should always be an array
|
14
29
|
if region_type
|
15
|
-
|
16
|
-
|
17
|
-
|
30
|
+
hash[:type] = region_type.is_a?(Array) ? region_type : [region_type]
|
31
|
+
end
|
32
|
+
|
33
|
+
if current_padding && !current_padding.zero?
|
34
|
+
if padding_top == padding_right && padding_right == padding_bottom && padding_bottom == padding_left
|
35
|
+
# If all padding values are the same, use a single number
|
36
|
+
hash[:padding] = padding_top
|
37
|
+
else
|
38
|
+
# Otherwise, use an object with individual values
|
39
|
+
hash[:padding] = {
|
40
|
+
top: padding_top,
|
41
|
+
right: padding_right,
|
42
|
+
bottom: padding_bottom,
|
43
|
+
left: padding_left
|
44
|
+
}
|
45
|
+
end
|
18
46
|
end
|
47
|
+
|
48
|
+
hash
|
19
49
|
end
|
20
50
|
|
21
51
|
alias json_data to_hash
|
@@ -4,7 +4,15 @@ require_relative 'argument_guard'
|
|
4
4
|
module Applitools
|
5
5
|
class PaddingBounds
|
6
6
|
attr_accessor :padding_left, :padding_top, :padding_right, :padding_bottom
|
7
|
-
def initialize(padding_left, padding_top, padding_right, padding_bottom)
|
7
|
+
def initialize(padding_left = nil, padding_top = nil, padding_right = nil, padding_bottom = nil, **kwargs)
|
8
|
+
# Support both positional and keyword arguments
|
9
|
+
if padding_left.nil? && !kwargs.empty?
|
10
|
+
padding_left = kwargs[:left] || 0
|
11
|
+
padding_top = kwargs[:top] || 0
|
12
|
+
padding_right = kwargs[:right] || 0
|
13
|
+
padding_bottom = kwargs[:bottom] || 0
|
14
|
+
end
|
15
|
+
|
8
16
|
Applitools::ArgumentGuard.is_a?(padding_left, 'padding_left', Integer)
|
9
17
|
Applitools::ArgumentGuard.is_a?(padding_top, 'padding_top', Integer)
|
10
18
|
Applitools::ArgumentGuard.is_a?(padding_right, 'padding_right', Integer)
|
@@ -33,5 +41,9 @@ module Applitools
|
|
33
41
|
}
|
34
42
|
end
|
35
43
|
|
44
|
+
def zero?
|
45
|
+
padding_left == 0 && padding_top == 0 && padding_right == 0 && padding_bottom == 0
|
46
|
+
end
|
47
|
+
|
36
48
|
end
|
37
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 4.
|
117
|
+
version: 4.42.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 4.
|
124
|
+
version: 4.42.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|