eyes_calabash 3.16.5 → 3.16.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b62eb7c8b94dd85b9b4770b3767032a317e1cf71f7cc3f086573e104833080b
4
- data.tar.gz: 109a99a055c7a5da2e0a6cda7bede2c84782c304bc0317d2063fe97dba271920
3
+ metadata.gz: 715e209376c6cc999baf6b0883ffd84ac01c2ba9f9d5053d8f25eae5b0e6fc9d
4
+ data.tar.gz: b933cdd357ccbc59b9d0a2204d49c54855bb59e9c0afc1edbbefbb22c7a0c32a
5
5
  SHA512:
6
- metadata.gz: b6afd914a9e8c3d61e6bcbfd778e8975b5f0bec8a14b342d6db1fb58e58b5f29ee2179ca68774151225d0c3083c56b78eb63d564b0b7f5a5825fd1700e75993f
7
- data.tar.gz: 434577d31aa65c5729e55d1abeb03a0b7bd642f3ed26d88380dcb3dd89f5414600f99047267bde39fe68f8f2bbc7108828ac5319f9d6e6af5e8f626a2510922b
6
+ metadata.gz: 7f6519b23e77ec92e4c7ef09e27f519c0208e75824cec8032961e7a3d13d520c6ddf52b4c8c3bfa46febf25d3316489901fe253d7b78779b4122d06c0aa52c7f
7
+ data.tar.gz: d0bf824c3b16bfd2881e4d04f2c7534451f44fa97984d436b4bcb8074be1f29cbec41a40ebb7693543ebb637e85419ceb8c551f538b71fde96e46191876ec723
@@ -22,7 +22,19 @@ module Applitools
22
22
  open_base options
23
23
  end
24
24
 
25
- def check(name, target)
25
+ def check(*args)
26
+ args.compact!
27
+ case (first_arg = args.shift)
28
+ when String
29
+ name = first_arg
30
+ target = args.shift
31
+ when Applitools::Selenium::Target
32
+ target = first_arg
33
+ when Hash
34
+ target = first_arg[:target]
35
+ name = first_arg[:name] || first_arg[:tag]
36
+ end
37
+
26
38
  self.tag_for_debug = get_tag_for_debug(name)
27
39
  check_it(name, target, Applitools::MatchWindowData.new(default_match_settings))
28
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.16.5'.freeze
4
+ VERSION = '3.16.6'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_calabash
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.5
4
+ version: 3.16.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.16.5
61
+ version: 3.16.6
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 3.16.5
68
+ version: 3.16.6
69
69
  description: Provides SDK for writing Applitools Calabash tests.
70
70
  email:
71
71
  - team@applitools.com