appium_lib_core 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -4
- data/CHANGELOG.md +8 -0
- data/README.md +4 -0
- data/lib/appium_lib_core/common/base/driver.rb +2 -0
- data/lib/appium_lib_core/device.rb +4 -0
- data/lib/appium_lib_core/driver.rb +2 -1
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +10 -0
- data/script/commands.rb +2 -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: b744ceff9d2d1c6a43844a86539a0f1401804011
|
4
|
+
data.tar.gz: 0b2b7974c04a4e08c4dda57939f89c80fe70e46a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '039154ba785a4f998282e2d592b213a3bacca05738e818fca1099a6ad0357fc24942f22965037b2be84e1d97296e4de9aa7700525d3ef1092c5a5b560595c1d5'
|
7
|
+
data.tar.gz: b7e1e28a0db52d1dc3c2f755e1117c09d846da4c50a15e1cb38d114e8250bb4f52103f5f2c662a3327e9a9b619394a1e6c987beea66727d0e7dcf498a7840a92
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,14 @@ Read `release_notes.md` for commit level details.
|
|
9
9
|
|
10
10
|
### Deprecations
|
11
11
|
|
12
|
+
## [2.2.1] - 2018-12-08
|
13
|
+
### Enhancements
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
- Reduce warnings for method definitions
|
17
|
+
|
18
|
+
### Deprecations
|
19
|
+
|
12
20
|
## [2.2.0] - 2018-12-01
|
13
21
|
### Enhancements
|
14
22
|
- Add `::Appium::Core::Base.platform` to call `::Selenium::WebDriver::Platform`
|
data/README.md
CHANGED
@@ -99,6 +99,10 @@ $ appium --log-level warn:error # show only warning and error logs
|
|
99
99
|
$ ruby test.rb
|
100
100
|
```
|
101
101
|
|
102
|
+
# Development
|
103
|
+
- Demo app
|
104
|
+
- https://android.googlesource.com/platform/development/+/master/samples/ApiDemos
|
105
|
+
|
102
106
|
# Release
|
103
107
|
Use [appium_thor](https://github.com/appium/appium_thor) to release this gem.
|
104
108
|
|
@@ -101,6 +101,7 @@ module Appium
|
|
101
101
|
end
|
102
102
|
alias is_keyboard_shown keyboard_shown?
|
103
103
|
|
104
|
+
# [DEPRECATION]
|
104
105
|
# Send keys for a current active element
|
105
106
|
# @param [String] key Input text
|
106
107
|
#
|
@@ -109,6 +110,7 @@ module Appium
|
|
109
110
|
# @driver.send_keys 'happy testing!'
|
110
111
|
#
|
111
112
|
def send_keys(*key)
|
113
|
+
warn '[DEPRECATION] Driver#send_keys is deprecated in W3C spec. Use driver.action.<command>.perform instead'
|
112
114
|
@bridge.send_keys_to_active_element(key)
|
113
115
|
end
|
114
116
|
alias type send_keys
|
@@ -54,6 +54,8 @@ module Appium
|
|
54
54
|
private
|
55
55
|
|
56
56
|
def delegate_from_appium_driver(method, delegation_target = :driver)
|
57
|
+
return if ::Appium::Core::Device.method_defined? method
|
58
|
+
|
57
59
|
def_delegator delegation_target, method
|
58
60
|
end
|
59
61
|
|
@@ -65,9 +67,11 @@ module Appium
|
|
65
67
|
|
66
68
|
def create_bridge_command(method)
|
67
69
|
::Appium::Core::Base::Bridge::MJSONWP.class_eval do
|
70
|
+
undef_method method if method_defined? method
|
68
71
|
block_given? ? class_eval(&Proc.new) : define_method(method) { execute method }
|
69
72
|
end
|
70
73
|
::Appium::Core::Base::Bridge::W3C.class_eval do
|
74
|
+
undef_method method if method_defined? method
|
71
75
|
block_given? ? class_eval(&Proc.new) : define_method(method) { execute method }
|
72
76
|
end
|
73
77
|
end
|
@@ -174,6 +174,7 @@ module Appium
|
|
174
174
|
# @private
|
175
175
|
def initialize(opts = {})
|
176
176
|
@delegate_target = self # for testing purpose
|
177
|
+
@automation_name = nil # initialise before `set_automation_name`
|
177
178
|
|
178
179
|
opts = Appium.symbolize_keys opts
|
179
180
|
validate_keys(opts)
|
@@ -332,7 +333,7 @@ module Appium
|
|
332
333
|
# @core.platform_version #=> [10,1,1]
|
333
334
|
#
|
334
335
|
def platform_version
|
335
|
-
p_version = @driver.capabilities['platformVersion']
|
336
|
+
p_version = @driver.capabilities['platformVersion'] || @driver.session_capabilities['platformVersion']
|
336
337
|
p_version.split('.').map(&:to_i)
|
337
338
|
end
|
338
339
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '2.2.
|
4
|
-
DATE = '2018-12-
|
3
|
+
VERSION = '2.2.1'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-12-08'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
#### v2.2.1 2018-12-08
|
2
|
+
|
3
|
+
- [0b46567](https://github.com/appium/ruby_lib_core/commit/0b46567c2abc764b80c72516429038d7b1805107) Release 2.2.1
|
4
|
+
- [ff222bd](https://github.com/appium/ruby_lib_core/commit/ff222bd419caccba7ffad8a9e14a07d21261ef8b) Fix warning (#174)
|
5
|
+
- [1cefd42](https://github.com/appium/ruby_lib_core/commit/1cefd426eccf693dfe4a990b387cbfa6384e9f55) add smoothScroll
|
6
|
+
- [2a3ea37](https://github.com/appium/ruby_lib_core/commit/2a3ea372c855f9d81112785384545a3fccfa72a3) Add tests (#173)
|
7
|
+
- [116e78a](https://github.com/appium/ruby_lib_core/commit/116e78a79a8b4c56d508937a6df24ded7526a63b) Add mobile command examples in test (#172)
|
8
|
+
- [3c566a8](https://github.com/appium/ruby_lib_core/commit/3c566a8573f3b4ca43ff0e6c9faf2f7a6fa08d0e) fix rubocop
|
9
|
+
|
10
|
+
|
1
11
|
#### v2.2.0 2018-12-01
|
2
12
|
|
3
13
|
- [fe495cc](https://github.com/appium/ruby_lib_core/commit/fe495cc66f8ed3744590488b6d1508ce47f6190a) Release 2.2.0
|
data/script/commands.rb
CHANGED
@@ -16,6 +16,8 @@ module Script
|
|
16
16
|
# - webdriver_w3c_commands: ::Selenium::WebDriver::Remote::W3C::Bridge::COMMANDS
|
17
17
|
#
|
18
18
|
def initialize
|
19
|
+
@spec_commands = nil
|
20
|
+
|
19
21
|
@implemented_mjsonwp_commands = convert_driver_commands Appium::Core::Commands::MJSONWP::COMMANDS
|
20
22
|
@implemented_w3c_commands = convert_driver_commands Appium::Core::Commands::W3C::COMMANDS
|
21
23
|
@implemented_core_commands = convert_driver_commands Appium::Core::Commands::COMMANDS
|
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: 2.2.
|
4
|
+
version: 2.2.1
|
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-12-
|
11
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|