appium_lib 9.4.6 → 9.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.4.6'.freeze unless defined? ::Appium::VERSION
4
- DATE = '2017-05-25'.freeze unless defined? ::Appium::DATE
3
+ VERSION = '9.4.7'.freeze unless defined? ::Appium::VERSION
4
+ DATE = '2017-06-11'.freeze unless defined? ::Appium::DATE
5
5
  end
@@ -241,7 +241,8 @@ module Appium
241
241
  add_endpoint_method(:background_app) do
242
242
  def background_app(duration = 0)
243
243
  # https://github.com/appium/ruby_lib/issues/500, https://github.com/appium/appium/issues/7741
244
- if $driver.automation_name_is_xcuitest? && $driver.appium_server_status['build']['version'] >= '1.6.4'
244
+ # `execute :background_app, {}, seconds: { timeout: duration_milli_sec }` works over Appium 1.6.4
245
+ if $driver.automation_name_is_xcuitest?
245
246
  duration_milli_sec = duration.nil? ? nil : duration * 1000
246
247
  execute :background_app, {}, seconds: { timeout: duration_milli_sec }
247
248
  else
@@ -502,6 +502,12 @@ module Appium
502
502
  # }
503
503
  # ```
504
504
  #
505
+ # Returns blank hash for Selenium Grid since `remote_status` gets 500 error
506
+ #
507
+ # ```ruby
508
+ # {}
509
+ # ```
510
+ #
505
511
  # @return [Hash]
506
512
  def appium_server_version
507
513
  driver.remote_status
@@ -509,6 +515,10 @@ module Appium
509
515
  raise unless ex.message.include?('content-type=""')
510
516
  # server (TestObject for instance) does not respond to status call
511
517
  {}
518
+ rescue Selenium::WebDriver::Error::ServerError => e
519
+ raise unless e.message.include?('status code 500')
520
+ # driver.remote_status returns 500 error for using selenium grid
521
+ {}
512
522
  end
513
523
 
514
524
  # Returns the client's version info
@@ -1,3 +1,9 @@
1
+ #### v9.4.6 2017-05-25
2
+
3
+ - [a44ea77](https://github.com/appium/ruby_lib/commit/a44ea770287407ba9b488e25e259884676c89709) [Release 9 4 6 (#593)](https://github.com/appium/ruby_lib/issues/593)
4
+ - [9f9c688](https://github.com/appium/ruby_lib/commit/9f9c688d1a9d0b2213dc41a256a0085a603f128e) [exclude test directories and grids (#592)](https://github.com/appium/ruby_lib/issues/592)
5
+
6
+
1
7
  #### v9.4.5 2017-05-25
2
8
 
3
9
  - [8e7ea79](https://github.com/appium/ruby_lib/commit/8e7ea79ca476bdc172015aea3ed2b4dc3b571d00) [Release 9 4 5 (#590)](https://github.com/appium/ruby_lib/issues/590)
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.4.6
4
+ version: 9.4.7
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-05-25 00:00:00.000000000 Z
11
+ date: 2017-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -196,6 +196,20 @@ dependencies:
196
196
  - - "~>"
197
197
  - !ruby/object:Gem::Version
198
198
  version: 0.46.0
199
+ - !ruby/object:Gem::Dependency
200
+ name: rainbow
201
+ requirement: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - "~>"
204
+ - !ruby/object:Gem::Version
205
+ version: 2.1.0
206
+ type: :development
207
+ prerelease: false
208
+ version_requirements: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - "~>"
211
+ - !ruby/object:Gem::Version
212
+ version: 2.1.0
199
213
  - !ruby/object:Gem::Dependency
200
214
  name: pry
201
215
  requirement: !ruby/object:Gem::Requirement