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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29bdb6f6e26c990bbe57b39320b655e46ff4abf9
4
- data.tar.gz: 95975e9056cdcd93da70bc9672c3f798cc4f8b3d
3
+ metadata.gz: 256668fc459223ce0bcd141719719191feb211e0
4
+ data.tar.gz: e839c12f3062c934bd48d2456d466980212e24a7
5
5
  SHA512:
6
- metadata.gz: 4987a377af3e2663d3d9f5ad9761d5c3039f79bb44f77ef409b0a796df7eedad803bc68c96405191f3d0a05771c6156f2737df05542048fd3ea5c400e5b806a7
7
- data.tar.gz: 0604ddf6b1b49e7d46477f7bc18c1da4eb3bdd6bfe9acca2af57ee46c142d49a5e8ded16473cddcb106c4ae7c95692e374f1fc8ee57b6a653a5fc9eaddb59e42
6
+ metadata.gz: c7426e96b206636d9e29db05f3796f1454e3e62e87069a4bb292914e49b47d427f3c24924beba14e93c9f7952d5816a52787232e3540f5997c58b64258624133
7
+ data.tar.gz: 5e6815053852a68b878b1fbf2b0cb8ec2e5a360e83014dbe3bb34dea84218849a8638f19c1c64bb20d82390504750fbe690a47f36ced9fab08430f5cb1e8b3f4
@@ -32,3 +32,5 @@ Naming/AccessorMethodName:
32
32
  Enabled: false
33
33
  Naming/MemoizedInstanceVariableName:
34
34
  Enabled: false
35
+ Layout/RescueEnsureAlignment:
36
+ Enabled: false
@@ -6,7 +6,7 @@ rvm:
6
6
  - 2.3
7
7
  - 2.4
8
8
  - 2.5
9
- # - 2.6
9
+ - 2.6
10
10
 
11
11
  before_install:
12
12
  - gem update bundler
@@ -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))`
@@ -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', '~> 1.14'
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.60.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'
@@ -27,7 +27,7 @@ module Appium
27
27
 
28
28
  params = {
29
29
  contentType: content_type,
30
- content: Base64.encode64(content)
30
+ content: Base64.strict_encode64(content)
31
31
  }
32
32
  params[:label] = label unless label.nil?
33
33
 
@@ -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.encode64 File.read img_path
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.encode64 File.read img_path
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.encode64(File.read(file_path))
56
+ # find_elements :image, Base64.strict_encode64(File.read(file_path))
57
57
  #
58
58
  # # For Android
59
59
  # ## With uiautomator
@@ -6,7 +6,7 @@ module Appium
6
6
  module Device
7
7
  module FileManagement
8
8
  def push_file(path, filedata)
9
- encoded_data = Base64.encode64 filedata
9
+ encoded_data = Base64.strict_encode64 filedata
10
10
  execute :push_file, {}, path: path, data: encoded_data
11
11
  end
12
12
 
@@ -151,8 +151,8 @@ module Appium
151
151
 
152
152
  params = {}
153
153
  params[:mode] = mode
154
- params[:firstImage] = Base64.encode64 first_image
155
- params[:secondImage] = Base64.encode64 second_image
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)
@@ -27,7 +27,7 @@ module Appium
27
27
 
28
28
  params = {
29
29
  contentType: content_type,
30
- content: Base64.encode64(content)
30
+ content: Base64.strict_encode64(content)
31
31
  }
32
32
 
33
33
  execute(:set_clipboard, {}, params)
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Core
3
- VERSION = '2.2.2'.freeze unless defined? ::Appium::Core::VERSION
4
- DATE = '2018-12-22'.freeze unless defined? ::Appium::Core::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
@@ -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.2.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: 2018-12-21 00:00:00.000000000 Z
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.60.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.60.0
144
+ version: 0.61.0
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: appium_thor
147
147
  requirement: !ruby/object:Gem::Requirement