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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cafb6e83fd2af67660efbe44913576f7102dcfe
4
- data.tar.gz: 0c4512546191cd0939b7cf96ee7136627bcfba3a
3
+ metadata.gz: f07272ce6e07e8e0d4438adb7fb5cf25bc51749b
4
+ data.tar.gz: a846d52de20bb424823c836500bf817a1107e6c8
5
5
  SHA512:
6
- metadata.gz: 55dbbc01bc03afdddc338006c5a7794307c5f7d6874c0a72f6c39919ed7334d444c3e340f07108e45b8d88d82198a66e6545acdfe625b7d1451713fc8143f959
7
- data.tar.gz: e36715f0256e2f2c9ee1a173655d4ef276fed39f98d1d419ca013f61d08a88249b6ada60f44b325e3a83f926eb121e6e0ff8248f3ac24a0ea46dc74b1e62e74b
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)
@@ -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}]"
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '2.21.0'.freeze
2
+ VERSION = '2.22.0'.freeze
3
3
  end
@@ -22,7 +22,7 @@ def ios_caps
22
22
  {
23
23
  deviceName: 'iPhone 6',
24
24
  platformName: 'ios',
25
- platformVersion: 8.3,
25
+ platformVersion: 8.4,
26
26
  app: ENV['IOS_DEMO_APP'],
27
27
  orientation: 'landscape',
28
28
  newCommandTimeout: 300
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.21.0
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-13 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver