appium_lib 9.3.1 → 9.3.2

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.
@@ -9,6 +9,7 @@ some_capability = "some_capability"
9
9
  [appium_lib]
10
10
  sauce_username = ""
11
11
  sauce_access_key = ""
12
+ sauce_endpoint = ""
12
13
  wait = 30
13
14
  wait_timeout = 20
14
15
  wait_interval = 1
@@ -66,6 +66,7 @@ describe 'driver' do
66
66
  default_wait: 30,
67
67
  sauce_username: nil,
68
68
  sauce_access_key: nil,
69
+ sauce_endpoint: 'ondemand.saucelabs.com:443/wd/hub',
69
70
  port: 4723,
70
71
  device: :ios,
71
72
  debug: true,
@@ -1,5 +1,5 @@
1
1
  module Appium
2
2
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
3
- VERSION = '9.3.1'.freeze unless defined? ::Appium::VERSION
4
- DATE = '2017-02-05'.freeze unless defined? ::Appium::DATE
3
+ VERSION = '9.3.2'.freeze unless defined? ::Appium::VERSION
4
+ DATE = '2017-02-11'.freeze unless defined? ::Appium::DATE
5
5
  end
@@ -289,6 +289,8 @@ module Appium
289
289
  attr_accessor :sauce_username
290
290
  # Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
291
291
  attr_accessor :sauce_access_key
292
+ # Override the Sauce Appium endpoint to allow e.g. TestObject tests
293
+ attr_accessor :sauce_endpoint
292
294
  # Appium's server port
293
295
  attr_accessor :appium_port
294
296
  # Device type to request from the appium server
@@ -376,6 +378,9 @@ module Appium
376
378
  @sauce_username = nil if !@sauce_username || (@sauce_username.is_a?(String) && @sauce_username.empty?)
377
379
  @sauce_access_key = appium_lib_opts.fetch :sauce_access_key, ENV['SAUCE_ACCESS_KEY']
378
380
  @sauce_access_key = nil if !@sauce_access_key || (@sauce_access_key.is_a?(String) && @sauce_access_key.empty?)
381
+ @sauce_endpoint = appium_lib_opts.fetch :sauce_endpoint, ENV['SAUCE_ENDPOINT']
382
+ @sauce_endpoint = 'ondemand.saucelabs.com:443/wd/hub' if
383
+ !@sauce_endpoint || (@sauce_endpoint.is_a?(String) && @sauce_endpoint.empty?)
379
384
  @appium_port = appium_lib_opts.fetch :port, 4723
380
385
  # timeout and interval used in ::Appium::Comm.wait/wait_true
381
386
  @appium_wait_timeout = appium_lib_opts.fetch :wait_timeout, 30
@@ -441,6 +446,7 @@ module Appium
441
446
  default_wait: @default_wait,
442
447
  sauce_username: @sauce_username,
443
448
  sauce_access_key: @sauce_access_key,
449
+ sauce_endpoint: @sauce_endpoint,
444
450
  port: @appium_port,
445
451
  device: @appium_device,
446
452
  debug: @appium_debug,
@@ -549,7 +555,7 @@ module Appium
549
555
  def server_url
550
556
  return @custom_url if @custom_url
551
557
  if !@sauce_username.nil? && !@sauce_access_key.nil?
552
- "https://#{@sauce_username}:#{@sauce_access_key}@ondemand.saucelabs.com:443/wd/hub"
558
+ "https://#{@sauce_username}:#{@sauce_access_key}@#{@sauce_endpoint}"
553
559
  else
554
560
  "http://127.0.0.1:#{@appium_port}/wd/hub"
555
561
  end
data/readme.md CHANGED
@@ -1,4 +1,4 @@
1
- #### appium_lib
1
+ #### appium_lib
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/appium_lib.svg)](http://badge.fury.io/rb/appium_lib)
4
4
  [![Dependency Status](https://gemnasium.com/appium/ruby_lib.svg)](https://gemnasium.com/appium/ruby_lib)
@@ -44,6 +44,7 @@ gem install --no-rdoc --no-ri appium_lib
44
44
 
45
45
  - `SAUCE_USERNAME` Sauce username
46
46
  - `SAUCE_ACCESS_KEY` Sauce API key
47
+ - `SAUCE_ENDPOINT` Alternative Sauce Appium Server endpoint (only use if directed)
47
48
 
48
49
  (Note: If these variables are set, all tests will use Sauce Labs unless over-ridden in configuration.)
49
50
 
@@ -55,7 +56,7 @@ gem install --no-rdoc --no-ri appium_lib
55
56
  #### Documentation
56
57
 
57
58
  - [Installing Appium on OS X](https://github.com/appium/ruby_console/blob/master/osx.md)
58
- - [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
59
+ - [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
59
60
  - [Ruby Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
60
61
  - [Ruby iOS methods](https://github.com/appium/ruby_lib/blob/master/docs/ios_docs.md)
61
62
  - [Tips for XCUITest for iOS](https://github.com/appium/ruby_lib/blob/master/docs/ios_xcuitest.md)
@@ -1,3 +1,15 @@
1
+ #### v9.3.1 2017-02-05
2
+
3
+ - [fa555d1](https://github.com/appium/ruby_lib/commit/fa555d10e7a5c48e4976fbbf2e9c061a5948d6bd) Release 9 3 1 (#484)
4
+ - [c3bc3be](https://github.com/appium/ruby_lib/commit/c3bc3bed375c76e5a7c5fd76bb1225adad54656c) add changelog (#483)
5
+ - [6849567](https://github.com/appium/ruby_lib/commit/68495675f35856bbf4179176f23a3c05f4cb1592) add getting performance command (#480)
6
+ - [0b52c16](https://github.com/appium/ruby_lib/commit/0b52c16b6bf0591b500b1f6e1ebc04c0a7032cc6) Fix missed var rename (#481)
7
+ - [54a8979](https://github.com/appium/ruby_lib/commit/54a897908c066905fd99b5eee7d539a757e987ac) add android tests for capabilities (#477)
8
+ - [5ba85ec](https://github.com/appium/ruby_lib/commit/5ba85ec455378505dd953002ae5aca8bbd980a1f) add documents for toml (#478)
9
+ - [bab7df7](https://github.com/appium/ruby_lib/commit/bab7df7f097fef9e848f33a60d70d0e7e018c25c) Clarify disabling Sauce Labs. (#471)
10
+ - [cf0bda0](https://github.com/appium/ruby_lib/commit/cf0bda06c392274949843888272a762b9ed01a47) remove outdated methods (#475)
11
+
12
+
1
13
  #### v9.3.0 2017-01-22
2
14
 
3
15
  - [a1c2872](https://github.com/appium/ruby_lib/commit/a1c287296c9eace08ef19449998fba7229b65697) Release 9 3 0 (#474)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.1
4
+ version: 9.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-05 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver