lib/appium_lib/common/patch.rb in appium_lib-0.3.8 vs lib/appium_lib/common/patch.rb in appium_lib-0.3.9

- old
+ new

@@ -65,9 +65,12 @@ opts.each { |key, value| path[key.inspect] = escaper.escape(value.to_s) } rescue IndexError raise ArgumentError, "#{opts.inspect} invalid for #{command.inspect}" end + # convert /// into / + path.gsub! /\/+/, '/' + # change path from session/efac972c-941a-499c-803c-d7d008749/execute # to /execute # path may be nil, session, or not have anything after the session_id. path_str = '' path_match = path.match /.*\h{8}-\h{4}-\h{4}-\h{4}-\h{12}/ \ No newline at end of file