appium_lib 10.5.0 → 10.6.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.
@@ -215,7 +215,14 @@ module Appium
215
215
  # so rescue argument error
216
216
  # and call the name method on $driver
217
217
  rescue NoMethodError, ArgumentError
218
- driver.send m, *args, &block if driver.respond_to?(m)
218
+ if args.size == 1 && args.first.is_a?(Hash)
219
+ # To prevent warnings by keyword arguments (for Ruby 2.7 and 3)
220
+ driver.send m, **args.first, &block if driver.respond_to?(m)
221
+ else
222
+ ::Appium::Logger.warn "Should fix this '#{args}' for Ruby 2.7 (and 3)" if args.first.is_a?(Hash)
223
+
224
+ driver.send m, *args, &block if driver.respond_to?(m)
225
+ end
219
226
  end
220
227
  end
221
228
  end
@@ -74,7 +74,7 @@ module Appium
74
74
  opts = opts.is_a?(Numeric) ? { timeout: opts } : opts
75
75
 
76
76
  if opts.is_a? Hash
77
- opts.empty? ? @core.wait { yield } : @core.wait(opts) { yield }
77
+ opts.empty? ? @core.wait { yield } : @core.wait(**opts) { yield }
78
78
  else
79
79
  ::Appium::Logger.warn('Arguments should be Hash like {timeout: 100}')
80
80
  end
@@ -805,7 +805,7 @@ module Appium
805
805
  #
806
806
  # @param [String] vendor The vendor prefix for the event
807
807
  # @param [String] event The name of event
808
- # @returns [nil]
808
+ # @return [nil]
809
809
  #
810
810
  # @example
811
811
  #
@@ -849,11 +849,3 @@ module Appium
849
849
  end
850
850
  end # class Driver
851
851
  end # module Appium
852
-
853
- # Paging in Pry is annoying :q required to exit.
854
- # With pager disabled, the output is similar to IRB
855
- # Only set if Pry is defined and there is no `.pryrc` files.
856
- if defined?(Pry) && !(File.exist?(Pry::HOME_RC_FILE) || File.exist?(Pry::LOCAL_RC_FILE))
857
- Appium::Logger.debug 'Pry.config.pager = false is set.'
858
- Pry.config.pager = false
859
- end
@@ -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 = '10.5.0' unless defined? ::Appium::VERSION
18
- DATE = '2019-11-09' unless defined? ::Appium::DATE
17
+ VERSION = '10.6.0' unless defined? ::Appium::VERSION
18
+ DATE = '2020-04-03' unless defined? ::Appium::DATE
19
19
  end
@@ -1,3 +1,15 @@
1
+ #### v10.6.0 2020-04-03
2
+
3
+ - [65f690f](https://github.com/appium/ruby_lib/commit/65f690f1fec62a5f8868270287b0099d8b22a2ac) Release 10.6.0
4
+ - [f792db3](https://github.com/appium/ruby_lib/commit/f792db3afbfe3f6056e0af60ce9f6be3e2cecadc) feat: remove pager off (#879)
5
+ - [7ad3189](https://github.com/appium/ruby_lib/commit/7ad318925c0cd2c3e73cc015a1ec929485b8af85) Update hashdiff requirement from ~> 0.3.7 to ~> 1.0.0 (#874)
6
+ - [457e765](https://github.com/appium/ruby_lib/commit/457e7657175e6c9ba981ca476098469e91e522e1) Update rubocop requirement from ~> 0.61.0 to ~> 0.68.1 (#875)
7
+ - [9a2b9fa](https://github.com/appium/ruby_lib/commit/9a2b9fa736877141f92d35b9e2ae97657d9955d7) Update rake requirement from ~> 12.0 to ~> 13.0 (#876)
8
+ - [8748244](https://github.com/appium/ruby_lib/commit/8748244f75ae9344e8b22dd20b2d42fb0bd84d75) fix ruby27 warning (#872)
9
+ - [f1734ab](https://github.com/appium/ruby_lib/commit/f1734ab0ff2a210463ab6a83120a673e1b6efd4a) ci: add 2.7 (#871)
10
+ - [b26a8f7](https://github.com/appium/ruby_lib/commit/b26a8f7c00c966ee3f193b4c97255a4751f0041e) fix a yardoc syntax
11
+
12
+
1
13
  #### v10.5.0 2019-11-09
2
14
 
3
15
  - [722c3a9](https://github.com/appium/ruby_lib/commit/722c3a9aa387d3537b648a50dc24070e62fcc57a) Release 10.5.0
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: 10.5.0
4
+ version: 10.6.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: 2019-11-09 00:00:00.000000000 Z
12
+ date: 2020-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appium_lib_core
@@ -99,14 +99,14 @@ dependencies:
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.3.7
102
+ version: 1.0.0
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: 0.3.7
109
+ version: 1.0.0
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: posix-spawn
112
112
  requirement: !ruby/object:Gem::Requirement
@@ -141,28 +141,28 @@ dependencies:
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '12.0'
144
+ version: '13.0'
145
145
  type: :development
146
146
  prerelease: false
147
147
  version_requirements: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '12.0'
151
+ version: '13.0'
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: rubocop
154
154
  requirement: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: 0.61.0
158
+ version: 0.68.1
159
159
  type: :development
160
160
  prerelease: false
161
161
  version_requirements: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: 0.61.0
165
+ version: 0.68.1
166
166
  - !ruby/object:Gem::Dependency
167
167
  name: spec
168
168
  requirement: !ruby/object:Gem::Requirement