appium_lib 12.0.1 → 12.1.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.
@@ -80,8 +80,18 @@ module Appium
80
80
 
81
81
  Appium::Logger.info data if verbose && !data.empty?
82
82
 
83
- if data && data[:caps] && data[:caps][:app] && !data[:caps][:app].empty?
84
- data[:caps][:app] = Appium::Driver.absolute_app_path data
83
+ # FIXME: Deprecated. Will remove when we remove 'Appium::Driver.absolute_app_path'
84
+ if data
85
+ if data[:caps][:app] && !data[:caps][:app].empty?
86
+ data[:caps][:app] = Appium::Driver.absolute_app_path data
87
+ elsif data[:caps]['app'] && !data[:caps]['app'].empty?
88
+ data[:caps]['app'] = Appium::Driver.absolute_app_path data
89
+ elsif data['caps'][:app] && !data['caps'][:app].empty?
90
+ data['caps'][:app] = Appium::Driver.absolute_app_path data
91
+ elsif data['caps']['app'] && !data['caps']['app'].empty?
92
+ data['caps']['app'] = Appium::Driver.absolute_app_path data
93
+ end
94
+
85
95
  end
86
96
 
87
97
  if data && data[:appium_lib] && data[:appium_lib][:require]
@@ -250,10 +250,20 @@ module Appium
250
250
  end
251
251
 
252
252
  # @private
253
+ # Deprecated. TODO: remove
253
254
  def set_app_path(opts)
254
- return unless @core.caps && @core.caps[:app] && !@core.caps[:app].empty?
255
+ return unless @core.caps
255
256
 
256
- @core.caps[:app] = self.class.absolute_app_path opts
257
+ # return the path exists on the local
258
+ return if @core.caps['app'] && !@core.caps['app'].nil? && File.exist?(@core.caps['app'])
259
+ return if @core.caps[:app] && !@core.caps[:app].nil? && File.exist?(@core.caps[:app])
260
+
261
+ # The app file is not exact path
262
+ if !@core.caps['app'].nil?
263
+ @core.caps['app'] = self.class.absolute_app_path opts
264
+ elsif !@core.caps[:app].nil?
265
+ @core.caps[:app] = self.class.absolute_app_path opts
266
+ end
257
267
  end
258
268
 
259
269
  # @private
@@ -371,7 +381,7 @@ module Appium
371
381
  { version: ::Appium::VERSION }
372
382
  end
373
383
 
374
- # Converts app_path to an absolute path.
384
+ # [Deprecated] Converts app_path to an absolute path.
375
385
  #
376
386
  # opts is the full options hash (caps and appium_lib). If server_url is set
377
387
  # then the app path is used as is.
@@ -382,8 +392,12 @@ module Appium
382
392
  def self.absolute_app_path(opts)
383
393
  raise 'opts must be a hash' unless opts.is_a? Hash
384
394
 
385
- caps = opts[:caps] || {}
386
- app_path = caps[:app]
395
+ ::Appium::Logger.warning('[Deprecation] Converting the path to absolute path will be removed. ' \
396
+ 'Please specify the full path which can be accessible from the appium server')
397
+
398
+ # FIXME: 'caps' and 'app' will be correct
399
+ caps = opts[:caps] || opts['caps'] || {}
400
+ app_path = caps[:app] || caps['app']
387
401
  raise 'absolute_app_path invoked and app is not set!' if app_path.nil? || app_path.empty?
388
402
  # Sauce storage API. http://saucelabs.com/docs/rest#storage
389
403
  return app_path if app_path.start_with? 'sauce-storage:'
@@ -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.0.1' unless defined? ::Appium::VERSION
18
- DATE = '2022-04-02' unless defined? ::Appium::DATE
17
+ VERSION = '12.1.0' unless defined? ::Appium::VERSION
18
+ DATE = '2022-10-11' unless defined? ::Appium::DATE
19
19
  end
data/readme.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  Helper methods for writing cross platform (iOS, Android) tests in Ruby using Appium. Note that user waits should not exceed 120 seconds if they're going to run on Sauce Labs.
16
16
 
