appium_lib_core 6.0.0 → 6.2.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
  SHA256:
3
- metadata.gz: e147792f868660dca695a4e5bf9c31753f68515f5cd5b5bb66e4150028d7e1b4
4
- data.tar.gz: 27b0afff682d0630df7a2e8d1e2ab5bc187b63049dce918b7f4cdc2a7868fd1a
3
+ metadata.gz: 2797136f9ad9290a9e38fe27dd02d99c99ae12656e378a049dd653190be569bc
4
+ data.tar.gz: 38c66b8f7fd0fdab194906cdf05640301431fab6a0b91492125a6c8f9f3d4993
5
5
  SHA512:
6
- metadata.gz: a3711c2f4ad056cc0278d1c7dfc174a6c5ebe87b7f772933f8a8d96dbfd3c9648c9aafc314e0f4e5854f01cd65ae066c7024e6519f4d4678d1c7fc5e48d80eb4
7
- data.tar.gz: fb870f142226ee8ceadffd6962d028bd9b557fc8380972c12f138123181a95dc8e8887006365154e00372dbebd0f60a196b6965d6fff81060979519718412b1d
6
+ metadata.gz: f6168e1739ede67cbdb0eae874498d6a156d93c8fce9684b37108b40d183395ce5089659f70af8724adae804caeaafd490a318a22d2527bae98b597a40befa1a
7
+ data.tar.gz: c7126ebb44078aaacae3c81ebf39853d1c9da0b6718ed74f28209ed13f8b639f85a6b36744e311105fca5a340b103da21bd1ca3b72d3545d818c3bb5891ac5d9
data/CHANGELOG.md CHANGED
@@ -10,6 +10,23 @@ Read `release_notes.md` for commit level details.
10
10
 
11
11
  ### Deprecations
12
12
 
13
+ ## [6.2.0]
14
+
15
+ ### Enhancements
16
+
17
+ - Append `selenium-webdriver` `4.8` support
18
+ - Add `::Appium::Location` since `::Selenium::WebDriver::Location` no longer exists
19
+
20
+ ### Deprecations
21
+
22
+ - `::Selenium::WebDriver::Location` is deprecated in favor of `::Appium::Location` in Appium Ruby binding
23
+
24
+
25
+ ## [6.1.0] - 2023-01-18
26
+
27
+ ### Bug fixes
28
+ - `Element#immediate_value` sends `text` as the request body
29
+
13
30
  ## [6.0.0] - 2022-12-25
14
31
  - Remove iOS/UiAutomation classes
15
32
  - The version may work for iOS 8. XCUITest driver will be the default behavior for iOS.
@@ -28,7 +45,7 @@ Read `release_notes.md` for commit level details.
28
45
  ## [5.6.0] - 2022-11-08
29
46
 
30
47
  ### Enhancements
31
- - Append `selnium-webdriver` `4.6` support
48
+ - Append `selenium-webdriver` `4.6` support
32
49
 
33
50
  ## [5.5.2] - 2022-10-11
34
51
 
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_runtime_dependency 'selenium-webdriver', '~> 4.2', '< 4.8'
25
+ spec.add_runtime_dependency 'selenium-webdriver', '~> 4.2', '< 4.9'
26
26
  spec.add_runtime_dependency 'faye-websocket', '~> 0.11.0'
27
27
 
28
28
  spec.add_development_dependency 'rake', '~> 13.0'
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'minitest', '~> 5.0'
31
31
  spec.add_development_dependency 'minitest-reporters', '~> 1.1'
32
32
  spec.add_development_dependency 'webmock', '~> 3.18.1'
33
- spec.add_development_dependency 'rubocop', '1.41.1'
33
+ spec.add_development_dependency 'rubocop', '1.44.0'
34
34
  spec.add_development_dependency 'appium_thor', '~> 1.0'
35
35
  spec.add_development_dependency 'parallel_tests'
36
36
  spec.add_development_dependency 'simplecov'
@@ -302,7 +302,7 @@ module Appium
302
302
  # called in 'extend DriverExtensions::HasLocation'
303
303
  def location
304
304
  obj = execute(:get_location) || {}
305
- ::Selenium::WebDriver::Location.new obj['latitude'], obj['longitude'], obj['altitude']
305
+ ::Appium::Location.new obj['latitude'], obj['longitude'], obj['altitude']
306
306
  end
307
307
 
308
308
  # For Appium
