eyes_images 6.3.8 → 6.4.0

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: a0c9762653e8131172ba3761d938e1713248bfd1727b0a5adf51e7b38b5d8e6b
4
- data.tar.gz: 17223eb5070a94a67bc1cbb11aaed312bb8a2319f87c629f2d6254c0a65bed16
3
+ metadata.gz: 5ea4b330217b1ae4b8e7cf334132bd0c4f69e1f565f3fedae556083f4337a045
4
+ data.tar.gz: 6f5ed27e28f0471aad5a419b3c59e960ab23493552ad3ab2e65ade578cc89068
5
5
  SHA512:
6
- metadata.gz: d31b081de336a60d6b635a107b97d227f1099a622f0e7fbfd73ff6c2247a566caa2aba2d4210f36d494b367d6d9cd44f226ef0be54760e2b24cb54e6ea200b1a
7
- data.tar.gz: 6b15fb2d08b9c08b85f439056f521fd3dd9faf6732e47f6e47fcd12eccf616a289c6da48c66b598fc57f6692c3149b26978cc9ef64da594f9be2cb1577fde05f
6
+ metadata.gz: 36f67bbda5afc3c2ee9be115d12d4d10e04703b2cb269a8faa482ef22040add3dfc2a2490593f4841630616d7267239a1cea28f2484a701d84fab2479b0754f4
7
+ data.tar.gz: 9e095e2ae1870f9f443a49451014dd7f799c855bcd7507a8937f8342589e389bedb8d4c579e6ede0585bfcc110acc100313771da92327d4c49168efa004310bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.4.0](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_images@6.3.8...ruby/eyes_images@6.4.0) (2024-10-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/snippets bumped to 2.5.1
14
+ #### Bug Fixes
15
+
16
+ * isStaleElement error ([#2567](https://github.com/Applitools-Dev/sdk/issues/2567)) ([2675086](https://github.com/Applitools-Dev/sdk/commit/2675086aa28589082249e2958942ee29a5f2ef12))
17
+ * @applitools/core-base bumped to 1.18.0
18
+ #### Features
19
+
20
+ * ability to download side by side with highlighted diffs (2419) ([#2530](https://github.com/Applitools-Dev/sdk/issues/2530)) ([e06ce69](https://github.com/Applitools-Dev/sdk/commit/e06ce699f30e9e444ac58dafdf5989ff1c96ca1c))
21
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
22
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
23
+ * @applitools/driver bumped to 1.19.3
24
+
25
+ * @applitools/spec-driver-webdriver bumped to 1.1.15
26
+
27
+ * @applitools/spec-driver-selenium bumped to 1.5.86
28
+
29
+ * @applitools/spec-driver-puppeteer bumped to 1.4.15
30
+
31
+ * @applitools/screenshoter bumped to 3.9.0
32
+ #### Features
33
+
34
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
35
+
36
+
37
+
38
+ * @applitools/nml-client bumped to 1.8.13
39
+
40
+ * @applitools/ec-client bumped to 1.9.9
41
+
42
+ * @applitools/core bumped to 4.21.0
43
+ #### Features
44
+
45
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
46
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
47
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
48
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
49
+
50
+
51
+ #### Bug Fixes
52
+
53
+ * don't remove offline execution folder after running ([654e195](https://github.com/Applitools-Dev/sdk/commit/654e195dd50dc7dab93dd907ec26d788549c6e81))
54
+
55
+
56
+
57
+ * eyes_universal bumped to 4.21.0
58
+
59
+ * eyes_core bumped to 6.4.0
60
+ #### Features
61
+
62
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
63
+
64
+
65
+
66
+
3
67
  ## [6.3.8](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_images@6.3.7...ruby/eyes_images@6.3.8) (2024-09-10)
4
68
 
5
69
 
data/eyes_images.gemspec CHANGED
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
28
28
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
29
29
  spec.require_paths = %w(lib)
30
- spec.add_dependency 'eyes_core', "= 6.3.8"
30
+ spec.add_dependency 'eyes_core', "= 6.4.0"
31
31
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Applitools
4
4
  module EyesImages
5
- VERSION = '6.3.8'.freeze
5
+ VERSION = '6.4.0'.freeze
6
6
  end
7
7
  end
@@ -33,7 +33,7 @@ module Applitools::Images
33
33
  end
34
34
  end
35
35
 
36
- attr_accessor :image, :options, :ignored_regions, :region_to_check, :floating_regions, :accessibility_regions
36
+ attr_accessor :image, :options, :ignored_regions, :region_to_check, :floating_regions, :accessibility_regions, :dynamic_regions
37
37
 
38
38
  def convert_image_arg(image_arg)
39
39
  if image_arg.is_a?(Applitools::Screenshot)
@@ -63,6 +63,7 @@ module Applitools::Images
63
63
  self.ignored_regions = []
64
64
  self.floating_regions = []
65
65
  self.accessibility_regions = []
66
+ self.dynamic_regions = []
66
67
  self.options = {
67
68
  trim: false
68
69
  }
@@ -149,6 +150,19 @@ module Applitools::Images
149
150
  end
150
151
  end
151
152
 
153
+ def dynamic(*args)
154
+ dynamic_regions << case args.first
155
+ when Applitools::DynamicRegion
156
+ args.first
157
+ when Applitools::Region
158
+ Applitools::DynamicRegion.new(args.first, args.last)
159
+ else
160
+ dynamic_region_type = args.pop
161
+ region = Applitools::Region.new(*args)
162
+ Applitools::DynamicRegion.new(region, dynamic_region_type)
163
+ end
164
+ end
165
+
152
166
 
153
167
 
154
168
  private # dupl
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.8
4
+ version: 6.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eyes_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 6.3.8
19
+ version: 6.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 6.3.8
26
+ version: 6.4.0
27
27
  description: Provides Images SDK for Applitools tests.
28
28
  email:
29
29
  - team@applitools.com