aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/ftp.rb2
-rw-r--r--lib/net/http.rb8
-rw-r--r--lib/net/imap.rb4
-rw-r--r--lib/net/pop.rb2
-rw-r--r--lib/net/telnet.rb2
5 files changed, 9 insertions, 9 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 203029ed3d..d236140056 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -577,7 +577,7 @@ module Net # :nodoc:
end
#
- # Tranfers +localfile+ to the server in whatever mode the session is set
+ # Transfers +localfile+ to the server in whatever mode the session is set
# (text or binary). See #puttextfile and #putbinaryfile.
#
def put(localfile, remotefile = File.basename(localfile),
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 8280c6a039..7996b5c1d6 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -389,12 +389,12 @@ module Net # :nodoc:
attr_reader :port
# Seconds to wait until connection is opened.
- # If the HTTP object cannot open a conection in this many seconds,
+ # If the HTTP object cannot open a connection in this many seconds,
# it raises a TimeoutError exception.
attr_accessor :open_timeout
# Seconds to wait until reading one block (by one read(2) call).
- # If the HTTP object cannot open a conection in this many seconds,
+ # If the HTTP object cannot open a connection in this many seconds,
# it raises a TimeoutError exception.
attr_reader :read_timeout
@@ -693,7 +693,7 @@ module Net # :nodoc:
#
# In version 1.1 (ruby 1.6), this method returns a pair of objects, a
# Net::HTTPResponse object and an entity body string.
- # In version 1.2 (ruby 1.8), this method returns a Net::HTTPReponse object.
+ # In version 1.2 (ruby 1.8), this method returns a Net::HTTPResponse object.
#
# If called with a block, yields each fragment of the
# entity body in turn as a string as it are read from
@@ -1600,7 +1600,7 @@ e @header.each_key(&block)
# xxx HTTPUnknownResponse
#
class HTTPResponse
- # true if the reponse has body.
+ # true if the response has body.
def HTTPResponse.body_permitted?
self::HAS_BODY
end
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 641d50e41f..4aebc33445 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -449,7 +449,7 @@ module Net # :nodoc:
# the complete set of all names available to the client.
# +refname+ provides a context (for instance, a base directory
# in a directory-based mailbox hierarchy). +mailbox+ specifies
- # a mailbox or (via wilcards) mailboxes under that context.
+ # a mailbox or (via wildcards) mailboxes under that context.
# Two wildcards may be used in +mailbox+: '*', which matches
# all characters *including* the hierarchy delimiter (for instance,
# '/' on a UNIX-hosted directory-based mailbox hierarchy); and '%',
@@ -572,7 +572,7 @@ module Net # :nodoc:
# Sends a APPEND command to append the +message+ to the end of
# the +mailbox+. The optional +flags+ argument is an array of
- # flags to initially assing to the new message. The optional
+ # flags to initially passing to the new message. The optional
# +date_time+ argument specifies the creation time to assign to the
# new message; it defaults to the current time.
# For example:
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 69c98c1ba8..f2ba1b9828 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -425,7 +425,7 @@ module Net
# to OpenSSL::SSL::VERIFY_PEER.
# +certs+ is a file or directory holding CA certs to use to verify the
# server cert; Defaults to nil.
- # +port+ is port to establish the SSL conection on; Defaults to 995.
+ # +port+ is port to establish the SSL connection on; Defaults to 995.
def enable_ssl(verify = OpenSSL::SSL::VERIFY_PEER, certs = nil,
port = POP3.default_pop3s_port)
@usessl = true
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index 6e50d17572..a91374a220 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -241,7 +241,7 @@ module Net # :nodoc:
# Timeout:: the number of seconds to wait before timing out both the
# initial attempt to connect to host (in this constructor),
# and all attempts to read data from the host (in #waitfor(),
- # #cmd(), and #login()). Exceding this timeout causes a
+ # #cmd(), and #login()). Exceeding this timeout causes a
# TimeoutError to be raised. The default value is 10 seconds.
# You can disable the timeout by setting this value to false.
# In this case, the connect attempt will eventually timeout