eyes_appium 6.5.1 → 6.6.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: 5d320d12db98d8e77db2615747975b1c3e86a427b84079d5012b0cbca668965d
4
- data.tar.gz: 19b644525e28d86edea7df4fcfaf945bfc1bb5a5433a062c25a3a6ffde64e233
3
+ metadata.gz: 956959aba7c74cb8d9dcd0af6a59ad218d04d6eca749b40204888decc1285965
4
+ data.tar.gz: 5a1fb116c1af86e1622936981e5e973e5e9e9a472d679aac74d02a81de49a67a
5
5
  SHA512:
6
- metadata.gz: dd2a3ed81fd377719162519fff35923246043d2c0a710e3027eea993a855975225ccf03a2dbf0cb272b20bc7667157c4e46408f55642b8180afe96388344513a
7
- data.tar.gz: f674eac8a2dabc88086ce398235cca1ebeba23b70d0fa6bf707cd2ceba182588c8dc1e803bc940b478e564275522c89c63ed7655686a43578e2262e52c0d2708
6
+ metadata.gz: 1bdb95d63be7802aa5fbd2f58eff51023785d2010dc3f43cf18284e0f228d968a074858ec17a3ee0d296a01e224a6b9c5ce99281b93d2d0afe8c7200e1cc7cae
7
+ data.tar.gz: 8f84425af749744a9dfb46556955efa1ac5abe5e3f3697398c8b1e7115a5c6f4a1993e9d19502a251884e652a987813f944b1449ccd184d58773b7a237127385
data/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.6.0](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_appium@6.5.1...ruby/eyes_appium@6.6.0) (2025-07-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * android multi target | AD-9868 ([#2943](https://github.com/Applitools-Dev/sdk/issues/2943)) ([808aa21](https://github.com/Applitools-Dev/sdk/commit/808aa21e489c3562b93006e2e26ff7ffbb743dd6))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/nml-client bumped to 1.10.0
14
+ #### Features
15
+
16
+ * android multi target | AD-9868 ([#2943](https://github.com/Applitools-Dev/sdk/issues/2943)) ([808aa21](https://github.com/Applitools-Dev/sdk/commit/808aa21e489c3562b93006e2e26ff7ffbb743dd6))
17
+
18
+
19
+
20
+ * @applitools/core-base bumped to 1.26.0
21
+ #### Features
22
+
23
+ * batch properties limit | FLD-3174 ([#3080](https://github.com/Applitools-Dev/sdk/issues/3080)) ([feb9e79](https://github.com/Applitools-Dev/sdk/commit/feb9e79d79f5eab3c58eac2b4ef3c15a562f079c))
24
+ * @applitools/core bumped to 4.43.0
25
+ #### Features
26
+
27
+ * android multi target | AD-9868 ([#2943](https://github.com/Applitools-Dev/sdk/issues/2943)) ([808aa21](https://github.com/Applitools-Dev/sdk/commit/808aa21e489c3562b93006e2e26ff7ffbb743dd6))
28
+ * batch properties limit | FLD-3174 ([#3080](https://github.com/Applitools-Dev/sdk/issues/3080)) ([feb9e79](https://github.com/Applitools-Dev/sdk/commit/feb9e79d79f5eab3c58eac2b4ef3c15a562f079c))
29
+
30
+
31
+
32
+ * @applitools/ec-client bumped to 1.11.1
33
+
34
+ * eyes_universal bumped to 4.43.0
35
+
36
+ * eyes_core bumped to 6.8.2
37
+
38
+ * eyes_selenium bumped to 6.11.0
39
+ #### Features
40
+
41
+ * android multi target | AD-9868 ([#2943](https://github.com/Applitools-Dev/sdk/issues/2943)) ([808aa21](https://github.com/Applitools-Dev/sdk/commit/808aa21e489c3562b93006e2e26ff7ffbb743dd6))
42
+
43
+
44
+
45
+
3
46
  ## [6.5.1](https://github.com/Applitools-Dev/sdk/compare/ruby/eyes_appium@6.5.0...ruby/eyes_appium@6.5.1) (2025-07-15)
4
47
 
5
48
 
data/eyes_appium.gemspec CHANGED
@@ -27,7 +27,7 @@ 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_selenium', "= 6.10.1"
30
+ spec.add_dependency 'eyes_selenium', "= 6.11.0"
31
31
  spec.add_dependency 'appium_lib', '>= 10.6.0'
32
32
  # TODO: remove after appium_lib fix issue on their side at https://github.com/appium/ruby_lib_core/issues/602
33
33
  spec.add_dependency 'selenium-webdriver', ['>= 3', '< 4.30']
@@ -26,21 +26,83 @@ class Applitools::Appium::Eyes < Applitools::Selenium::SeleniumEyes
26
26
 
27
27
  private :perform_driver_settings_for_appium_driver
28
28
 
29
+ # Verifies a target in the application window.
30
+ #
31
+ # This method performs a visual check using Applitools AI. It can be called in multiple
32
+ # ways supporting different argument patterns for flexibility.
33
+ #
34
+ # @overload check(tag, target)
35
+ # @param [String] tag A name to be associated with the check
36
+ # @param [Applitools::Selenium::Target, Applitools::Appium::Target] target The target for the check
37
+ #
38
+ # @overload check(tag, options)
39
+ # @param [String] tag A name to be associated with the check
40
+ # @param [Hash] options The options hash
41
+ # @option options [Applitools::Selenium::Target, Applitools::Appium::Target] :target The target for the check
42
+ #
43
+ # @overload check(target)
44
+ # @param [Applitools::Selenium::Target, Applitools::Appium::Target] target The target for the check
45
+ #
46
+ # @overload check(options)
47
+ # @param [Hash] options The options hash
48
+ # @option options [String] :name, :tag A name to be associated with the check
49
+ # @option options [Applitools::Selenium::Target, Applitools::Appium::Target] :target The target for the check
50
+ #
51
+ # @example Basic check with tag and target
52
+ # eyes.check('Login page', Applitools::Appium::Target.window)
53
+ #
54
+ # @example Check with tag and hash options
55
+ # eyes.check('Login form', target: Applitools::Appium::Target.window.fully(false))
56
+ #
57
+ # @example Check with target only
58
+ # eyes.check(Applitools::Appium::Target.window)
59
+ #
60
+ # @example Check with options hash
61
+ # eyes.check(name: 'Login page', target: Applitools::Appium::Target.window)
62
+ #
63
+ # @return [Applitools::MatchResult] The match result
64
+ # @raise [Applitools::EyesIllegalArgument] If the target is not a valid Target instance
29
65
  def check(*args)
30
66
  args.compact!
31
- case (first_arg = args.shift)
67
+
68
+ # Extract name and target based on argument types
69
+ name = nil
70
+ target = nil
71
+
72
+ # Handle first argument
73
+ case args.first
32
74
  when String
33
- name = first_arg
75
+ # Format: check('name', target_object)
76
+ # Format: check('name', target: target_object)
77
+ name = args.shift
78
+
79
+ # Check if next argument is a hash with :target key
80
+ if args.first.is_a?(Hash) && args.first.key?(:target)
81
+ hash_arg = args.shift
82
+ target = hash_arg[:target]
83
+ else
84
+ # Otherwise it should be a direct target object
85
+ target = args.shift
86
+ end
87
+ when Applitools::Selenium::Target, Applitools::Appium::Target
88
+ # Format: check(target_object)
34
89
  target = args.shift
35
- when Applitools::Selenium::Target
36
- target = first_arg
37
90
  when Hash
38
- target = first_arg[:target]
39
- name = first_arg[:name] || first_arg[:tag]
91
+ # Format: check(name: 'name', target: target_object)
92
+ hash_arg = args.shift
93
+ name = hash_arg[:name] || hash_arg[:tag]
94
+ target = hash_arg[:target]
40
95
  end
41
96
 
42
97
  logger.info "check(#{name}) is called"
43
98
  self.tag_for_debug = name
99
+
100
+ # Extract the target object from its container if needed
101
+ if target.is_a?(Hash) && target.key?(:target)
102
+ target = target[:target]
103
+ end
104
+
105
+ # Ensure we have a proper Target object
44
106
  Applitools::ArgumentGuard.one_of? target, 'target', [Applitools::Selenium::Target, Applitools::Appium::Target]
45
107
 
46
108
  # target.fully(false) if target.options[:stitch_content].nil?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Applitools
4
4
  module EyesAppium
5
- VERSION = '6.5.1'.freeze
5
+ VERSION = '6.6.0'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_appium
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.1
4
+ version: 6.6.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: 2025-07-15 00:00:00.000000000 Z
11
+ date: 2025-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eyes_selenium
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 6.10.1
19
+ version: 6.11.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.10.1
26
+ version: 6.11.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appium_lib
29
29
  requirement: !ruby/object:Gem::Requirement