eyes_core 6.0.1 → 6.0.3

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: 0bd86ce17adc6ff6b590aa8cab01ab5bd432f7bbc1605ce6f2041f1d8524f168
4
- data.tar.gz: 7d5e42ee68b07d8d3cbd6d2afe704e4d5b25198e40fbde925a632fd92bce08c4
3
+ metadata.gz: 0e97e9eb81a96c51c26cf36ad1b46b36b02c3bea1171e8a3a8b6211327062356
4
+ data.tar.gz: 6097761d08250599597f3010f1d529c92bbf05d3a662aa966656fabb31018b25
5
5
  SHA512:
6
- metadata.gz: f7f362b0c6ed45cb80a947cdb128e1e6def45a3d9598a61b1acca2670f7c7f8aa69b7bd7d1d3ab332cbb52fb105b80ed4bb19cf7e1f9ab395cc8d59dd5e5e369
7
- data.tar.gz: 460c358c91c6c5d9c5f2ea3947ccaf5e12bd349949095b0f4d60520f4368b08e9390dc71f8423ef0f8aa74c28e088e5094536265709120d7a72fb4ab7d98eec8
6
+ metadata.gz: 78d181008328ab95be8cba1830d83dd2e8ef12da2a61e9b2b0f10a86f6d0e86fa234ebc0b2246d06cecdb26f5ed0e997aa18f5c5e3ce5578c669b0e6727df6a8
7
+ data.tar.gz: f6508ed89237f14ca79c9d4e9e107d0ef4fae4a79b9263234bc1cb72d8324b8adfb077ecc532ed19d8b5b27c95157f4b722e7036de64082743b93802998f1fa1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.0.3] (2024-02-02)
4
+
5
+ * ### Bug Fixes
6
+ * Fix Ruby 3 compatability issue with i18n integration
7
+ * Fix locate id parsing
8
+
9
+ * ### Features
10
+ * Add configure block-style of eyes_images configuration
11
+
12
+ ### Dependencies
13
+
14
+ * ### Updated
15
+ * Update version of Universal SDK Core to 4.7.0
16
+
17
+ * ### Features
18
+ * added support of proxy server url env var
19
+
20
+ * ### Bug Fixes
21
+ * losing root context after layout breakpoints reload
22
+ * add environment variable for setting ufg server ufg
23
+ * remove local environment id
24
+
25
+ ## [6.0.2] (2024-01-03)
26
+
27
+ ### Updated
28
+ * Update version of Universal SDK Core to 4.5.2
29
+
30
+ ### Dependencies
31
+
32
+ * ### Features
33
+ * sign windows binaries
34
+ * support updated applitools lib protocol
35
+ * add set of env variables to skip/ignore some optional automations
36
+
37
+ * ### Bug Fixes
38
+
39
+ * layout breakpoints reload and lazy load
40
+ * fix safe selector generation
41
+ * fixed issue when page wasn't reloaded for one of the breakpoints if the initial viewport size matches it
42
+ * avoid caching concurrency
43
+ * environment for each check for local environment
44
+ * fixed concurrency splank logging
45
+ * fixed the issue when custom os name passed through configuration wasn't respected
46
+
47
+
3
48
  ## [6.0.1] (2023-12-13)
4
49
  ### Bug Fixes
5
50
  * fix code loading error (NameError in environment_sdk)
@@ -42,12 +42,14 @@ module Applitools
42
42
  locatorNames: locate_settings[:locator_names],
43
43
  firstOnly: !!locate_settings[:first_only]
44
44
  }
45
- driver_target = driver.universal_driver_config
45
+ driver_target = locate_settings.has_key?(:image) ? {image: locate_settings[:image]} : driver.universal_driver_config
46
46
  results = universal_eyes.locate(settings, driver_target)
47
- old_style = {
48
- applitools_title: results[:applitools_title].
49
- map {|r| {left: r[:x], top: r[:y], width: r[:width], height: r[:height]} }
50
- }
47
+
48
+ old_style = results.map do |k, v|
49
+ val = v.map {|r| {left: r[:x], top: r[:y], width: r[:width], height: r[:height]} }
50
+ [k, val]
51
+ end.to_h
52
+
51
53
  Applitools::Utils.deep_stringify_keys(old_style)
52
54
  end
53
55
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Applitools
4
4
  module EyesCore
5
- VERSION = '6.0.1'.freeze
6
- UNIVERSAL_VERSION = '4.3.0'.freeze
5
+ VERSION = '6.0.3'.freeze
6
+ UNIVERSAL_VERSION = '4.7.0'.freeze
7
7
  end
8
8
 
9
9
  VERSION = Applitools::EyesCore::VERSION
@@ -468,12 +468,13 @@ module Applitools::Connectivity
468
468
 
469
469
  def get_command_result(name, key)
470
470
  web_socket_result = receive_result(name)
471
- results = convert_web_socket_result(web_socket_result)
471
+ results = convert_web_socket_result(web_socket_result, name)
472
472
 
473
473
  this_key_responses, other_responses = results.partition {|h| h['name'] === name && h['key'] === key}
474
474
  process_other_responses other_responses
475
475
 
476
476
  if this_key_responses.empty?
477
+ # puts "[Raw.get_command_result.empty] #{web_socket_result}"
477
478
  get_command_result(name, key)
478
479
  elsif this_key_responses.size === 1
479
480
  convert_responses(this_key_responses)
@@ -482,7 +483,7 @@ module Applitools::Connectivity
482
483
  end
483
484
  end
484
485
 
485
- def convert_web_socket_result(web_socket_result)
486
+ def convert_web_socket_result(web_socket_result, name)
486
487
  encoded_frame = WebSocket::Frame::Incoming::Client.new(version: @handshake_version)
487
488
  encoded_frame << web_socket_result
488
489
  decoded_frames = []
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.0.1
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-13 00:00:00.000000000 Z
11
+ date: 2024-02-02 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.3.0
117
+ version: 4.7.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.3.0
124
+ version: 4.7.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement