appium_lib 12.1.2 → 12.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -366,7 +366,10 @@ module Appium
366
366
  # Return the platform version as an array of integers
367
367
  # @return [Array<Integer>]
368
368
  def platform_version
369
- @core.platform_version
369
+ return [] if @driver.nil?
370
+
371
+ p_version = @driver.capabilities['platformVersion'] || @driver.session_capabilities['platformVersion']
372
+ p_version.split('.').map(&:to_i)
370
373
  end
371
374
 
372
375
  # Returns the client's version info
@@ -459,7 +462,7 @@ module Appium
459
462
  # Quits the driver
460
463
  # @return [void]
461
464
  def driver_quit
462
- @core.quit_driver
465
+ @driver&.quit
463
466
  end
464
467
  alias quit_driver driver_quit
465
468
 
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Appium
16
16
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
17
- VERSION = '12.1.2' unless defined? ::Appium::VERSION
18
- DATE = '2022-11-13' unless defined? ::Appium::DATE
17
+ VERSION = '12.1.3' unless defined? ::Appium::VERSION
18
+ DATE = '2022-12-13' unless defined? ::Appium::DATE
19
19
  end
data/release_notes.md CHANGED
@@ -1,3 +1,12 @@
1
+ #### v12.1.3 2022-12-13
2
+
3
+ - [65f8b1c](https://github.com/appium/ruby_lib/commit/65f8b1c4406f358bf4a44ef0d4d7ae429ddc23c4) Release 12.1.3
4
+ - [4b95151](https://github.com/appium/ruby_lib/commit/4b95151ade73494304fa9c07aca465d54e779a24) feat: do not use deprecated methods (#959)
5
+ - [56b9d06](https://github.com/appium/ruby_lib/commit/56b9d06bb3ee94919b48d7b3c216ffe244ba6730) chore: Update rubocop requirement from = 1.39.0 to = 1.40.0 (#958)
6
+ - [19e0b0c](https://github.com/appium/ruby_lib/commit/19e0b0c51bde24cf1522ed27f74cfad913b46a67) chore: Update fakefs requirement from ~> 1.8.0 to ~> 1.9.0 (#957)
7
+ - [40786c1](https://github.com/appium/ruby_lib/commit/40786c1aabbe464003a393abf22e7e8dd105816c) chore: Update rubocop requirement from = 1.38.0 to = 1.39.0 (#956)
8
+
9
+
1
10
  #### v12.1.2 2022-11-13
2
11
 
3
12
  - [c3330bd](https://github.com/appium/ruby_lib/commit/c3330bd208d4aba2cdc616f5ca4ac23a3ec4790a) Release 12.1.2
@@ -14,6 +23,10 @@
14
23
  - [a9b7558](https://github.com/appium/ruby_lib/commit/a9b75583e9923ade4f4fd16cb7fad03cc0f7c1be) docs: tweak
15
24
  - [600f867](https://github.com/appium/ruby_lib/commit/600f8670f97d91babfd84e1c6c1ef34d2682b883) docs: updating (#950)
16
25
  - [a81ea4b](https://github.com/appium/ruby_lib/commit/a81ea4b2a74ea71fa62c1756ffea2f85da57d49b) docd: udpate readme
26
+
27
+
28
+ #### v12.1.0 2022-10-11
29
+
17
30
  - [8f20fe1](https://github.com/appium/ruby_lib/commit/8f20fe12b728195a8d2eb7d39004de4075caeff8) Release 12.1.0
18
31
  - [b00662a](https://github.com/appium/ruby_lib/commit/b00662a3976aeadc8d5385fd00129fb9dafa967c) chore: specify latest core
19
32
  - [98a3c6b](https://github.com/appium/ruby_lib/commit/98a3c6b9720eeff74f6eefda6e54196477854ed3) feat: update the minimal ruby lib core version (#946)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.1.2
4
+ version: 12.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-13 00:00:00.000000000 Z
12
+ date: 2022-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appium_lib_core
@@ -97,14 +97,14 @@ dependencies:
97
97
  requirements:
98
98
  - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: 1.8.0
100
+ version: 1.9.0
101
101
  type: :development
102
102
  prerelease: false
103
103
  version_requirements: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: 1.8.0
107
+ version: 1.9.0
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: hashdiff
110
110
  requirement: !ruby/object:Gem::Requirement
@@ -167,14 +167,14 @@ dependencies:
167
167
  requirements:
168
168
  - - '='
169
169
  - !ruby/object:Gem::Version
170
- version: 1.38.0
170
+ version: 1.40.0
171
171
  type: :development
172
172
  prerelease: false
173
173
  version_requirements: !ruby/object:Gem::Requirement
174
174
  requirements:
175
175
  - - '='
176
176
  - !ruby/object:Gem::Version
177
- version: 1.38.0
177
+ version: 1.40.0
178
178
  - !ruby/object:Gem::Dependency
179
179
  name: spec
180
180
  requirement: !ruby/object:Gem::Requirement
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  - !ruby/object:Gem::Version
316
316
  version: '0'
317
317
  requirements: []
318
- rubygems_version: 3.1.2
318
+ rubygems_version: 3.2.14
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: Ruby library for Appium