appium_lib 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/android_docs.md +117 -109
- data/docs/docs.md +20 -0
- data/docs/ios_docs.md +116 -108
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +13 -2
- data/release_notes.md +7 -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.6.
|
5
|
-
DATE = '2013-08-
|
4
|
+
VERSION = '0.6.7' unless defined? ::Appium::VERSION
|
5
|
+
DATE = '2013-08-23' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/lib/appium_lib/driver.rb
CHANGED
@@ -194,7 +194,7 @@ module Appium
|
|
194
194
|
attr_reader :default_wait, :app_path, :app_name, :device,
|
195
195
|
:app_package, :app_activity, :app_wait_activity,
|
196
196
|
:sauce_username, :sauce_access_key, :port, :debug,
|
197
|
-
:export_session
|
197
|
+
:export_session, :device_cap
|
198
198
|
|
199
199
|
# The amount to sleep in seconds before every webdriver http call.
|
200
200
|
attr_accessor :global_webdriver_http_sleep
|
@@ -263,6 +263,13 @@ module Appium
|
|
263
263
|
|
264
264
|
@port = opts.fetch :port, ENV['PORT'] || 4723
|
265
265
|
|
266
|
+
# device as used in device capabilities.
|
267
|
+
# iOS only.
|
268
|
+
#
|
269
|
+
# Android is always Android or Selendroid so there's no
|
270
|
+
# override required.
|
271
|
+
@device_cap = opts.fetch :device_cap, false
|
272
|
+
|
266
273
|
# :ios, :android, :selendroid
|
267
274
|
@device = opts.fetch :device, ENV['DEVICE'] || :ios
|
268
275
|
@device = @device.intern # device must be a symbol
|
@@ -356,7 +363,7 @@ module Appium
|
|
356
363
|
browserName: 'iOS 6.0',
|
357
364
|
platform: 'Mac 10.8',
|
358
365
|
version: '6.0',
|
359
|
-
device: 'iPhone Simulator',
|
366
|
+
device: @device_cap || 'iPhone Simulator',
|
360
367
|
name: @app_name || 'Ruby Console iOS Appium'
|
361
368
|
}
|
362
369
|
end
|
@@ -379,6 +386,10 @@ module Appium
|
|
379
386
|
raise "App doesn't exist. #{@app_path}" unless File.exist? @app_path
|
380
387
|
return @app_path
|
381
388
|
end
|
389
|
+
|
390
|
+
# if it doesn't contain a slash then it's a bundle id
|
391
|
+
return @app_path unless @app_path.match(/[\/\\]/)
|
392
|
+
|
382
393
|
file = File.join(File.dirname(__FILE__), @app_path)
|
383
394
|
raise "App doesn't exist #{file}" unless File.exist? file
|
384
395
|
file
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v0.6.6 2013-08-19
|
2
|
+
|
3
|
+
- [5b84a0b](https://github.com/appium/ruby_lib/commit/5b84a0bd9d9273c704414bdb9a9857b503439b90) Release 0.6.6
|
4
|
+
- [6f3b002](https://github.com/appium/ruby_lib/commit/6f3b0027757d8fbf62bc26d8a3497caab025c8c8) Add export session option.
|
5
|
+
- [b05c07e](https://github.com/appium/ruby_lib/commit/b05c07e5ddcb6ba7dc79d20a38f1dae8567c52c6) Fix screenshot return value
|
6
|
+
|
7
|
+
|
1
8
|
#### v0.6.5 2013-08-13
|
2
9
|
|
3
10
|
- [8b7b4d6](https://github.com/appium/ruby_lib/commit/8b7b4d6d7836bfede93b6da99bdcac836d218481) Release 0.6.5
|
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.6.
|
4
|
+
version: 0.6.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: 2013-08-
|
11
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|