eyes_core 3.16.4 → 3.16.5

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: 717e964000f184dc424c051cd69fbc7fa090bcc1f0c39476ad1deb4ff7ae10c8
4
- data.tar.gz: fd5b29d5e82622756ebb1ce82b67420c0312dc96ca252e3bdb7f42e263427e59
3
+ metadata.gz: 39e8a6b4d23f5c9e058ad38d4b7a0ddb45eca4a6621e4ad9ce46614f4d5d0abd
4
+ data.tar.gz: d190e9dc7fae77cf84bff7dbdd36e644e77434fb94927968f13452ff25b74bef
5
5
  SHA512:
6
- metadata.gz: 794bc135ba8fc6c75697ec26d5645031a8fe8483e9459017d7b46c90294882b3f0712d2e140c4d75b1697553b23bff8f4d71120f9de2e74fe9fbd505e3b7b0eb
7
- data.tar.gz: d5da034e589e74738b8e6c590b0dd1e3dc34bb8e2dcb15ed746b884d9ae59ee51821ec42d7cc8a4b5d8cf074627ea670137de4ee9dbc0e3ce8f008a2b076f412
6
+ metadata.gz: 9ee00b1c65a417e51ed7d6a201a350967e98b37e28ede1e7bce8c880cf4880bcefdc96d8e070efe6700484e471d55cf7faa1b6b5cd5bb5352a51b478bb4661b9
7
+ data.tar.gz: bfb4061d30189e445e6bca23dc52f777fa74634fa41532f891cde0fc4cd0aa34ccadbe9e871d73efa32f830bced19cc7147545956c8b9477926e7dc31b608154
@@ -44,7 +44,7 @@ module Applitools::Connectivity
44
44
  end
45
45
 
46
46
  def rendering_info
47
- response = long_get(server_url + RENDER_INFO_PATH, content_type: 'application/json')
47
+ response = long_get(URI.join(server_url, RENDER_INFO_PATH), content_type: 'application/json')
48
48
  unless response.status == HTTP_STATUS_CODES[:ok]
49
49
  raise Applitools::EyesError, "Error getting render info (#{response.status}})"
50
50
  end
@@ -52,8 +52,7 @@ module Applitools::Connectivity
52
52
  end
53
53
 
54
54
  def render(service_url, access_key, requests)
55
- uri = URI(service_url)
56
- uri.path = RENDER
55
+ uri = URI.join(URI(service_url), RENDER)
57
56
  response = dummy_post(
58
57
  uri,
59
58
  body: requests.json,
@@ -180,6 +179,7 @@ module Applitools::Connectivity
180
179
  end
181
180
 
182
181
  def server_url=(url)
182
+ unless url.nil?; uri = URI.parse(url); url = "#{uri.scheme}://#{uri.hostname}".freeze; end
183
183
  @server_url = url.nil? ? DEFAULT_SERVER_URL : url
184
184
  unless @server_url.is_a? String
185
185
  raise Applitools::EyesIllegalArgument.new 'You should pass server url as a String!' \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.16.4'.freeze
4
+ VERSION = '3.16.5'.freeze
5
5
  end
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: 3.16.4
4
+ version: 3.16.5
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-02-19 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png