eyes_core 6.0.2 → 6.0.4

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: c8aea285d071a8d5a74eefcf03d6b8e91b3ce2e51faf182338160a8dd0afcceb
4
+ data.tar.gz: e505a416da1880c7223fbdc792c09072ce7555daf8749fb8792efd111412e3a3
5
5
  SHA512:
6
- metadata.gz: 968a6f1291ae5fc62151172cdd4402c031c434cbccb143765c80a3ce5ac713db567aec5cc6f0cf869c0cbd3d1b6065b422a927b61946d74152f585f17d252857
7
- data.tar.gz: 3ac4851175019a7b0445dae8211328badc8632c4b94c6de94b740750018f1f9e501067e5e347e194ac38880e384e4132ab4ecd668a9328451a58cace9e882f7d
6
+ metadata.gz: 83ed52e683dac0f5038dc0ef5efec464417bd2c6f486bab332cdd8d4631dc682bdf7337021dc92e3be7b0021b88f3ebffae9bd7004dcb70c5b6b0609179f8d1e
7
+ data.tar.gz: 4d33fae565b119464f51550fe01434a6eba03b90cb404ee64fa6b326bf4acf935c079e268e6b79c8c4ae2da49feb6e57812c096d5b850a4b37ab1a0edb68f432
data/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.0.4] (2024-02-05)
4
+
5
+ * ### Bug Fixes
6
+ * Move from state_machine to state_machines gem (ROR with i18n compatability issue)
7
+
8
+ ## [6.0.3] (2024-02-02)
9
+
10
+ * ### Bug Fixes
11
+ * Fix Ruby 3 compatability issue with i18n integration
12
+ * Fix locate id parsing
13
+
14
+ * ### Features
15
+ * Add configure block-style of eyes_images configuration
16
+
17
+ ### Dependencies
18
+
19
+ * ### Updated
20
+ * Update version of Universal SDK Core to 4.7.0
21
+
22
+ * ### Features
23
+ * added support of proxy server url env var
24
+
25
+ * ### Bug Fixes
26
+ * losing root context after layout breakpoints reload
27
+ * add environment variable for setting ufg server ufg
28
+ * remove local environment id
29
+
3
30
  ## [6.0.2] (2024-01-03)
4
31
 
5
32
  ### 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.4'.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.4
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-05 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