Skip to content

Commit d51668a

Browse files
committed
revert delegate_from_appium_driver
1 parent c4a2bca commit d51668a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/appium_lib_core/device.rb

+7
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def add_endpoint_method(method)
530530
block_given? ? create_bridge_command(method, &Proc.new) : create_bridge_command(method)
531531

532532
delegate_driver_method method
533+
delegate_from_appium_driver method
533534
end
534535

535536
# @private CoreBridge
@@ -540,6 +541,12 @@ def extend_webdriver_with_forwardable
540541
end
541542
end
542543

544+
# For ruby_lib compatibility
545+
# @private
546+
def delegate_from_appium_driver(method, delegation_target = :driver)
547+
def_delegator delegation_target, method
548+
end
549+
543550
# @private
544551
def delegate_driver_method(method)
545552
return if ::Appium::Core::Base::Driver.method_defined? method

lib/appium_lib_core/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Appium
22
module Core
3-
VERSION = '1.4.1'.freeze unless defined? ::Appium::Core::VERSION
3+
VERSION = '1.4.2'.freeze unless defined? ::Appium::Core::VERSION
44
DATE = '2018-04-22'.freeze unless defined? ::Appium::Core::DATE
55
end
66
end

0 commit comments

Comments
 (0)