appium_lib 0.21.0 → 0.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/Rakefile +7 -2
- data/docs/android_docs.md +119 -119
- data/docs/ios_docs.md +124 -124
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +4 -3
- data/readme.md +6 -2
- data/release_notes.md +6 -0
- metadata +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
module Appium
|
3
3
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
4
|
-
VERSION = '0.
|
5
|
-
DATE = '2014-03-
|
4
|
+
VERSION = '0.22.0' unless defined? ::Appium::VERSION
|
5
|
+
DATE = '2014-03-19' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/lib/appium_lib/driver.rb
CHANGED
@@ -254,6 +254,8 @@ module Appium
|
|
254
254
|
opts.each_pair { |k,v| tmp_opts[k.to_s.downcase.strip.intern] = v }
|
255
255
|
opts = tmp_opts
|
256
256
|
|
257
|
+
@raw_capabilities = opts.fetch(:raw, {})
|
258
|
+
|
257
259
|
@custom_url = opts.fetch :server_url, false
|
258
260
|
|
259
261
|
@compress_xml = opts[:compress_xml] ? true : false
|
@@ -398,8 +400,7 @@ module Appium
|
|
398
400
|
:'app-package' => @app_package,
|
399
401
|
:'app-activity' => @app_activity,
|
400
402
|
:'app-wait-activity' => @app_wait_activity || @app_activity,
|
401
|
-
|
402
|
-
}.merge(@android_coverage)
|
403
|
+
}.merge(@android_coverage).merge(@raw_capabilities)
|
403
404
|
end
|
404
405
|
|
405
406
|
# @private
|
@@ -411,7 +412,7 @@ module Appium
|
|
411
412
|
device: @device,
|
412
413
|
name: @app_name || 'Ruby Console iOS Appium',
|
413
414
|
:'device-orientation' => @device_orientation
|
414
|
-
}
|
415
|
+
}.merge(@raw_capabilities)
|
415
416
|
end
|
416
417
|
|
417
418
|
# @private
|
data/readme.md
CHANGED
@@ -35,8 +35,12 @@ require 'rubygems'
|
|
35
35
|
require 'appium_lib'
|
36
36
|
|
37
37
|
# Start iOS driver
|
38
|
-
|
39
|
-
|
38
|
+
|
39
|
+
# use appium's specific capability names
|
40
|
+
appium_capabilities = { launchTimeout: 123 }
|
41
|
+
# there are also built in capabilities such as device that don't require 'raw'
|
42
|
+
caps = { device: :ios, app_path: '/Users/user/woven/ruby_lib_ios/UICatalog.app', raw: appium_capabilities }
|
43
|
+
Appium::Driver.new(caps).start_driver
|
40
44
|
|
41
45
|
# Start Android driver
|
42
46
|
apk = {
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v0.22.0 2014-03-19
|
2
|
+
|
3
|
+
- [4d88ecd](https://github.com/appium/ruby_lib/commit/4d88ecd87be7a2319dd0b7e437e230300269175f) Release 0.22.0
|
4
|
+
- [347e81e](https://github.com/appium/ruby_lib/commit/347e81e2c3fae3b1b26bd707356c663a158198d4) Support all appium caps
|
5
|
+
|
6
|
+
|
1
7
|
#### v0.21.0 2014-03-13
|
2
8
|
|
3
9
|
- [db2df39](https://github.com/appium/ruby_lib/commit/db2df39eb6fc09e516e22334dd990699755c0509) Release 0.21.0
|
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: 0.
|
4
|
+
version: 0.22.0
|
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: 2014-03-
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|