eyes_core 6.0.2 → 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: 7b66b12caadd87cab54b79af6470ad83cd3f879af4b0d03b23c09d125c861273
4
- data.tar.gz: 5a5a18af2f3bcb704f45b5dafd69ff04d3541131ad624bf71d205c1f37fe9fa2
3
+ metadata.gz: 0e97e9eb81a96c51c26cf36ad1b46b36b02c3bea1171e8a3a8b6211327062356
4
+ data.tar.gz: 6097761d08250599597f3010f1d529c92bbf05d3a662aa966656fabb31018b25
5
5
  SHA512:
6
- metadata.gz: 968a6f1291ae5fc62151172cdd4402c031c434cbccb143765c80a3ce5ac713db567aec5cc6f0cf869c0cbd3d1b6065b422a927b61946d74152f585f17d252857
7
- data.tar.gz: 3ac4851175019a7b0445dae8211328badc8632c4b94c6de94b740750018f1f9e501067e5e347e194ac38880e384e4132ab4ecd668a9328451a58cace9e882f7d
6
+ metadata.gz: 78d181008328ab95be8cba1830d83dd2e8ef12da2a61e9b2b0f10a86f6d0e86fa234ebc0b2246d06cecdb26f5ed0e997aa18f5c5e3ce5578c669b0e6727df6a8
7
+ data.tar.gz: f6508ed89237f14ca79c9d4e9e107d0ef4fae4a79b9263234bc1cb72d8324b8adfb077ecc532ed19d8b5b27c95157f4b722e7036de64082743b93802998f1fa1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
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
+
3
25
  ## [6.0.2] (2024-01-03)
4
26
 
5
27
  ### Updated
@@ -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.2'.freeze
6
- UNIVERSAL_VERSION = '4.5.2'.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.2
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: 2024-01-03 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.5.2
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.5.2
124
+ version: 4.7.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement