appium_lib 3.0.0 → 3.0.1
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/android_tests/api.apk +0 -0
- data/android_tests/lib/android/specs/android/helper.rb +31 -0
- data/docs/android_docs.md +153 -156
- data/docs/ios_docs.md +147 -147
- data/ios_tests/data/unicode.txt +1 -0
- data/ios_tests/lib/ios/specs/driver.rb +5 -0
- data/lib/appium_lib.rb +4 -0
- data/lib/appium_lib/android/helper.rb +8 -2
- data/lib/appium_lib/common/version.rb +2 -2
- data/release_notes.md +7 -0
- metadata +3 -2
@@ -0,0 +1 @@
|
|
1
|
+
®
|
@@ -12,6 +12,11 @@ describe 'driver' do
|
|
12
12
|
ENV['UPLOAD_FILE'] && ENV['SAUCE_USERNAME']
|
13
13
|
end
|
14
14
|
|
15
|
+
t 'unicode defaults' do
|
16
|
+
data = File.read File.expand_path '../../../../data/unicode.txt', __FILE__
|
17
|
+
data.strip.must_equal 174.chr('UTF-8')
|
18
|
+
end
|
19
|
+
|
15
20
|
t 'load_appium_txt' do
|
16
21
|
# skip this test if we're using Sauce
|
17
22
|
# the storage API doesn't have an on disk file
|
data/lib/appium_lib.rb
CHANGED
@@ -112,13 +112,19 @@ module Appium
|
|
112
112
|
|
113
113
|
# Lists package, activity, and adb shell am start -n value for current app.
|
114
114
|
# Works on local host only (not remote).
|
115
|
-
|
115
|
+
|
116
116
|
# example line:
|
117
117
|
# "mFocusedApp=AppWindowToken{b1420058 token=Token{b128add0 ActivityRecord{b1264d10 u0 com.example.android.apis/.ApiDemos t23}}}"
|
118
118
|
def current_app
|
119
119
|
line = `adb shell dumpsys window windows`.each_line.grep(/mFocusedApp/).first.strip
|
120
120
|
|
121
|
-
|
121
|
+
_parse_current_app_line line
|
122
|
+
end
|
123
|
+
|
124
|
+
# @private
|
125
|
+
# noinspection RubyArgCount
|
126
|
+
def _parse_current_app_line line
|
127
|
+
match = line.match(/ ([^\/ ]+\/[^ }]+)[ }]/)
|
122
128
|
return nil unless match && match[1]
|
123
129
|
|
124
130
|
pair = match[1].split '/'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Appium
|
2
2
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
3
|
-
VERSION = '3.0.
|
4
|
-
DATE = '2014-
|
3
|
+
VERSION = '3.0.1' unless defined? ::Appium::VERSION
|
4
|
+
DATE = '2014-06-01' unless defined? ::Appium::DATE
|
5
5
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v3.0.1 2014-06-01
|
2
|
+
|
3
|
+
- [370b79c](https://github.com/appium/ruby_lib/commit/370b79c4b9f18fa615c145685256f543ee18debd) Release 3.0.1
|
4
|
+
- [48cb878](https://github.com/appium/ruby_lib/commit/48cb87835076d6faa51f525c86ef0ed478eb0542) Default to UTF_8 encoding
|
5
|
+
- [5b30ed5](https://github.com/appium/ruby_lib/commit/5b30ed563b98a9084e6cb89921efec1944e999af) Fix current_app
|
6
|
+
|
7
|
+
|
1
8
|
#### v3.0.0 2014-05-30
|
2
9
|
|
3
10
|
- [77d64af](https://github.com/appium/ruby_lib/commit/77d64af57b0e6a828c5d61008c444518e6597e4b) Release 3.0.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: 3.0.
|
4
|
+
version: 3.0.1
|
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-
|
11
|
+
date: 2014-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -297,6 +297,7 @@ files:
|
|
297
297
|
- ios_tests/UICatalog.app/whiteButton.png
|
298
298
|
- ios_tests/UICatalog.app/yellowslide.png
|
299
299
|
- ios_tests/appium.txt
|
300
|
+
- ios_tests/data/unicode.txt
|
300
301
|
- ios_tests/flaky.txt
|
301
302
|
- ios_tests/lib/format.rb
|
302
303
|
- ios_tests/lib/ios/specs/common/element/window.rb
|