appium_lib_core 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/appium_lib_core/common/base/driver.rb +1 -1
- data/lib/appium_lib_core/driver.rb +9 -2
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5713a3f8a3dae15135c51505f780e853148e9b60
|
4
|
+
data.tar.gz: 4bf2a39821cbdecfbdd720e4b9fd37bc49eab6d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55d650228d8b760cf4f53142edbeadf2c001b1872c150e7f73d3a4de4b9e9ccfa67b74d9e0174cd34b4460ccae8a82da6cfbd016f1f2c1edb02486204efc6cb3
|
7
|
+
data.tar.gz: 5e566c082664edc39e5c80e0418aba15aaea33c66086ad96056c24730aaea4d413a70cd2172548eb891abc8c35cef372be0cd48bab71727bfdc9c63afe9ebaee
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,15 @@ All notable changes to this project will be documented in this file.
|
|
8
8
|
|
9
9
|
### Deprecations
|
10
10
|
|
11
|
+
## [1.8.3] - 2018-07-20
|
12
|
+
### Enhancements
|
13
|
+
- Relax the logic of `:app` capability
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
- Fix `within_context`
|
17
|
+
|
18
|
+
### Deprecations
|
19
|
+
|
11
20
|
## [1.8.2] - 2018-07-17
|
12
21
|
### Enhancements
|
13
22
|
|
@@ -182,7 +182,7 @@ module Appium
|
|
182
182
|
# end # The result of `find_element :tag, "button"`
|
183
183
|
#
|
184
184
|
def within_context(context)
|
185
|
-
@bridge.within_context(context)
|
185
|
+
block_given? ? @bridge.within_context(context, &Proc.new) : @bridge.within_context(context)
|
186
186
|
end
|
187
187
|
|
188
188
|
# Change to the default context. This is equivalent to `set_context nil`.
|
@@ -387,12 +387,19 @@ module Appium
|
|
387
387
|
|
388
388
|
# @private
|
389
389
|
# Path to the .apk, .app or .app.zip.
|
390
|
-
# The path can be local
|
390
|
+
# The path can be local, HTTP/S, Windows Share and other path like `sauce-storage:`.
|
391
|
+
# Use @caps[:app] without modifications if the path isn't HTTP/S or local path.
|
391
392
|
def set_app_path
|
392
393
|
return unless @caps && @caps[:app] && !@caps[:app].empty?
|
393
394
|
return if @caps[:app] =~ URI::DEFAULT_PARSER.make_regexp
|
394
395
|
|
395
|
-
|
396
|
+
app_path = File.expand_path(@caps[:app])
|
397
|
+
@caps[:app] = if File.exist? app_path
|
398
|
+
app_path
|
399
|
+
else
|
400
|
+
::Appium::Logger.info("Use #{@caps[:app]} directly")
|
401
|
+
@caps[:app]
|
402
|
+
end
|
396
403
|
end
|
397
404
|
|
398
405
|
# @private
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '1.8.
|
4
|
-
DATE = '2018-07-
|
3
|
+
VERSION = '1.8.3'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-07-20'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v1.8.3 2018-07-20
|
2
|
+
|
3
|
+
- [e84eb3a](https://github.com/appium/ruby_lib_core/commit/e84eb3aefef8f5c6973d7fda207bc53e53ceb7ad) Release 1.8.3
|
4
|
+
- [758f5b1](https://github.com/appium/ruby_lib_core/commit/758f5b1821f73d23adca1523b3b3507625a55d76) fix within context block (#111)
|
5
|
+
- [c3999f9](https://github.com/appium/ruby_lib_core/commit/c3999f910e1e2fabe8badf558c44b33e56b048d4) use :app without modifications (#110)
|
6
|
+
|
7
|
+
|
1
8
|
#### v1.8.2 2018-07-17
|
2
9
|
|
3
10
|
- [4053425](https://github.com/appium/ruby_lib_core/commit/40534256de7b9ace04a6c13f56c4c2abf696c81a) Release 1.8.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|