appium_lib 0.5.13 → 0.5.14
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.
- data/docs/android_docs.md +111 -102
- data/docs/ios_docs.md +111 -102
- data/lib/appium_lib/android/helper.rb +13 -0
- data/lib/appium_lib/common/helper.rb +0 -9
- data/lib/appium_lib/common/version.rb +2 -2
- data/release_notes.md +8 -0
- metadata +3 -3
@@ -403,4 +403,17 @@ module Appium::Android
|
|
403
403
|
def resolve_id id
|
404
404
|
mobile :resolveId, id
|
405
405
|
end
|
406
|
+
|
407
|
+
# Lists package, activity, and adb shell am start -n value for current app.
|
408
|
+
# Works on local host only (not remote).
|
409
|
+
def current_app
|
410
|
+
line = `adb shell dumpsys window windows`.each_line.grep(/mFocusedApp/).first.strip
|
411
|
+
pair = line.split(' ').last.gsub('}','').split '/'
|
412
|
+
pkg = pair.first
|
413
|
+
act = pair.last
|
414
|
+
OpenStruct.new line: line,
|
415
|
+
package: pkg,
|
416
|
+
activity: act,
|
417
|
+
am_start: pkg + '/' + act
|
418
|
+
end
|
406
419
|
end # module Appium::Android
|
@@ -216,13 +216,4 @@ module Appium::Common
|
|
216
216
|
def tag tag_name
|
217
217
|
find_element :tag_name, tag_name
|
218
218
|
end
|
219
|
-
|
220
|
-
# Lists package, activity, and adb shell am start -n value for current app.
|
221
|
-
# Works on local host only (not remote).
|
222
|
-
def current_app
|
223
|
-
line = `adb shell dumpsys window windows`.each_line.grep(/mFocusedApp/).first
|
224
|
-
puts line
|
225
|
-
pair = line.split(' ').last.gsub('}','').split('/')
|
226
|
-
{ package: pair.first, activity: pair.last, am_start: pair.first + '/' + pair.last }
|
227
|
-
end
|
228
219
|
end # module Appium::Common
|
@@ -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.
|
5
|
-
DATE = '2013-
|
4
|
+
VERSION = '0.5.14' unless defined? ::Appium::VERSION
|
5
|
+
DATE = '2013-07-03' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v0.5.13 2013-06-19
|
2
|
+
|
3
|
+
- [146e19a](https://github.com/appium/ruby_lib/commit/146e19a1b322d1bb625c6bb3ce1b80e67a7e80fa) Release 0.5.13
|
4
|
+
- [2eb4bb0](https://github.com/appium/ruby_lib/commit/2eb4bb0c696f41c839227dd99256d77d52bf995f) Check method exists before calling
|
5
|
+
- [8d48ca2](https://github.com/appium/ruby_lib/commit/8d48ca2c4463b54d5d68332b58e3ed8eff01edf0) Current app is in the lib now
|
6
|
+
- [683ae29](https://github.com/appium/ruby_lib/commit/683ae2975fde08d069fefb731a342c7ddd9ebb92) Add current_app
|
7
|
+
|
8
|
+
|
1
9
|
#### v0.5.12 2013-06-18
|
2
10
|
|
3
11
|
- [89b0902](https://github.com/appium/ruby_lib/commit/89b0902ed94ed43d8a9f0e364463da77015dcfb7) Release 0.5.12
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash: -
|
153
|
+
hash: -2446009273815237628
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
156
|
rubygems_version: 1.8.25
|