appium_lib 9.11.0 → 9.11.1

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.
@@ -12,13 +12,17 @@ module Appium
12
12
  def add_touch_actions
13
13
  actions = Appium::TouchAction::COMPLEX_ACTIONS
14
14
  actions.each do |method|
15
- ::Appium::Core::Device.delegate_from_appium_driver(method, Appium::TouchAction)
15
+ delegate_from_appium_driver(method, Appium::TouchAction)
16
16
  end
17
17
 
18
18
  # To keep compatibility
19
19
  # pinch and zoom are defined in Appium::MultiTouch.
20
- ::Appium::Core::Device.delegate_from_appium_driver(:pinch, Appium::MultiTouch)
21
- ::Appium::Core::Device.delegate_from_appium_driver(:zoom, Appium::MultiTouch)
20
+ delegate_from_appium_driver(:pinch, Appium::MultiTouch)
21
+ delegate_from_appium_driver(:zoom, Appium::MultiTouch)
22
+ end
23
+
24
+ def delegate_from_appium_driver(method, delegation_target)
25
+ def_delegator delegation_target, method
22
26
  end
23
27
  end # class << self
24
28
  end # module Device
@@ -2,10 +2,8 @@ require 'appium_lib_core'
2
2
 
3
3
  module Appium
4
4
  module Common
5
- class Wait < ::Appium::Core::Base::Wait
6
- def initialize(opts = {})
7
- super(opts)
8
- end
5
+ class Wait
6
+ include ::Appium::Core::Waitable
9
7
  end
10
8
 
11
9
  # Check every interval seconds to see if yield returns a truthy value.
@@ -24,7 +22,11 @@ module Appium
24
22
  # @option opts [String] :message Exception message if timed out.
25
23
  # @option opts [Array, Exception] :ignore Exceptions to ignore while polling (default: Exception)
26
24
  def wait_true(opts = {})
27
- @core.wait_true(opts) { yield }
25
+ if opts.is_a? Hash
26
+ opts.empty? ? @core.wait_true { yield } : @core.wait_true(opts) { yield }
27
+ else
28
+ ::Appium::Logger.warn('Arguments should be Hash like {timeout: 100}')
29
+ end
28
30
  end
29
31
 
30
32
  # Check every interval seconds to see if yield doesn't raise an exception.
@@ -41,7 +43,11 @@ module Appium
41
43
  # @option opts [String] :message Exception message if timed out.
42
44
  # @option opts [Array, Exception] :ignore Exceptions to ignore while polling (default: Exception)
43
45
  def wait(opts = {})
44
- @core.wait(opts) { yield }
46
+ if opts.is_a? Hash
47
+ opts.empty? ? @core.wait { yield } : @core.wait(opts) { yield }
48
+ else
49
+ ::Appium::Logger.warn('Arguments should be Hash like {timeout: 100}')
50
+ end
45
51
  end
46
52
  end
47
53
  end
@@ -1,5 +1,5 @@
1
1
  module Appium
2
2
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
3
- VERSION = '9.11.0'.freeze unless defined? ::Appium::VERSION
4
- DATE = '2018-04-19'.freeze unless defined? ::Appium::DATE
3
+ VERSION = '9.11.1'.freeze unless defined? ::Appium::VERSION
4
+ DATE = '2018-04-23'.freeze unless defined? ::Appium::DATE
5
5
  end
@@ -1,3 +1,12 @@
1
+ #### v9.11.0 2018-04-19
2
+
3
+ - [91f4db4](https://github.com/appium/ruby_lib/commit/91f4db40f0b1e29bc77231f3ce850bee193d4968) [Release 9 11 0 (#770)](https://github.com/appium/ruby_lib/issues/770)
4
+ - [74437a7](https://github.com/appium/ruby_lib/commit/74437a7d10203ae6125dbcecd11d761b0dad3819) [add mobile logs broadcast (#764)](https://github.com/appium/ruby_lib/issues/764)
5
+ - [97c6421](https://github.com/appium/ruby_lib/commit/97c6421a557adb40dc134e0a6d65687e918498f3) [remove old docs (#768)](https://github.com/appium/ruby_lib/issues/768)
6
+ - [f58dace](https://github.com/appium/ruby_lib/commit/f58dacea3a003c8c7f4871fd788e9545185cb958) [add some comments in examples for drivers (#767)](https://github.com/appium/ruby_lib/issues/767)
7
+ - [0852bc7](https://github.com/appium/ruby_lib/commit/0852bc7c894015312f42ed252d1cfce185c6cf4e) [clean docs up (#765)](https://github.com/appium/ruby_lib/issues/765)
8
+
9
+
1
10
  #### v9.10.0 2018-02-14
2
11
 
3
12
  - [5538a43](https://github.com/appium/ruby_lib/commit/5538a43c96adda5b7400fd50e60f650873fef8b2) [Release 9 10 0 (#763)](https://github.com/appium/ruby_lib/issues/763)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.11.0
4
+ version: 9.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.0
19
+ version: 1.4.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.0
26
+ version: 1.4.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tomlrb
29
29
  requirement: !ruby/object:Gem::Requirement