lib/tty/command/execute.rb in tty-command-0.3.1 vs lib/tty/command/execute.rb in tty-command-0.3.2

- old
+ new

@@ -97,14 +97,14 @@ end def convert_to_fd(object) return object if fd?(object) - if object.is_a?(::String) && File.exists?(object) + if object.is_a?(::String) && ::File.exists?(object) return object end - tmp = Tempfile.new(SecureRandom.uuid.split('-')[0]) + tmp = ::Tempfile.new(::SecureRandom.uuid.split('-')[0]) content = try_reading(object) tmp.write(content) tmp.rewind tmp