appium_lib_core 2.1.1 → 2.2.0
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/CHANGELOG.md +10 -0
- data/README.md +3 -3
- data/azure-pipelines.yml +23 -0
- data/lib/appium_lib_core/common/base.rb +1 -0
- data/lib/appium_lib_core/common/base/platform.rb +18 -0
- data/lib/appium_lib_core/common/touch_action/touch_actions.rb +0 -9
- data/lib/appium_lib_core/driver.rb +7 -1
- data/lib/appium_lib_core/ios/xcuitest/device/screen.rb +1 -1
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +11 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6608ac1872764f204388e2fb894364f0314a5e6
|
4
|
+
data.tar.gz: c59fcba1676cec55b3cc3e564daee5388ea52f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 409af5ec67aa77bc0f96aab172947e6c104e9513d6d5d6a9d4f231e46f0a8cd622fb438ebaaa557c2eb9849b571cf82d23f1f60a82d0ada4017aa7660fdcbabd
|
7
|
+
data.tar.gz: 44486d9002c7b7cfd5107ac0f8bfae25797eb8898cd1d52020a89d98f3be935fafda8666c5d6a83607a8972ec6406d13f45eef2098d80856258215a344505ae7
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,16 @@ Read `release_notes.md` for commit level details.
|
|
9
9
|
|
10
10
|
### Deprecations
|
11
11
|
|
12
|
+
## [2.2.0] - 2018-12-01
|
13
|
+
### Enhancements
|
14
|
+
- Add `::Appium::Core::Base.platform` to call `::Selenium::WebDriver::Platform`
|
15
|
+
- Can identify platform using `::Appium::Core::Base.platform.windows?` for example
|
16
|
+
|
17
|
+
### Bug fixes
|
18
|
+
|
19
|
+
### Deprecations
|
20
|
+
- `:offset_x` and `:offset_y` in `TouchAction#swipe` is deprecated in favor of `:end_x` and `:end_y`
|
21
|
+
|
12
22
|
## [2.1.1] - 2018-11-23
|
13
23
|
### Enhancements
|
14
24
|
- `desired_capabilities:` is available in addition to `caps:` as a capability
|
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/appium_lib_core)
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
| Travis, Ubuntu | Azure, Windows |
|
6
|
+
|:---:|:---:|
|
7
|
+
|[](https://travis-ci.org/appium/ruby_lib_core)|[](https://dev.azure.com/kazucocoa/ruby_lib_core_windows/_build/latest?definitionId=4)|
|
8
8
|
|
9
9
|
This library is a Ruby client for Appium. The gem is available via [appium_lib_core](https://rubygems.org/gems/appium_lib_core).
|
10
10
|
|
data/azure-pipelines.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Ruby
|
2
|
+
# Package your Ruby project.
|
3
|
+
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
|
4
|
+
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
|
5
|
+
pool:
|
6
|
+
vmImage: 'vs2017-win2016'
|
7
|
+
|
8
|
+
steps:
|
9
|
+
- task: UseRubyVersion@0
|
10
|
+
inputs:
|
11
|
+
versionSpec: '>= 2.5'
|
12
|
+
|
13
|
+
- script: gem install bundler
|
14
|
+
displayName: 'Install bundler'
|
15
|
+
|
16
|
+
- script: bundle install --retry=3 --jobs=4
|
17
|
+
displayName: 'Call bundle install'
|
18
|
+
|
19
|
+
- script: gem uninstall --force eventmachine && gem install eventmachine --platform ruby
|
20
|
+
displayName: 'bundle re-install eventmachine for Windows because of Windows environment issue'
|
21
|
+
|
22
|
+
- script: bundle exec parallel_test test/unit/ -n 4
|
23
|
+
displayName: 'bundle exec parallel_test test/unit/ -n 4'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
# Return ::Selenium::WebDriver::Platform module methods
|
5
|
+
# Read https://github.com/SeleniumHQ/selenium/blob/master/rb/lib/selenium/webdriver/common/platform.rb
|
6
|
+
#
|
7
|
+
# @return [::Selenium::WebDriver::Platform]
|
8
|
+
#
|
9
|
+
# @example
|
10
|
+
#
|
11
|
+
# ::Appium::Core::Base.platform.windows? #=> `true` or `false`
|
12
|
+
#
|
13
|
+
def self.platform
|
14
|
+
::Selenium::WebDriver::Platform
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -142,15 +142,6 @@ module Appium
|
|
142
142
|
end_x = opts.fetch :end_x, 0
|
143
143
|
end_y = opts.fetch :end_y, 0
|
144
144
|
|
145
|
-
if opts[:offset_x]
|
146
|
-
::Appium::Logger.warn('[DEPRECATED] :offset_x was renamed to :end_x to indicate as an absolute point.')
|
147
|
-
end_x = opts.fetch :offset_x, 0
|
148
|
-
end
|
149
|
-
if opts[:offset_y]
|
150
|
-
::Appium::Logger.warn('[DEPRECATED] :offset_y was renamed to :end_y to indicate as an absolute point.')
|
151
|
-
end_y = opts.fetch :offset_y, 0
|
152
|
-
end
|
153
|
-
|
154
145
|
duration = opts.fetch :duration, 200
|
155
146
|
|
156
147
|
press x: start_x, y: start_y
|
@@ -448,7 +448,7 @@ module Appium
|
|
448
448
|
|
449
449
|
# bump current session id into a particular file
|
450
450
|
@export_session = appium_lib_opts.fetch :export_session, false
|
451
|
-
@export_session_path = appium_lib_opts.fetch :export_session_path,
|
451
|
+
@export_session_path = appium_lib_opts.fetch :export_session_path, default_tmp_appium_lib_session
|
452
452
|
|
453
453
|
@port = appium_lib_opts.fetch :port, DEFAULT_APPIUM_PORT
|
454
454
|
|
@@ -487,8 +487,14 @@ module Appium
|
|
487
487
|
end
|
488
488
|
end
|
489
489
|
|
490
|
+
# @private
|
491
|
+
def default_tmp_appium_lib_session
|
492
|
+
::Appium::Core::Base.platform.windows? ? 'C:\\\\Windows\\Temp\\appium_lib_session' : '/tmp/appium_lib_session'
|
493
|
+
end
|
494
|
+
|
490
495
|
# @private
|
491
496
|
def write_session_id(session_id, export_path = '/tmp/appium_lib_session')
|
497
|
+
export_path.tr!('/', '\\') if ::Appium::Core::Base.platform.windows?
|
492
498
|
File.write(export_path, session_id)
|
493
499
|
rescue IOError => e
|
494
500
|
::Appium::Logger.warn e
|
@@ -7,7 +7,7 @@ module Appium
|
|
7
7
|
def self.add_methods
|
8
8
|
::Appium::Core::Device.add_endpoint_method(:start_recording_screen) do
|
9
9
|
# rubocop:disable Metrics/ParameterLists
|
10
|
-
def start_recording_screen(remote_path: nil, user: nil, pass: nil, method:
|
10
|
+
def start_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT', force_restart: nil,
|
11
11
|
video_type: 'mjpeg', time_limit: '180', video_quality: 'medium',
|
12
12
|
video_fps: nil, video_scale: nil)
|
13
13
|
option = ::Appium::Core::Base::Device::ScreenRecord.new(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '2.
|
4
|
-
DATE = '2018-
|
3
|
+
VERSION = '2.2.0'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-12-01'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
#### v2.2.0 2018-12-01
|
2
|
+
|
3
|
+
- [fe495cc](https://github.com/appium/ruby_lib_core/commit/fe495cc66f8ed3744590488b6d1508ce47f6190a) Release 2.2.0
|
4
|
+
- [1321251](https://github.com/appium/ruby_lib_core/commit/1321251a2af7c4a629931e5310370915e2031930) tweak tests
|
5
|
+
- [3a99ab9](https://github.com/appium/ruby_lib_core/commit/3a99ab93239b375f921b777068d53444980fcedd) remove deprecation code (#171)
|
6
|
+
- [85e332d](https://github.com/appium/ruby_lib_core/commit/85e332d854d124b97c266145f1d503a7fe0fb9b9) add mobile command func tests (#170)
|
7
|
+
- [e96b628](https://github.com/appium/ruby_lib_core/commit/e96b628f50b3a53309539746b48fb027b34e26b4) add put
|
8
|
+
- [3e21f36](https://github.com/appium/ruby_lib_core/commit/3e21f3621e5ebf432a41ad25ce7e50dcfea973dc) Add azure pipeline to run tests on windows (#169)
|
9
|
+
- [44a0fff](https://github.com/appium/ruby_lib_core/commit/44a0fff997e1308d3885d710a04d251b0e64211e) add siri func test for mobile command (#167)
|
10
|
+
|
11
|
+
|
1
12
|
#### v2.1.1 2018-11-23
|
2
13
|
|
3
14
|
- [56e3904](https://github.com/appium/ruby_lib_core/commit/56e39043a9cd65205dd75632863d5911fac80d96) Release 2.1.1
|
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.
|
4
|
+
version: 2.2.0
|
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-
|
11
|
+
date: 2018-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- Rakefile
|
232
232
|
- Thorfile
|
233
233
|
- appium_lib_core.gemspec
|
234
|
+
- azure-pipelines.yml
|
234
235
|
- bin/console
|
235
236
|
- bin/setup
|
236
237
|
- docs/mobile_command.md
|
@@ -259,6 +260,7 @@ files:
|
|
259
260
|
- lib/appium_lib_core/common/base/command.rb
|
260
261
|
- lib/appium_lib_core/common/base/driver.rb
|
261
262
|
- lib/appium_lib_core/common/base/http_default.rb
|
263
|
+
- lib/appium_lib_core/common/base/platform.rb
|
262
264
|
- lib/appium_lib_core/common/base/screenshot.rb
|
263
265
|
- lib/appium_lib_core/common/base/search_context.rb
|
264
266
|
- lib/appium_lib_core/common/command.rb
|