Skip to content

Commit 9c4d555

Browse files
authored
remove rails/duplicable and related methods (#614)
1 parent cfe84fc commit 9c4d555

File tree

3 files changed

+1
-126
lines changed

3 files changed

+1
-126
lines changed

lib/appium_lib.rb

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Encoding.default_internal = Encoding::UTF_8
44

55
require 'forwardable' unless defined? Forwardable
6-
require_relative 'appium_lib/rails/duplicable'
76

87
# Init global driver
98
$driver = nil

lib/appium_lib/driver.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def initialize(opts = {})
439439

440440
# Returns a hash of the driver attributes
441441
def driver_attributes
442-
attributes = {
442+
{
443443
caps: @caps,
444444
automation_name: @automation_name,
445445
custom_url: @custom_url,
@@ -455,12 +455,6 @@ def driver_attributes
455455
wait_timeout: @appium_wait_timeout,
456456
wait_interval: @appium_wait_interval
457457
}
458-
459-
# Return duplicates so attributes are immutable
460-
attributes.each do |key, value|
461-
attributes[key] = value.duplicable? ? value.dup : value
462-
end
463-
attributes
464458
end
465459

466460
def device_is_android?

lib/appium_lib/rails/duplicable.rb

-118
This file was deleted.

0 commit comments

Comments
 (0)