зеркало из https://github.com/github/ruby.git
* lib/net/ftp.rb: [DOC] Document Net::FTP.mdtm and .set_socket and fix
spelling typo, based on patch by @artfuldodger [Fixes GH-426] https://github.com/ruby/ruby/pull/426 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6720c0aeeb
Коммит
8adbcb6634
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Nov 8 02:34:20 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
|
* lib/net/ftp.rb: [DOC] Document Net::FTP.mdtm and .set_socket and fix
|
||||||
|
spelling typo, based on patch by @artfuldodger [Fixes GH-426]
|
||||||
|
https://github.com/ruby/ruby/pull/426
|
||||||
|
|
||||||
Fri Nov 8 02:14:37 2013 Zachary Scott <e@zzak.io>
|
Fri Nov 8 02:14:37 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
* array.c: [DOC] Add note about negative indices in Array overview
|
* array.c: [DOC] Add note about negative indices in Array overview
|
||||||
|
|
|
@ -251,8 +251,9 @@ module Net
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# WRITEME or make private
|
# Set the socket used to connect to the FTP server.
|
||||||
#
|
#
|
||||||
|
# May raise FTPReplyError if +get_greeting+ is false.
|
||||||
def set_socket(sock, get_greeting = true)
|
def set_socket(sock, get_greeting = true)
|
||||||
synchronize do
|
synchronize do
|
||||||
@sock = sock
|
@sock = sock
|
||||||
|
@ -310,7 +311,7 @@ module Net
|
||||||
end
|
end
|
||||||
private :getmultiline
|
private :getmultiline
|
||||||
|
|
||||||
# Recieves a response from the destination host.
|
# Receives a response from the destination host.
|
||||||
#
|
#
|
||||||
# Returns the response code or raises FTPTempError, FTPPermError, or
|
# Returns the response code or raises FTPTempError, FTPPermError, or
|
||||||
# FTPProtoError
|
# FTPProtoError
|
||||||
|
@ -330,7 +331,7 @@ module Net
|
||||||
end
|
end
|
||||||
private :getresp
|
private :getresp
|
||||||
|
|
||||||
# Recieves a response.
|
# Receives a response.
|
||||||
#
|
#
|
||||||
# Raises FTPReplyError if the first position of the response code is not
|
# Raises FTPReplyError if the first position of the response code is not
|
||||||
# equal 2.
|
# equal 2.
|
||||||
|
@ -897,7 +898,10 @@ module Net
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Issues the MDTM command. TODO: more info.
|
# Returns the raw last modification time of the (remote) file in the format
|
||||||
|
# "YYYYMMDDhhmmss" (MDTM command).
|
||||||
|
#
|
||||||
|
# Use +mtime+ if you want a parsed Time instance.
|
||||||
#
|
#
|
||||||
def mdtm(filename)
|
def mdtm(filename)
|
||||||
resp = sendcmd("MDTM " + filename)
|
resp = sendcmd("MDTM " + filename)
|
||||||
|
@ -1114,5 +1118,3 @@ end
|
||||||
|
|
||||||
# Documentation comments:
|
# Documentation comments:
|
||||||
# - sourced from pickaxe and nutshell, with improvements (hopefully)
|
# - sourced from pickaxe and nutshell, with improvements (hopefully)
|
||||||
# - three methods should be private (search WRITEME)
|
|
||||||
# - two methods need more information (search TODO)
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче