appium_lib_core 2.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/appium_lib_core.gemspec +2 -2
- data/lib/appium_lib_core/android/device/clipboard.rb +1 -1
- data/lib/appium_lib_core/common/base/driver.rb +5 -2
- data/lib/appium_lib_core/common/base/search_context.rb +1 -1
- data/lib/appium_lib_core/common/device/file_management.rb +1 -1
- data/lib/appium_lib_core/common/device/image_comparison.rb +2 -2
- data/lib/appium_lib_core/ios/device/clipboard.rb +1 -1
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +11 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 256668fc459223ce0bcd141719719191feb211e0
|
4
|
+
data.tar.gz: e839c12f3062c934bd48d2456d466980212e24a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7426e96b206636d9e29db05f3796f1454e3e62e87069a4bb292914e49b47d427f3c24924beba14e93c9f7952d5816a52787232e3540f5997c58b64258624133
|
7
|
+
data.tar.gz: 5e6815053852a68b878b1fbf2b0cb8ec2e5a360e83014dbe3bb34dea84218849a8638f19c1c64bb20d82390504750fbe690a47f36ced9fab08430f5cb1e8b3f4
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,17 @@ Read `release_notes.md` for commit level details.
|
|
9
9
|
|
10
10
|
### Deprecations
|
11
11
|
|
12
|
+
## [2.3.0] - 2019-01-07
|
13
|
+
### Enhancements
|
14
|
+
- Use `Base64.strict_encode64` when this client sends `Base64` encoded data to server
|
15
|
+
- Follows RFC 4648 format. It should not affect server side which is front Appium node server
|
16
|
+
- Continues to decode base 64 data following `decode64` to accept RFC 2045 format
|
17
|
+
- Add `query_app_state` as an alias of `app_state` to get application status
|
18
|
+
|
19
|
+
### Bug fixes
|
20
|
+
|
21
|
+
### Deprecations
|
22
|
+
|
12
23
|
## [2.2.2] - 2018-12-22
|
13
24
|
### Enhancements
|
14
25
|
- Append `appium` in header: `appium/ruby_lib_core/2.2.1 (selenium/3.141.0 (ruby macosx))`
|
data/appium_lib_core.gemspec
CHANGED
@@ -25,13 +25,13 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.14', '>= 3.14.1'
|
26
26
|
spec.add_runtime_dependency 'faye-websocket', '~> 0.10.0'
|
27
27
|
|
28
|
-
spec.add_development_dependency 'bundler', '
|
28
|
+
spec.add_development_dependency 'bundler', '>= 1.14'
|
29
29
|
spec.add_development_dependency 'rake', '~> 12.0'
|
30
30
|
spec.add_development_dependency 'yard', '~> 0.9.11'
|
31
31
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
32
32
|
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
|
33
33
|
spec.add_development_dependency 'webmock', '~> 3.4.0'
|
34
|
-
spec.add_development_dependency 'rubocop', '0.
|
34
|
+
spec.add_development_dependency 'rubocop', '0.61.0'
|
35
35
|
spec.add_development_dependency 'appium_thor', '~> 1.0'
|
36
36
|
spec.add_development_dependency 'pry'
|
37
37
|
spec.add_development_dependency 'pry-byebug'
|
@@ -557,10 +557,13 @@ module Appium
|
|
557
557
|
# @example
|
558
558
|
#
|
559
559
|
# @driver.app_state("io.appium.bundle") #=> :not_running
|
560
|
+
# # Compatibility for other clients
|
561
|
+
# @driver.query_app_state("io.appium.bundle") #=> :not_running
|
560
562
|
#
|
561
563
|
def app_state(app_id)
|
562
564
|
@bridge.app_state(app_id)
|
563
565
|
end
|
566
|
+
alias query_app_state app_state
|
564
567
|
|
565
568
|
# @param [String] remote_path: The path to the remote location, where the resulting video should be uploaded.
|
566
569
|
# The following protocols are supported: http/https, ftp.
|
@@ -862,7 +865,7 @@ module Appium
|
|
862
865
|
# e = @@driver.find_element_by_image './test/functional/data/test_element_image.png'
|
863
866
|
#
|
864
867
|
def find_element_by_image(img_path)
|
865
|
-
template = Base64.
|
868
|
+
template = Base64.strict_encode64 File.read img_path
|
866
869
|
find_element :image, template
|
867
870
|
end
|
868
871
|
|
@@ -884,7 +887,7 @@ module Appium
|
|
884
887
|
# e == [] # if the `e` is empty
|
885
888
|
#
|
886
889
|
def find_elements_by_image(img_path)
|
887
|
-
template = Base64.
|
890
|
+
template = Base64.strict_encode64 File.read img_path
|
888
891
|
find_elements :image, template
|
889
892
|
end
|
890
893
|
end # class Driver
|
@@ -53,7 +53,7 @@ module Appium
|
|
53
53
|
# find_elements :accessibility_id, 'Animation'
|
54
54
|
#
|
55
55
|
# # with base64 encoded template image. All platforms.
|
56
|
-
# find_elements :image, Base64.
|
56
|
+
# find_elements :image, Base64.strict_encode64(File.read(file_path))
|
57
57
|
#
|
58
58
|
# # For Android
|
59
59
|
# ## With uiautomator
|
@@ -151,8 +151,8 @@ module Appium
|
|
151
151
|
|
152
152
|
params = {}
|
153
153
|
params[:mode] = mode
|
154
|
-
params[:firstImage] = Base64.
|
155
|
-
params[:secondImage] = Base64.
|
154
|
+
params[:firstImage] = Base64.strict_encode64 first_image
|
155
|
+
params[:secondImage] = Base64.strict_encode64 second_image
|
156
156
|
params[:options] = options if options
|
157
157
|
|
158
158
|
execute(:compare_images, {}, params)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '2.
|
4
|
-
DATE = '
|
3
|
+
VERSION = '2.3.0'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2019-01-07'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
#### v2.3.0 2019-01-07
|
2
|
+
|
3
|
+
- [b1b66a4](https://github.com/appium/ruby_lib_core/commit/b1b66a4745b8769bdcd860d7489326933bce5ff6) Release 2.3.0
|
4
|
+
- [680577d](https://github.com/appium/ruby_lib_core/commit/680577d83356fc19d5fc435d5e49f0fea3c1442a) add alias for app_state (#180)
|
5
|
+
- [a590511](https://github.com/appium/ruby_lib_core/commit/a5905115a9f45aa1e2da4977ecf35c9755f3da95) add screen recording (#179)
|
6
|
+
- [f4693af](https://github.com/appium/ruby_lib_core/commit/f4693afbec54a9d4331e17dfc8ea4d0b12848921) add driver.quit
|
7
|
+
- [2c0f092](https://github.com/appium/ruby_lib_core/commit/2c0f09249e2f83add708c6cdb5a93f1964e61a1c) add ruby 2.6.0 into travis (#178)
|
8
|
+
- [ffe14bd](https://github.com/appium/ruby_lib_core/commit/ffe14bd8263becfc4cac1446dba62ca6544c886b) Sends strict base64 format to server (#177)
|
9
|
+
- [f1ddf27](https://github.com/appium/ruby_lib_core/commit/f1ddf277b35e672040be43fd4d708c06ce7d367e) add test for picker wheel for ios
|
10
|
+
|
11
|
+
|
1
12
|
#### v2.2.2 2018-12-22
|
2
13
|
|
3
14
|
- [6415256](https://github.com/appium/ruby_lib_core/commit/6415256f9808a92e5d82e9556e9533db9273f2fa) Release 2.2.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: 2.
|
4
|
+
version: 2.3.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:
|
11
|
+
date: 2019-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -48,14 +48,14 @@ dependencies:
|
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '1.14'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.14'
|
61
61
|
- !ruby/object:Gem::Dependency
|
@@ -134,14 +134,14 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - '='
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.
|
137
|
+
version: 0.61.0
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - '='
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.
|
144
|
+
version: 0.61.0
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: appium_thor
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|