summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-04 09:37:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-04 09:37:38 +0000
commite6c1752137349537c72f4438d34c990b26d0c71d (patch)
treedcaf4183b65972648531083adbd167bfd1274d38 /lib
parent106e48e5d86d20a4a288fd432d973ed69874b6d5 (diff)
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
<evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi/session.rb4
-rw-r--r--lib/cgi/session/pstore.rb2
-rw-r--r--lib/csv.rb8
-rw-r--r--lib/delegate.rb2
-rw-r--r--lib/erb.rb2
-rw-r--r--lib/forwardable.rb2
-rw-r--r--lib/irb/extend-command.rb2
-rw-r--r--lib/irb/help.rb2
-rw-r--r--lib/irb/notifier.rb2
-rw-r--r--lib/irb/ruby-lex.rb2
-rw-r--r--lib/irb/slex.rb2
-rw-r--r--lib/logger.rb2
-rw-r--r--lib/net/https.rb4
-rw-r--r--lib/net/imap.rb2
-rw-r--r--lib/open-uri.rb2
-rw-r--r--lib/optparse.rb6
-rw-r--r--lib/pathname.rb2
-rw-r--r--lib/pstore.rb4
-rwxr-xr-xlib/rake.rb14
-rw-r--r--lib/rdoc.rb4
-rw-r--r--lib/rdoc/README4
-rw-r--r--lib/rdoc/generator.rb4
-rw-r--r--lib/rdoc/generator/html/html.rb2
-rw-r--r--lib/rdoc/generator/ri.rb2
-rw-r--r--lib/rdoc/markup.rb6
-rw-r--r--lib/rdoc/markup/fragments.rb2
-rw-r--r--lib/rdoc/options.rb2
-rw-r--r--lib/rdoc/parsers/parse_c.rb8
-rw-r--r--lib/rdoc/parsers/parse_f95.rb8
-rw-r--r--lib/rdoc/parsers/parse_rb.rb2
-rw-r--r--lib/rdoc/rdoc.rb2
-rw-r--r--lib/rdoc/ri/descriptions.rb2
-rw-r--r--lib/resolv.rb4
-rw-r--r--lib/rexml/attlistdecl.rb2
-rw-r--r--lib/rexml/document.rb2
-rw-r--r--lib/rexml/element.rb6
-rw-r--r--lib/rexml/formatters/pretty.rb2
-rw-r--r--lib/rexml/functions.rb2
-rw-r--r--lib/rexml/text.rb2
-rw-r--r--lib/rexml/xpath.rb2
-rw-r--r--lib/rinda/ring.rb4
-rw-r--r--lib/rubygems/command.rb2
-rw-r--r--lib/rubygems/command_manager.rb4
-rw-r--r--lib/rubygems/commands/cert_command.rb2
-rw-r--r--lib/rubygems/dependency_installer.rb4
-rw-r--r--lib/rubygems/gem_openssl.rb2
-rw-r--r--lib/rubygems/requirement.rb2
-rw-r--r--lib/rubygems/security.rb4
-rw-r--r--lib/rubygems/server.rb2
-rw-r--r--lib/rubygems/source_info_cache.rb2
-rw-r--r--lib/rubygems/specification.rb2
-rw-r--r--lib/rubygems/user_interaction.rb4
-rw-r--r--lib/shell.rb2
-rw-r--r--lib/shell/process-controller.rb2
-rw-r--r--lib/webrick/httpproxy.rb4
-rw-r--r--lib/webrick/httpresponse.rb2
56 files changed, 90 insertions, 90 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index c693e06df2..a9cfedd56b 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -230,7 +230,7 @@ class CGI
# session_path:: the path for which this session applies. Defaults
# to the directory of the CGI script.
#
- # +option+ is also passed on to the session storage class initialiser; see
+ # +option+ is also passed on to the session storage class initializer; see
# the documentation for each session storage class for the options
# they support.
#
@@ -357,7 +357,7 @@ class CGI
# characters; automatically generated session ids observe
# this requirement.
#
- # +option+ is a hash of options for the initialiser. The
+ # +option+ is a hash of options for the initializer. The
# following options are recognised:
#
# tmpdir:: the directory to use for storing the FileStore
diff --git a/lib/cgi/session/pstore.rb b/lib/cgi/session/pstore.rb
index 9a16a66b15..6039183363 100644
--- a/lib/cgi/session/pstore.rb
+++ b/lib/cgi/session/pstore.rb
@@ -30,7 +30,7 @@ class CGI
# characters; automatically generated session ids observe
# this requirement.
#
- # +option+ is a hash of options for the initialiser. The
+ # +option+ is a hash of options for the initializer. The
# following options are recognised:
#
# tmpdir:: the directory to use for storing the PStore
diff --git a/lib/csv.rb b/lib/csv.rb
index f846205637..f60d5b1cb0 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -813,7 +813,7 @@ class CSV
# <b><tt>:all</tt></b>:: All built-in converters. A combination of
# <tt>:date_time</tt> and <tt>:numeric</tt>.
#
- # This Hash is intetionally left unfrozen and users should feel free to add
+ # This Hash is intentionally left unfrozen and users should feel free to add
# values to it that can be accessed by all CSV objects.
#
# To add a combo field, the value should be an Array of names. Combo fields
@@ -1148,7 +1148,7 @@ class CSV
# Hash containing any +options+ CSV::new() understands.
#
# This method works like Ruby's open() call, in that it will pass a CSV object
- # to a provided block and close it when the block termminates, or it will
+ # to a provided block and close it when the block terminates, or it will
# return the CSV object when no block is provided. (*Note*: This is different
# from the Ruby 1.8 CSV library which passed rows to the block. Use
# CSV::foreach() for that behavior.)
@@ -1313,7 +1313,7 @@ class CSV
# unconverted_fields() method will be
# added to all returned rows (Array or
# CSV::Row) that will return the fields
- # as they were before convertion. Note
+ # as they were before conversion. Note
# that <tt>:headers</tt> supplied by
# Array or String were not fields of the
# document and thus will have an empty
@@ -1744,7 +1744,7 @@ class CSV
instance_variable_set("@#{field_name}", Array.new)
- # find the correct method to add the coverters
+ # find the correct method to add the converters
convert = method(field_name.to_s.sub(/ers\Z/, ""))
# load converters
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 337e763f62..629753fe3a 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -264,7 +264,7 @@ end
# your class.
#
# class MyClass < DelegateClass( ClassToDelegateTo ) # Step 1
-# def initiaize
+# def initialize
# super(obj_of_ClassToDelegateTo) # Step 2
# end
# end
diff --git a/lib/erb.rb b/lib/erb.rb
index fade2c72ba..2c7e203923 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -658,7 +658,7 @@ class ERB
#
# def build
# b = binding
- # # create and run templates, filling member data variebles
+ # # create and run templates, filling member data variables
# ERB.new(<<-'END_PRODUCT'.gsub(/^\s+/, ""), 0, "", "@product").result b
# <%= PRODUCT[:name] %>
# <%= PRODUCT[:desc] %>
diff --git a/lib/forwardable.rb b/lib/forwardable.rb
index 554244a477..a4af0217d0 100644
--- a/lib/forwardable.rb
+++ b/lib/forwardable.rb
@@ -38,7 +38,7 @@
# @q = [ ] # prepare delegate object
# end
#
-# # setup prefered interface, enq() and deq()...
+# # setup preferred interface, enq() and deq()...
# def_delegator :@q, :push, :enq
# def_delegator :@q, :shift, :deq
#
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index e7097309bb..5cfae7ea3c 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -111,7 +111,7 @@ module IRB
end
end
- # aliases = [commans_alias, flag], ...
+ # aliases = [commands_alias, flag], ...
def self.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases)
case cmd_class
when Symbol
diff --git a/lib/irb/help.rb b/lib/irb/help.rb
index f19b1fdd3d..01e5878d18 100644
--- a/lib/irb/help.rb
+++ b/lib/irb/help.rb
@@ -1,5 +1,5 @@
#
-# irb/help.rb - print usase module
+# irb/help.rb - print usage module
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb
index 18f0028ce8..51f10ff398 100644
--- a/lib/irb/notifier.rb
+++ b/lib/irb/notifier.rb
@@ -1,5 +1,5 @@
#
-# notifier.rb - optput methods used by irb
+# notifier.rb - output methods used by irb
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index b66465c4de..2569fd93d5 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -1,5 +1,5 @@
#
-# irb/ruby-lex.rb - ruby lexcal analizer
+# irb/ruby-lex.rb - ruby lexcal analyzer
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
diff --git a/lib/irb/slex.rb b/lib/irb/slex.rb
index 1fdcd86b43..c8b40c6878 100644
--- a/lib/irb/slex.rb
+++ b/lib/irb/slex.rb
@@ -1,5 +1,5 @@
#
-# irb/slex.rb - symple lex analizer
+# irb/slex.rb - simple lex analyzer
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
diff --git a/lib/logger.rb b/lib/logger.rb
index cff881ff48..5399e13ead 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -1,4 +1,4 @@
-# logger.rb - saimple logging utility
+# logger.rb - simple logging utility
# Copyright (C) 2000-2003, 2005 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>.
require 'monitor'
diff --git a/lib/net/https.rb b/lib/net/https.rb
index 8a9245ea0e..7477df1780 100644
--- a/lib/net/https.rb
+++ b/lib/net/https.rb
@@ -65,11 +65,11 @@ It can be replaced by the following code:
: key, key=((|key|))
Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
- (This method is appeared in Michal Rokos's OpenSSL extention.)
+ (This method is appeared in Michal Rokos's OpenSSL extension.)
: cert, cert=((|cert|))
Sets an OpenSSL::X509::Certificate object as client certificate
- (This method is appeared in Michal Rokos's OpenSSL extention).
+ (This method is appeared in Michal Rokos's OpenSSL extension).
: ca_file, ca_file=((|path|))
Sets path of a CA certification file in PEM format.
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index ce765b0a34..4c63ddd325 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -3243,7 +3243,7 @@ module Net
return @nc[nonce]
end
- # some reponses needs quoting
+ # some responses need quoting
def qdval(k, v)
return if k.nil? or v.nil?
if %w"username authzid realm nonce cnonce digest-uri qop".include? k
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index be88b81079..238d759d5f 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -657,7 +657,7 @@ module OpenURI
# :redirect=>false is used to disable HTTP redirects at all.
# OpenURI::HTTPRedirect exception raised on redirection.
# It is true by default.
- # The true means redirectoins between http and ftp is permitted.
+ # The true means redirections between http and ftp is permitted.
#
def open(*rest, &block)
OpenURI.open_uri(self, *rest, &block)
diff --git a/lib/optparse.rb b/lib/optparse.rb
index d33ad536e2..c6a54ef30a 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -826,7 +826,7 @@ class OptionParser
#
# Directs to reject specified class argument.
#
- # +t+:: Argument class speficier, any object including Class.
+ # +t+:: Argument class specifier, any object including Class.
#
# reject(t)
#
@@ -1037,13 +1037,13 @@ class OptionParser
# "-x[OPTIONAL]"
# "-x"
# There is also a special form which matches character range (not full
- # set of regural expression):
+ # set of regular expression):
# "-[a-z]MANDATORY"
# "-[a-z][OPTIONAL]"
# "-[a-z]"
#
# [Argument style and description:]
- # Instead of specifying mandatory or optional orguments directly in the
+ # Instead of specifying mandatory or optional arguments directly in the
# switch parameter, this separate parameter can be used.
# "=MANDATORY"
# "=[OPTIONAL]"
diff --git a/lib/pathname.rb b/lib/pathname.rb
index b2e119db11..7bee22b58f 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -262,7 +262,7 @@ class Pathname
SEPARATOR_PAT = /#{Regexp.quote File::SEPARATOR}/
end
- # Return a pathname which the extention of the basename is substituted by
+ # Return a pathname which the extension of the basename is substituted by
# <i>repl</i>.
#
# If self has no extension part, <i>repl</i> is appended.
diff --git a/lib/pstore.rb b/lib/pstore.rb
index a1ad768fbf..8032c8d525 100644
--- a/lib/pstore.rb
+++ b/lib/pstore.rb
@@ -13,14 +13,14 @@ require "digest/md5"
require "thread"
#
-# PStore implements a file based persistance mechanism based on a Hash. User
+# PStore implements a file based persistence mechanism based on a Hash. User
# code can store hierarchies of Ruby objects (values) into the data store file
# by name (keys). An object hierarchy may be just a single object. User code
# may later read values back from the data store or even update data, as needed.
#
# The transactional behavior ensures that any changes succeed or fail together.
# This can be used to ensure that the data store is not left in a transitory
-# state, where some values were upated but others were not.
+# state, where some values were updated but others were not.
#
# Behind the scenes, Ruby objects are stored to the data store file with
# Marshal. That carries the usual limitations. Proc objects cannot be
diff --git a/lib/rake.rb b/lib/rake.rb
index b5924a1211..147d05c531 100755
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -72,7 +72,7 @@ end # module Module
#
class String
rake_extension("ext") do
- # Replace the file extension with +newext+. If there is no extenson on
+ # Replace the file extension with +newext+. If there is no extension on
# the string, append the new extension to the end. If the new extension
# is not given, or is the empty string, remove any existing extension.
#
@@ -145,7 +145,7 @@ class String
# * <b>%x</b> -- The file extension of the path. An empty string if there
# is no extension.
# * <b>%X</b> -- Everything *but* the file extension.
- # * <b>%s</b> -- The alternate file separater if defined, otherwise use
+ # * <b>%s</b> -- The alternate file separator if defined, otherwise use
# the standard file separator.
# * <b>%%</b> -- A percent sign.
#
@@ -160,8 +160,8 @@ class String
# 'a/b/c/d/file.txt'.pathmap("%-2d") => 'c/d'
#
# Also the %d, %p, $f, $n, %x, and %X operators can take a
- # pattern/replacement argument to perform simple string substititions on a
- # particular part of the path. The pattern and replacement are speparated
+ # pattern/replacement argument to perform simple string substitutions on a
+ # particular part of the path. The pattern and replacement are separated
# by a comma and are enclosed by curly braces. The replacement spec comes
# after the % character but before the operator letter. (e.g.
# "%{old,new}d"). Muliple replacement specs should be separated by
@@ -1029,7 +1029,7 @@ module RakeFileUtils
oldvalue
end
- # Use this function to prevent protentially destructive ruby code from
+ # Use this function to prevent potentially destructive ruby code from
# running when the :nowrite flag is set.
#
# Example:
@@ -1352,7 +1352,7 @@ module Rake
private :resolve_exclude
# Return a new FileList with the results of running +sub+ against each
- # element of the oringal list.
+ # element of the original list.
#
# Example:
# FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
@@ -1942,7 +1942,7 @@ module Rake
[name, args]
end
- # Provide standard execption handling for the given block.
+ # Provide standard exception handling for the given block.
def standard_exception_handling
begin
yield
diff --git a/lib/rdoc.rb b/lib/rdoc.rb
index d89ac1fde9..7aae05731f 100644
--- a/lib/rdoc.rb
+++ b/lib/rdoc.rb
@@ -20,7 +20,7 @@ $DEBUG_RDOC = nil
# * If you want to include extensions written in C, see RDoc::C_Parser
# * For information on the various markups available in comment blocks, see
# RDoc::Markup.
-# * If you want to drive RDoc programatically, see RDoc::RDoc.
+# * If you want to drive RDoc programmatically, see RDoc::RDoc.
# * If you want to use the library to format text blocks into HTML, have a look
# at RDoc::Markup.
# * If you want to try writing your own HTML output template, see
@@ -206,7 +206,7 @@ $DEBUG_RDOC = nil
# Stop and start adding new documentation elements to the current container.
# For example, if a class has a number of constants that you don't want to
# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
-# last. If you don't specifiy a +:startdoc:+ by the end of the container,
+# last. If you don't specify a +:startdoc:+ by the end of the container,
# disables documentation for the entire class or module.
#
# = Other stuff
diff --git a/lib/rdoc/README b/lib/rdoc/README
index cb00a5e355..f183c61f8d 100644
--- a/lib/rdoc/README
+++ b/lib/rdoc/README
@@ -17,7 +17,7 @@ document methods, classes, and so on.
* If you want to include extensions written in C, see RDoc::C_Parser
* For information on the various markups available in comment blocks, see
RDoc::Markup.
-* If you want to drive RDoc programatically, see RDoc::RDoc.
+* If you want to drive RDoc programmatically, see RDoc::RDoc.
* If you want to use the library to format text blocks into HTML, have a look
at RDoc::Markup.
* If you want to try writing your own HTML output template, see
@@ -196,7 +196,7 @@ Comment blocks can contain other directives:
Stop and start adding new documentation elements to the current container.
For example, if a class has a number of constants that you don't want to
document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
- last. If you don't specifiy a +:startdoc:+ by the end of the container,
+ last. If you don't specify a +:startdoc:+ by the end of the container,
disables documentation for the entire class or module.
= Other stuff
diff --git a/lib/rdoc/generator.rb b/lib/rdoc/generator.rb
index 322b25bf71..7c4ccf924a 100644
--- a/lib/rdoc/generator.rb
+++ b/lib/rdoc/generator.rb
@@ -7,12 +7,12 @@ require 'rdoc/template'
module RDoc::Generator
##
- # Name of sub-direcory that holds file descriptions
+ # Name of sub-directory that holds file descriptions
FILE_DIR = "files"
##
- # Name of sub-direcory that holds class descriptions
+ # Name of sub-directory that holds class descriptions
CLASS_DIR = "classes"
diff --git a/lib/rdoc/generator/html/html.rb b/lib/rdoc/generator/html/html.rb
index 8343454d30..63c83ee5fd 100644
--- a/lib/rdoc/generator/html/html.rb
+++ b/lib/rdoc/generator/html/html.rb
@@ -7,7 +7,7 @@ require 'rdoc/generator/html/one_page_html'
# This is a template for RDoc that uses XHTML 1.0 Transitional and dictates a
# bit more of the appearance of the output to cascading stylesheets than the
# default. It was designed for clean inline code display, and uses DHTMl to
-# toggle the visbility of each method's source with each click on the '[source]'
+# toggle the visibility of each method's source with each click on the '[source]'
# link.
#
# == Authors
diff --git a/lib/rdoc/generator/ri.rb b/lib/rdoc/generator/ri.rb
index 2452d79132..ea0bbeffcc 100644
--- a/lib/rdoc/generator/ri.rb
+++ b/lib/rdoc/generator/ri.rb
@@ -45,7 +45,7 @@ class RDoc::Generator::RI
def process_class(from_class)
generate_class_info(from_class)
- # now recure into this classes constituent classess
+ # now recurse into this classes constituent classes
from_class.each_classmodule do |mod|
process_class(mod)
end
diff --git a/lib/rdoc/markup.rb b/lib/rdoc/markup.rb
index fdd1a11736..0e1b596255 100644
--- a/lib/rdoc/markup.rb
+++ b/lib/rdoc/markup.rb
@@ -17,7 +17,7 @@ require 'rdoc'
# RDoc::Markup is intended to be the basis for a family of tools which share
# the common requirement that simple, plain-text should be rendered in a
# variety of different output formats and media. It is envisaged that
-# RDoc::Markup could be the basis for formating RDoc style comment blocks,
+# RDoc::Markup could be the basis for formatting RDoc style comment blocks,
# Wiki entries, and online FAQs.
#
# = Basic Formatting
@@ -129,7 +129,7 @@ require 'rdoc'
#
# You can extend the RDoc::Markup parser to recognise new markup
# sequences, and to add special processing for text that matches a
-# regular epxression. Here we make WikiWords significant to the parser,
+# regular expression. Here we make WikiWords significant to the parser,
# and also make the sequences {word} and \<no>text...</no> signify
# strike-through text. When then subclass the HTML output class to deal
# with these:
@@ -197,7 +197,7 @@ class RDoc::Markup
##
# Add to the sequences used to add formatting to an individual word (such
- # as *bold*). Matching entries will generate attibutes that the output
+ # as *bold*). Matching entries will generate attributes that the output
# formatters can recognize by their +name+.
def add_word_pair(start, stop, name)
diff --git a/lib/rdoc/markup/fragments.rb b/lib/rdoc/markup/fragments.rb
index 1765861ad0..99780de169 100644
--- a/lib/rdoc/markup/fragments.rb
+++ b/lib/rdoc/markup/fragments.rb
@@ -12,7 +12,7 @@ class RDoc::Markup
attr_accessor :type
######
- # This is a simple factory system that lets us associate fragement
+ # This is a simple factory system that lets us associate fragment
# types (a string) with a subclass of fragment
TYPE_MAP = {}
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb
index 8dc55a3f18..bc17fba8ad 100644
--- a/lib/rdoc/options.rb
+++ b/lib/rdoc/options.rb
@@ -571,7 +571,7 @@ Usage: #{opt.program_name} [options] [names...]
end
end
- # Check that the right version of 'dot' is available. Unfortuately this
+ # Check that the right version of 'dot' is available. Unfortunately this
# doesn't work correctly under Windows NT, so we'll bypass the test under
# Windows.
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb
index 5771250cb9..745ee7aedd 100644
--- a/lib/rdoc/parsers/parse_c.rb
+++ b/lib/rdoc/parsers/parse_c.rb
@@ -117,10 +117,10 @@ module RDoc
# method in the HTML output. This method must be in the same source file
# as the rb_define_method.
#
- # C classes can be diagramed (see /tc/dl/ruby/ruby/error.c), and RDoc
+ # C classes can be diagrammed (see /tc/dl/ruby/ruby/error.c), and RDoc
# integrates C and Ruby source into one tree
#
- # The comment blocks may include special direcives:
+ # The comment blocks may include special directives:
#
# [Document-class: <i>name</i>]
# This comment block is documentation for the given class. Use this
@@ -131,10 +131,10 @@ module RDoc
# automatically find the method from it's declaration
#
# [call-seq: <i>text up to an empty line</i>]
- # Because C source doesn't give descripive names to Ruby-level parameters,
+ # Because C source doesn't give descriptive names to Ruby-level parameters,
# you need to document the calling sequence explicitly
#
- # In additon, RDoc assumes by default that the C method implementing a
+ # In addition, RDoc assumes by default that the C method implementing a
# Ruby function is in the same source file as the rb_define_method call.
# If this isn't the case, add the comment
#
diff --git a/lib/rdoc/parsers/parse_f95.rb b/lib/rdoc/parsers/parse_f95.rb
index f3f6d76103..f1a1ae4d4b 100644
--- a/lib/rdoc/parsers/parse_f95.rb
+++ b/lib/rdoc/parsers/parse_f95.rb
@@ -201,7 +201,7 @@ module RDoc
@progress = $stderr unless options.quiet
end
- # devine code constructs
+ # define code constructs
def scan
# remove private comment
@@ -1065,7 +1065,7 @@ module RDoc
#
# If "all" argument is true, information of all arguments are returned.
# If "modified_params" is true, list of arguments are decorated,
- # for exameple, optional arguments are parenthetic as "[arg]".
+ # for example, optional arguments are parenthetic as "[arg]".
#
def find_arguments(args, text, all=nil, indent=nil, modified_params=nil)
return unless args || all
@@ -1143,8 +1143,8 @@ EOF
#
# Comments just after module or subprogram, or arguments are
- # returnd. If "COMMENTS_ARE_UPPER" is true, comments just before
- # modules or subprograms are returnd
+ # returned. If "COMMENTS_ARE_UPPER" is true, comments just before
+ # modules or subprograms are returned
#
def find_comments text
return "" unless text
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb
index 64f49c97c2..5e223bf779 100644
--- a/lib/rdoc/parsers/parse_rb.rb
+++ b/lib/rdoc/parsers/parse_rb.rb
@@ -8,7 +8,7 @@
# This file contains stuff stolen outright from:
#
# rtags.rb -
-# ruby-lex.rb - ruby lexcal analizer
+# ruby-lex.rb - ruby lexcal analyzer
# ruby-token.rb - ruby tokens
# by Keiju ISHITSUKA (Nippon Rational Inc.)
#
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index 38f6374764..81cae16bfd 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -134,7 +134,7 @@ module RDoc
# subdirectories.
#
# The effect of this is that if you want a file with a non-standard
- # extension parsed, you must name it explicity.
+ # extension parsed, you must name it explicitly.
def normalized_file_list(options, relative_files, force_doc = false,
exclude_pattern = nil)
diff --git a/lib/rdoc/ri/descriptions.rb b/lib/rdoc/ri/descriptions.rb
index adc3e7774b..0aef189025 100644
--- a/lib/rdoc/ri/descriptions.rb
+++ b/lib/rdoc/ri/descriptions.rb
@@ -83,7 +83,7 @@ class RDoc::RI::ModuleDescription < RDoc::RI::Description
attr_accessor :constants
attr_accessor :includes
- # merge in another class desscription into this one
+ # merge in another class description into this one
def merge_in(old)
merge(@class_methods, old.class_methods)
merge(@instance_methods, old.instance_methods)
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 33afad3365..cf3328ff19 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -252,7 +252,7 @@ class Resolv
end
##
- # Iterates over all hostnames for +address+ retrived from the hosts file.
+ # Iterates over all hostnames for +address+ retrieved from the hosts file.
def each_name(address, &proc)
lazy_initialize
@@ -2026,7 +2026,7 @@ class Resolv
end
##
- # A String reperesentation of this IPv4 address.
+ # A String representation of this IPv4 address.
##
# The raw IPv4 address as a String.
diff --git a/lib/rexml/attlistdecl.rb b/lib/rexml/attlistdecl.rb
index d4b5c38af6..ef4721b5ce 100644
--- a/lib/rexml/attlistdecl.rb
+++ b/lib/rexml/attlistdecl.rb
@@ -44,7 +44,7 @@ module REXML
@pairs.keys.include? key
end
- # Itterate over the key/value pairs:
+ # Iterate over the key/value pairs:
# attlist_decl.each { |attribute_name, attribute_value| ... }
def each(&block)
@pairs.each(&block)
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb
index f09aa2bc1c..029c042295 100644
--- a/lib/rexml/document.rb
+++ b/lib/rexml/document.rb
@@ -147,7 +147,7 @@ module REXML
# A controversial point is whether Document should always write the XML
# declaration (<?xml version='1.0'?>) whether or not one is given by the
# user (or source document). REXML does not write one if one was not
- # specified, because it adds unneccessary bandwidth to applications such
+ # specified, because it adds unnecessary bandwidth to applications such
# as XML-RPC.
#
# See also the classes in the rexml/formatters package for the proper way
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb
index ecd10de965..a1c01e7de7 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -360,7 +360,7 @@ module REXML
# Iterates through the children, yielding for each Element that
# has a particular text set.
# text::
- # the text to search for. If nil, or not supplied, will itterate
+ # the text to search for. If nil, or not supplied, will iterate
# over all +Element+ children that contain at least one +Text+ node.
# max::
# (optional) causes this method to return after yielding
@@ -1003,7 +1003,7 @@ module REXML
end
alias :size :length
- # Itterates over the attributes of an Element. Yields actual Attribute
+ # Iterates over the attributes of an Element. Yields actual Attribute
# nodes, not String values.
#
# doc = Document.new '<a x="1" y="2"/>'
@@ -1020,7 +1020,7 @@ module REXML
end
end
- # Itterates over each attribute of an Element, yielding the expanded name
+ # Iterates over each attribute of an Element, yielding the expanded name
# and value as a pair of Strings.
#
# doc = Document.new '<a x="1" y="2"/>'
diff --git a/lib/rexml/formatters/pretty.rb b/lib/rexml/formatters/pretty.rb
index 3666eddc96..296e607687 100644
--- a/lib/rexml/formatters/pretty.rb
+++ b/lib/rexml/formatters/pretty.rb
@@ -126,7 +126,7 @@ module REXML
end
def wrap(string, width)
- # Recursivly wrap string at width.
+ # Recursively wrap string at width.
return string if string.length <= width
place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
return string[0,place] + "\n" + wrap(string[place+1..-1], width)
diff --git a/lib/rexml/functions.rb b/lib/rexml/functions.rb
index b3c89877e5..fc9c4701c4 100644
--- a/lib/rexml/functions.rb
+++ b/lib/rexml/functions.rb
@@ -235,7 +235,7 @@ module REXML
# from string then we ignore the second &
# subsequent mappings
#
- # if a charactcer maps to nil then we delete it
+ # if a character maps to nil then we delete it
# in the output. This happens if the from
# string is longer than the to string
#
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb
index 8bc87dbf32..281b87890b 100644
--- a/lib/rexml/text.rb
+++ b/lib/rexml/text.rb
@@ -261,7 +261,7 @@ module REXML
end
def wrap(string, width, addnewline=false)
- # Recursivly wrap string at width.
+ # Recursively wrap string at width.
return string if string.length <= width
place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
if addnewline then
diff --git a/lib/rexml/xpath.rb b/lib/rexml/xpath.rb
index 939399e283..e8813efd3e 100644
--- a/lib/rexml/xpath.rb
+++ b/lib/rexml/xpath.rb
@@ -30,7 +30,7 @@ module REXML
parser.parse(path, element).flatten[0]
end
- # Itterates over nodes that match the given path, calling the supplied
+ # Iterates over nodes that match the given path, calling the supplied
# block with the match.
# element::
# The context element
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index 5b2d412451..f9ef3d1a52 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -19,7 +19,7 @@ module Rinda
# 1. A RingServer begins listening on the broadcast UDP address.
# 2. A RingFinger sends a UDP packet containing the DRb URI where it will
# listen for a reply.
- # 3. The RingServer recieves the UDP packet and connects back to the
+ # 3. The RingServer receives the UDP packet and connects back to the
# provided DRb URI with the DRb service.
class RingServer
@@ -119,7 +119,7 @@ module Rinda
end
##
- # Contains all discoverd TupleSpaces except for the primary.
+ # Contains all discovered TupleSpaces except for the primary.
def self.to_a
finger.to_a
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb
index 61ed617cc6..860764e6d5 100644
--- a/lib/rubygems/command.rb
+++ b/lib/rubygems/command.rb
@@ -342,7 +342,7 @@ module Gem
add_common_option('-V', '--[no-]verbose',
'Set the verbose level of output') do |value, options|
- # Set us to "really verbose" so the progess meter works
+ # Set us to "really verbose" so the progress meter works
if Gem.configuration.verbose and value then
Gem.configuration.verbose = 1
else
diff --git a/lib/rubygems/command_manager.rb b/lib/rubygems/command_manager.rb
index 299b5213cc..ee55d5a200 100644
--- a/lib/rubygems/command_manager.rb
+++ b/lib/rubygems/command_manager.rb
@@ -16,7 +16,7 @@ module Gem
class CommandManager
include UserInteraction
- # Return the authoratative instance of the command manager.
+ # Return the authoritative instance of the command manager.
def self.instance
@command_manager ||= CommandManager.new
end
@@ -69,7 +69,7 @@ module Gem
@commands.keys.collect {|key| key.to_s}.sort
end
- # Run the config specificed by +args+.
+ # Run the config specified by +args+.
def run(args)
process_args(args)
rescue StandardError, Timeout::Error => ex
diff --git a/lib/rubygems/commands/cert_command.rb b/lib/rubygems/commands/cert_command.rb
index 2c32099254..f5b698855b 100644
--- a/lib/rubygems/commands/cert_command.rb
+++ b/lib/rubygems/commands/cert_command.rb
@@ -19,7 +19,7 @@ class Gem::Commands::CertCommand < Gem::Command
Dir::glob(glob_str) do |path|
begin
cert = OpenSSL::X509::Certificate.new(File.read(path))
- # this could proably be formatted more gracefully
+ # this could probably be formatted more gracefully
say cert.subject.to_s
rescue OpenSSL::X509::CertificateError
next
diff --git a/lib/rubygems/dependency_installer.rb b/lib/rubygems/dependency_installer.rb
index 57ac631031..7ea2c0c317 100644
--- a/lib/rubygems/dependency_installer.rb
+++ b/lib/rubygems/dependency_installer.rb
@@ -53,8 +53,8 @@ class Gem::DependencyInstaller
##
# Returns a list of pairs of gemspecs and source_uris that match
# Gem::Dependency +dep+ from both local (Dir.pwd) and remote (Gem.sources)
- # sources. Gems are sorted with newer gems prefered over older gems, and
- # local gems prefered over remote gems.
+ # sources. Gems are sorted with newer gems preferred over older gems, and
+ # local gems preferred over remote gems.
def find_gems_with_sources(dep)
gems_and_sources = []
diff --git a/lib/rubygems/gem_openssl.rb b/lib/rubygems/gem_openssl.rb
index 17e7d0f2bf..1456f2d7ce 100644
--- a/lib/rubygems/gem_openssl.rb
+++ b/lib/rubygems/gem_openssl.rb
@@ -17,7 +17,7 @@ module Gem
@ssl_available
end
- # Set the value of the ssl_avilable flag.
+ # Set the value of the ssl_available flag.
attr_writer :ssl_available
# Ensure that SSL is available. Throw an exception if it is not.
diff --git a/lib/rubygems/requirement.rb b/lib/rubygems/requirement.rb
index 209bd432f0..f1213152f2 100644
--- a/lib/rubygems/requirement.rb
+++ b/lib/rubygems/requirement.rb
@@ -108,7 +108,7 @@ class Gem::Requirement
end
##
- # Is the requirement satifised by +version+.
+ # Is the requirement satisfied by +version+.
#
# version:: [Gem::Version] the version to compare against
# return:: [Boolean] true if this requirement is satisfied by
diff --git a/lib/rubygems/security.rb b/lib/rubygems/security.rb
index 345d36bbd3..abf3cf4a6a 100644
--- a/lib/rubygems/security.rb
+++ b/lib/rubygems/security.rb
@@ -557,7 +557,7 @@ module Gem::Security
#
# Medium security policy: verify the signing certificate, verify the signing
# certificate chain all the way to the root certificate, and only trust root
- # certificates that we have explicity allowed trust for.
+ # certificates that we have explicitly allowed trust for.
#
# This security policy is reasonable, but it allows unsigned packages, so a
# malicious person could simply delete the package signature and pass the
@@ -576,7 +576,7 @@ module Gem::Security
# High security policy: only allow signed gems to be installed, verify the
# signing certificate, verify the signing certificate chain all the way to
# the root certificate, and only trust root certificates that we have
- # explicity allowed trust for.
+ # explicitly allowed trust for.
#
# This security policy is significantly more difficult to bypass, and offers
# a reasonable guarantee that the contents of the gem have not been altered.
diff --git a/lib/rubygems/server.rb b/lib/rubygems/server.rb
index e2e10a0ad9..b4f58f9706 100644
--- a/lib/rubygems/server.rb
+++ b/lib/rubygems/server.rb
@@ -9,7 +9,7 @@ require 'rubygems'
# Gem::Server and allows users to serve gems for consumption by
# `gem --remote-install`.
#
-# gem_server starts an HTTP server on the given port and serves the folowing:
+# gem_server starts an HTTP server on the given port and serves the following:
# * "/" - Browsing of gem spec files for installed gems
# * "/Marshal" - Full SourceIndex dump of metadata for installed gems
# * "/yaml" - YAML dump of metadata for installed gems - deprecated
diff --git a/lib/rubygems/source_info_cache.rb b/lib/rubygems/source_info_cache.rb
index 4d69d88c89..ec6928c00d 100644
--- a/lib/rubygems/source_info_cache.rb
+++ b/lib/rubygems/source_info_cache.rb
@@ -8,7 +8,7 @@ require 'rubygems/user_interaction'
# SourceInfoCache stores a copy of the gem index for each gem source.
#
# There are two possible cache locations, the system cache and the user cache:
-# * The system cache is prefered if it is writable or can be created.
+# * The system cache is preferred if it is writable or can be created.
# * The user cache is used otherwise
#
# Once a cache is selected, it will be used for all operations.
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index de37a08b60..c50910aeb4 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -40,7 +40,7 @@ module Gem
# Allows deinstallation of gems with legacy platforms.
attr_accessor :original_platform # :nodoc:
- # ------------------------- Specification version contstants.
+ # ------------------------- Specification version constants.
# The the version number of a specification that does not specify one
# (i.e. RubyGems 0.7 or earlier).
diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb
index ffccb60314..8d27df8768 100644
--- a/lib/rubygems/user_interaction.rb
+++ b/lib/rubygems/user_interaction.rb
@@ -17,7 +17,7 @@ module Gem
DefaultUserInteraction.ui
end
- # Set the default UI. If the default UI is never explicity set, a
+ # Set the default UI. If the default UI is never explicitly set, a
# simple console based UserInteraction will be used automatically.
def ui=(new_ui)
DefaultUserInteraction.ui = new_ui
@@ -182,7 +182,7 @@ module Gem
ask(question) if question
end
- # Terminate the appliation normally, running any exit handlers
+ # Terminate the application normally, running any exit handlers
# that might have been defined.
def terminate_interaction(status = 0)
raise Gem::SystemExitException, status
diff --git a/lib/shell.rb b/lib/shell.rb
index 6a239679a8..6a64cb263f 100644
--- a/lib/shell.rb
+++ b/lib/shell.rb
@@ -79,7 +79,7 @@ class Shell
@default_record_separator = rs
end
- # os resource mutecs
+ # os resource mutex
mutex_methods = ["unlock", "lock", "locked?", "synchronize", "try_lock", "exclusive_unlock"]
for m in mutex_methods
def_delegator("@debug_output_mutex", m, "debug_output_"+m.to_s)
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb
index 083a5dca9d..4f28e018ad 100644
--- a/lib/shell/process-controller.rb
+++ b/lib/shell/process-controller.rb
@@ -84,7 +84,7 @@ class Shell
end
end
- # for shell-command complete finish at this prosess exit.
+ # for shell-command complete finish at this process exit.
USING_AT_EXIT_WHEN_PROCESS_EXIT = true
at_exit do
wait_to_finish_all_process_controllers unless $@
diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb
index 49e618d4e6..29ee1057e9 100644
--- a/lib/webrick/httpproxy.rb
+++ b/lib/webrick/httpproxy.rb
@@ -186,7 +186,7 @@ module WEBrick
private
- # Some header fields shuold not be transfered.
+ # Some header fields should not be transferred.
HopByHop = %w( connection keep-alive proxy-authenticate upgrade
proxy-authorization te trailers transfer-encoding )
ShouldNotTransfer = %w( set-cookie proxy-connection )
@@ -272,7 +272,7 @@ module WEBrick
response = yield(http, path, header)
end
- # Persistent connction requirements are mysterious for me.
+ # Persistent connection requirements are mysterious for me.
# So I will close the connection in every response.
res['proxy-connection'] = "close"
res['connection'] = "close"
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
index 5c580ffb68..301ecb8372 100644
--- a/lib/webrick/httpresponse.rb
+++ b/lib/webrick/httpresponse.rb
@@ -131,7 +131,7 @@ module WEBrick
end
end
- # Determin the message length (RFC2616 -- 4.4 Message Length)
+ # Determine the message length (RFC2616 -- 4.4 Message Length)
if @status == 304 || @status == 204 || HTTPStatus::info?(@status)
@header.delete('content-length')
@body = ""