eyes_selenium 2.21.0 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applitools/base/server_connector.rb +9 -1
- data/lib/applitools/eyes.rb +1 -1
- data/lib/applitools/version.rb +1 -1
- data/test/appium_example_script.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f07272ce6e07e8e0d4438adb7fb5cf25bc51749b
|
4
|
+
data.tar.gz: a846d52de20bb424823c836500bf817a1107e6c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c0fcc139004bdf51baf437b350c455ceefe6080023b333723b3f1ec5d3771f9934bd28300b6fbc5aa72fdebe6d4402f9000f2bbb8718cde49e616b1bcd6a672
|
7
|
+
data.tar.gz: c0765f8b0120c69c44b1172d61882f4701fa7716d74fb8f8501549d96d21b2702a3dffb1367fc59cf71d039662dcdc94ebf6f004a7a8a611825df4295271e93c
|
@@ -28,6 +28,14 @@ module Applitools::Base::ServerConnector
|
|
28
28
|
@endpoint_url = URI.join(@server_url, API_SESSIONS_RUNNING).to_s
|
29
29
|
end
|
30
30
|
|
31
|
+
def set_proxy(uri, user = nil, password = nil)
|
32
|
+
@proxy = {
|
33
|
+
uri: uri,
|
34
|
+
user: user,
|
35
|
+
password: password
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
31
39
|
def match_window(session, data)
|
32
40
|
# Notice that this does not include the screenshot.
|
33
41
|
json_data = Oj.dump(Applitools::Utils.camelcase_hash_keys(data.to_hash)).force_encoding('BINARY')
|
@@ -83,7 +91,7 @@ module Applitools::Base::ServerConnector
|
|
83
91
|
end
|
84
92
|
|
85
93
|
def request(url, method, options = {})
|
86
|
-
Faraday::Connection.new(url, ssl: { ca_file: SSL_CERT }).send(method) do |req|
|
94
|
+
Faraday::Connection.new(url, ssl: { ca_file: SSL_CERT }, proxy: @proxy || nil).send(method) do |req|
|
87
95
|
req.options.timeout = DEFAULT_TIMEOUT
|
88
96
|
req.headers = DEFAULT_HEADERS.merge(options[:headers] || {})
|
89
97
|
req.headers['Content-Type'] = options[:content_type] if options.key?(:content_type)
|
data/lib/applitools/eyes.rb
CHANGED
@@ -74,7 +74,7 @@ class Applitools::Eyes
|
|
74
74
|
:baseline_name, :rotation, :force_fullpage_screenshot, :hide_scrollbars, :use_css_transition, :scale_ratio
|
75
75
|
|
76
76
|
def_delegators 'Applitools::EyesLogger', :log_handler, :log_handler=
|
77
|
-
def_delegators 'Applitools::Base::ServerConnector', :api_key, :api_key=, :server_url, :server_url
|
77
|
+
def_delegators 'Applitools::Base::ServerConnector', :api_key, :api_key=, :server_url, :server_url=, :set_proxy
|
78
78
|
|
79
79
|
def full_agent_id
|
80
80
|
@full_agent_id ||= agent_id.nil? ? BASE_AGENT_ID : "#{agent_id} [#{BASE_AGENT_ID}]"
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|