17
- [Ruby_lib_core](https://github.com/appium/ruby_lib_core) is also available as a Ruby client for Appium. `ruby_lib` wraps the core library with some additional helpful methods.
17
+ **Recommend** to use [ruby_lib_core](https://github.com/appium/ruby_lib_core), which is available as a Ruby client for Appium. `ruby_lib` wraps the core library with some additional helpful methods.
18
18
  Ordinary, `ruby_lib` worked with class driver, `$driver`, mainly.
19
19
  We can avoid the class driver with current `ruby_lib`, but if you'd like to implement your test cases based on instance driver, `@driver`, you can consider using `ruby_lib_core` first.
20
20
 
data/release_notes.md CHANGED
@@ -1,3 +1,32 @@
1
+ #### v12.1.0 2022-10-11
2
+
3
+ - [8f20fe1](https://github.com/appium/ruby_lib/commit/8f20fe12b728195a8d2eb7d39004de4075caeff8) Release 12.1.0
4
+ - [b00662a](https://github.com/appium/ruby_lib/commit/b00662a3976aeadc8d5385fd00129fb9dafa967c) chore: specify latest core
5
+ - [98a3c6b](https://github.com/appium/ruby_lib/commit/98a3c6b9720eeff74f6eefda6e54196477854ed3) feat: update the minimal ruby lib core version (#946)
6
+ - [45a2194](https://github.com/appium/ruby_lib/commit/45a21942311ed4e5b88df3ad9ddb540693422b5e) docs: update the readme
7
+ - [c29cf02](https://github.com/appium/ruby_lib/commit/c29cf0284041f449dc594248cadf47bf7ca074ae) chore: Update rubocop requirement from = 1.35.1 to = 1.36.0 (#944)
8
+ - [26ff210](https://github.com/appium/ruby_lib/commit/26ff21044030eb833c5c167026834f8a522c1a7c) chore: Update rubocop requirement from = 1.35.0 to = 1.35.1 (#941)
9
+ - [1984bd0](https://github.com/appium/ruby_lib/commit/1984bd09e4fa55a41b9c1cf22ae9c4fffa51b149) chore: Update rubocop requirement from = 1.34.1 to = 1.35.0 (#940)
10
+ - [71f889b](https://github.com/appium/ruby_lib/commit/71f889b2671696244609d2ce970dc602be28644a) chore: Update rubocop requirement from = 1.34.0 to = 1.34.1 (#939)
11
+ - [6d4c02d](https://github.com/appium/ruby_lib/commit/6d4c02d0f8d59d5debe60d782260bf1b2e4b80ad) chore: Update rubocop requirement from = 1.33.0 to = 1.34.0 (#938)
12
+ - [6d10490](https://github.com/appium/ruby_lib/commit/6d104904974798e187fc07ad6f98875c09368ca7) chore: Update rubocop requirement from = 1.32.0 to = 1.33.0 (#937)
13
+ - [0144c9c](https://github.com/appium/ruby_lib/commit/0144c9c9d7331e5384de0a528eedf82be98affbd) chore: Update rubocop requirement from = 1.31.2 to = 1.32.0 (#936)
14
+ - [6d08328](https://github.com/appium/ruby_lib/commit/6d083282eb0f04dc70453d5290af2eb6f3d5da90) chore: Update rubocop requirement from = 1.31.1 to = 1.31.2 (#934)
15
+ - [8554315](https://github.com/appium/ruby_lib/commit/8554315055cb5742cb8251e087a7e6d0cc3b7504) chore: Update rubocop requirement from = 1.31.0 to = 1.31.1 (#933)
16
+ - [50b76c6](https://github.com/appium/ruby_lib/commit/50b76c6713d5ae1134dbe7f2d5cfae95df9dede6) chore: Update rubocop requirement from = 1.30.1 to = 1.31.0 (#932)
17
+ - [b55c2a5](https://github.com/appium/ruby_lib/commit/b55c2a58e5ea0ffc215e43dc8e1b28a99c7be372) chore: Update fakefs requirement from ~> 1.7.0 to ~> 1.8.0 (#931)
18
+ - [7c501bc](https://github.com/appium/ruby_lib/commit/7c501bc47f8a40bf83088a43af2892d46cef561c) chore: Update fakefs requirement from ~> 1.5.0 to ~> 1.7.0 (#930)
19
+ - [574e3c4](https://github.com/appium/ruby_lib/commit/574e3c4acc9f38419250aa3a046143acc8d55a75) chore: Update rubocop requirement from = 1.30.0 to = 1.30.1 (#929)
20
+ - [0dacfea](https://github.com/appium/ruby_lib/commit/0dacfea1924f953ae8c6328c97065dcdb6b372d7) chore: Update rubocop requirement from = 1.29.1 to = 1.30.0 (#928)
21
+ - [cf368c8](https://github.com/appium/ruby_lib/commit/cf368c848a76cf5a86c26f006cd4ff412f1f8a86) chore: Update fakefs requirement from ~> 1.4.0 to ~> 1.5.0 (#927)
22
+ - [2e9190a](https://github.com/appium/ruby_lib/commit/2e9190aa8905c3d06adcc16a87209f3841e4cdc4) chore: Update rubocop requirement from = 1.29.0 to = 1.29.1 (#926)
23
+ - [99360fb](https://github.com/appium/ruby_lib/commit/99360fb8b0aab56fc3eb6e903cf89e10bbd8b78b) chore: Update rubocop requirement from = 1.28.2 to = 1.29.0 (#925)
24
+ - [9bf18ce](https://github.com/appium/ruby_lib/commit/9bf18ce0365f4c677d81d83b3a33ef7125a8e1dd) chore: Update rubocop requirement from = 1.28.1 to = 1.28.2 (#924)
25
+ - [d7a5983](https://github.com/appium/ruby_lib/commit/d7a598369c0e28f8924e04aaa6d2159662fa710f) chore: Update rubocop requirement from = 1.28.0 to = 1.28.1 (#923)
26
+ - [e33f440](https://github.com/appium/ruby_lib/commit/e33f4408ccf28564316196b9555b23aaa83d9b5e) chore: Update rubocop requirement from = 1.27.0 to = 1.28.0 (#922)
27
+ - [e598c26](https://github.com/appium/ruby_lib/commit/e598c2681c565c8d52338c6bb544374df5c3729b) chore: Update rubocop requirement from = 1.26.1 to = 1.27.0 (#921)
28
+
29
+
1
30
  #### v12.0.1 2022-04-02
2
31
 
3
32
  - [ae4bddd](https://github.com/appium/ruby_lib/commit/ae4bddd7ba5bf3aafe8fedc44919bb02b4f260be) Release 12.0.1
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.0.1
4
+ version: 12.1.0
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-04-02 00:00:00.000000000 Z
12
+ date: 2022-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appium_lib_core
@@ -17,14 +17,20 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '5.0'
20
+ version: '5.5'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 5.5.2
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - "~>"
26
29
  - !ruby/object:Gem::Version
27
- version: '5.0'
30
+ version: '5.5'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 5.5.2
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: nokogiri
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -91,14 +97,14 @@ dependencies:
91
97
  requirements:
92
98
  - - "~>"
93
99
  - !ruby/object:Gem::Version
94
- version: 1.4.0
100
+ version: 1.8.0
95
101
  type: :development
96
102
  prerelease: false
97
103
  version_requirements: !ruby/object:Gem::Requirement
98
104
  requirements:
99
105
  - - "~>"
100
106
  - !ruby/object:Gem::Version
101
- version: 1.4.0
107
+ version: 1.8.0
102
108
  - !ruby/object:Gem::Dependency
103
109
  name: hashdiff
104
110
  requirement: !ruby/object:Gem::Requirement
@@ -161,14 +167,14 @@ dependencies:
161
167
  requirements:
162
168
  - - '='
163
169
  - !ruby/object:Gem::Version
164
- version: 1.26.1
170
+ version: 1.36.0
165
171
  type: :development
166
172
  prerelease: false
167
173
  version_requirements: !ruby/object:Gem::Requirement
168
174
  requirements:
169
175
  - - '='
170
176
  - !ruby/object:Gem::Version
171
- version: 1.26.1
177
+ version: 1.36.0
172
178
  - !ruby/object:Gem::Dependency
173
179
  name: spec
174
180
  requirement: !ruby/object:Gem::Requirement
@@ -303,7 +309,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
303
309
  requirements:
304
310
  - - ">="
305
311
  - !ruby/object:Gem::Version
306
- version: '2.6'
312
+ version: '2.7'
307
313
  required_rubygems_version: !ruby/object:Gem::Requirement
308
314
  requirements:
309
315
  - - ">="