@@ -21,11 +21,11 @@ module Appium
21
21
  module HasLocation
22
22
  # Get the location of the device.
23
23
  #
24
- # @return [::Selenium::WebDriver::Location]
24
+ # @return [::Appium::Location]
25
25
  #
26
26
  # @example
27
27
  #
28
- # driver.location #=> ::Selenium::WebDriver::Location.new(10, 10, 10)
28
+ # driver.location #=> ::Appium::Location.new(10, 10, 10)
29
29
  #
30
30
  def location
31
31
  @bridge.location
@@ -33,15 +33,15 @@ module Appium
33
33
 
34
34
  # Set the location of the device.
35
35
  #
36
- # @param [::Selenium::WebDriver::Location] location Set the location.
36
+ # @param [::Appium::Location] location Set the location.
37
37
  #
38
38
  # @example
39
39
  #
40
- # driver.location = ::Selenium::WebDriver::Location.new(10, 10, 10)
40
+ # driver.location = ::Appium::Location.new(10, 10, 10)
41
41
  #
42
42
  def location=(location)
43
- unless location.is_a?(::Selenium::WebDriver::Location)
44
- raise TypeError, "expected #{::Selenium::WebDriver::Location}, got #{location.inspect}:#{location.class}"
43
+ unless location.is_a?(::Appium::Location)
44
+ raise TypeError, "expected #{::Appium::Location}, got #{location.inspect}:#{location.class}"
45
45
  end
46
46
 
47
47
  @bridge.set_location location.latitude, location.longitude, location.altitude
@@ -56,17 +56,17 @@ module Appium
56
56
  # in meters/second @since Appium 1.21.0 and in knots for emulators @since Appium 1.22.0.
57
57
  # @param [String, Number] satellites Sets the count of geo satellites being tracked in range 1..12 @since Appium 1.22.0.
58
58
  # This number is respected on Emulators.
59
- # @param [::Selenium::WebDriver::Location]
59
+ # @param [::Appium::Location]
60
60
  #
61
61
  # @example
62
62
  #
63
- # driver.location = ::Selenium::WebDriver::Location.new(10, 10, 10)
63
+ # driver.location = ::Appium::Location.new(10, 10, 10)
64
64
  #
65
65
  def set_location(latitude, longitude, altitude, speed: nil, satellites: nil)
66
66
  if speed.nil? && satellites.nil?
67
- self.location = ::Selenium::WebDriver::Location.new(Float(latitude), Float(longitude), Float(altitude))
67
+ self.location = ::Appium::Location.new(Float(latitude), Float(longitude), Float(altitude))
68
68
  else
69
- loc = ::Selenium::WebDriver::Location.new(Float(latitude), Float(longitude), Float(altitude))
69
+ loc = ::Appium::Location.new(Float(latitude), Float(longitude), Float(altitude))
70
70
 
71
71
  speed = Float(speed) unless speed.nil?
72
72
  satellites = Integer(satellites) unless satellites.nil?
@@ -41,9 +41,7 @@ module Appium
41
41
  # Keep .split(//) for backward compatibility for now
42
42
  text = keys.join
43
43
 
44
- # FIXME: further work for W3C. Over appium 1.15.0 or later
45
- # { value: text.split(//), text: text }
46
- { value: text.chars }
44
+ { text: text }
47
45
  end
48
46
  end # module Value
49
47
  end # module Device
@@ -15,6 +15,9 @@
15
15
  require 'uri'
16
16
 
17
17
  module Appium
18
+ # The struct for 'location'
19
+ Location = Struct.new(:latitude, :longitude, :altitude)
20
+
18
21
  module Core
19
22
  module Android
20
23
  autoload :Uiautomator1, 'appium_lib_core/android'
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '6.0.0' unless defined? ::Appium::Core::VERSION
18
- DATE = '2022-12-25' unless defined? ::Appium::Core::DATE
17
+ VERSION = '6.2.0' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2023-01-26' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
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: 6.0.0
4
+ version: 6.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: 2022-12-26 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.8'
22
+ version: '4.9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.8'
32
+ version: '4.9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: faye-websocket
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - '='
122
122
  - !ruby/object:Gem::Version
123
- version: 1.41.1
123
+ version: 1.44.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - '='
129
129
  - !ruby/object:Gem::Version
130
- version: 1.41.1
130
+ version: 1.44.0
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: appium_thor
133
133
  requirement: !ruby/object:Gem::Requirement