[PATCH] Massive speeling correcton.

View: New views
5 Messages — Rating Filter:   Alert me  

[PATCH] Massive speeling correcton.

by Evan Farrar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for all the traffic on this list today,

I went through trunk and found a large number of misspellings by using
a script. Only about half of the files I changed exist on ruby 1_8_7,
so I have attached a smaller diff for 1_8_7.

CAVEAT: I edited all comments without discrimination, not specifically
comments that are parsed by RDoc. If this is a problem I would be
perfectly willing to eliminate everything but the documentation
changes from my diff.

I would like to thank Evan Weaver for the (updated) raspell library!
Good Night

[rdoc_massive_spelling_correction.diff]

Index: lib/rdoc.rb
===================================================================
--- lib/rdoc.rb (revision 16771)
+++ lib/rdoc.rb (working copy)
@@ -20,7 +20,7 @@
 # * 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 @@
 #   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
Index: lib/forwardable.rb
===================================================================
--- lib/forwardable.rb (revision 16771)
+++ lib/forwardable.rb (working copy)
@@ -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
 #    
Index: lib/shell.rb
===================================================================
--- lib/shell.rb (revision 16771)
+++ lib/shell.rb (working copy)
@@ -79,7 +79,7 @@
       @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)
Index: lib/resolv.rb
===================================================================
--- lib/resolv.rb (revision 16771)
+++ lib/resolv.rb (working copy)
@@ -252,7 +252,7 @@
     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 @@
     end
 
     ##
-    # A String reperesentation of this IPv4 address.
+    # A String representation of this IPv4 address.
 
     ##
     # The raw IPv4 address as a String.
Index: lib/webrick/httpproxy.rb
===================================================================
--- lib/webrick/httpproxy.rb (revision 16771)
+++ lib/webrick/httpproxy.rb (working copy)
@@ -186,7 +186,7 @@
 
     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 @@
         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"
Index: lib/webrick/httpresponse.rb
===================================================================
--- lib/webrick/httpresponse.rb (revision 16771)
+++ lib/webrick/httpresponse.rb (working copy)
@@ -131,7 +131,7 @@
         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 = ""
Index: lib/rexml/document.rb
===================================================================
--- lib/rexml/document.rb (revision 16771)
+++ lib/rexml/document.rb (working copy)
@@ -147,7 +147,7 @@
     # 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
Index: lib/rexml/xpath.rb
===================================================================
--- lib/rexml/xpath.rb (revision 16771)
+++ lib/rexml/xpath.rb (working copy)
@@ -30,7 +30,7 @@
  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
Index: lib/rexml/element.rb
===================================================================
--- lib/rexml/element.rb (revision 16771)
+++ lib/rexml/element.rb (working copy)
@@ -360,7 +360,7 @@
     # 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 @@
     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 @@
       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"/>'
Index: lib/rexml/functions.rb
===================================================================
--- lib/rexml/functions.rb (revision 16771)
+++ lib/rexml/functions.rb (working copy)
@@ -235,7 +235,7 @@
       # 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
       #
Index: lib/rexml/formatters/pretty.rb
===================================================================
--- lib/rexml/formatters/pretty.rb (revision 16771)
+++ lib/rexml/formatters/pretty.rb (working copy)
@@ -126,7 +126,7 @@
       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)
Index: lib/rexml/text.rb
===================================================================
--- lib/rexml/text.rb (revision 16771)
+++ lib/rexml/text.rb (working copy)
@@ -261,7 +261,7 @@
     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
Index: lib/rexml/attlistdecl.rb
===================================================================
--- lib/rexml/attlistdecl.rb (revision 16771)
+++ lib/rexml/attlistdecl.rb (working copy)
@@ -44,7 +44,7 @@
  @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)
Index: lib/csv.rb
===================================================================
--- lib/csv.rb (revision 16771)
+++ lib/csv.rb (working copy)
@@ -813,7 +813,7 @@
   # <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 @@
   # 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 @@
   #                                       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 @@
 
     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
Index: lib/rubygems/user_interaction.rb
===================================================================
--- lib/rubygems/user_interaction.rb (revision 16771)
+++ lib/rubygems/user_interaction.rb (working copy)
@@ -17,7 +17,7 @@
       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 @@
       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
Index: lib/rubygems/command.rb
===================================================================
--- lib/rubygems/command.rb (revision 16771)
+++ lib/rubygems/command.rb (working copy)
@@ -342,7 +342,7 @@
 
     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
Index: lib/rubygems/dependency_installer.rb
===================================================================
--- lib/rubygems/dependency_installer.rb (revision 16771)
+++ lib/rubygems/dependency_installer.rb (working copy)
@@ -53,8 +53,8 @@
   ##
   # 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 = []
 
Index: lib/rubygems/specification.rb
===================================================================
--- lib/rubygems/specification.rb (revision 16771)
+++ lib/rubygems/specification.rb (working copy)
@@ -40,7 +40,7 @@
     # 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).
Index: lib/rubygems/source_info_cache.rb
===================================================================
--- lib/rubygems/source_info_cache.rb (revision 16771)
+++ lib/rubygems/source_info_cache.rb (working copy)
@@ -8,7 +8,7 @@
 # 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.
Index: lib/rubygems/commands/cert_command.rb
===================================================================
--- lib/rubygems/commands/cert_command.rb (revision 16771)
+++ lib/rubygems/commands/cert_command.rb (working copy)
@@ -19,7 +19,7 @@
       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
Index: lib/rubygems/requirement.rb
===================================================================
--- lib/rubygems/requirement.rb (revision 16771)
+++ lib/rubygems/requirement.rb (working copy)
@@ -108,7 +108,7 @@
   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
Index: lib/rubygems/server.rb
===================================================================
--- lib/rubygems/server.rb (revision 16771)
+++ lib/rubygems/server.rb (working copy)
@@ -9,7 +9,7 @@
 # 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
Index: lib/rubygems/security.rb
===================================================================
--- lib/rubygems/security.rb (revision 16771)
+++ lib/rubygems/security.rb (working copy)
@@ -557,7 +557,7 @@
   #
   # 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 @@
   # 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.
Index: lib/rubygems/command_manager.rb
===================================================================
--- lib/rubygems/command_manager.rb (revision 16771)
+++ lib/rubygems/command_manager.rb (working copy)
@@ -16,7 +16,7 @@
   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 @@
       @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
Index: lib/rubygems/gem_openssl.rb
===================================================================
--- lib/rubygems/gem_openssl.rb (revision 16771)
+++ lib/rubygems/gem_openssl.rb (working copy)
@@ -17,7 +17,7 @@
       @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.
Index: lib/pathname.rb
===================================================================
--- lib/pathname.rb (revision 16771)
+++ lib/pathname.rb (working copy)
@@ -262,7 +262,7 @@
     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.
Index: lib/open-uri.rb
===================================================================
--- lib/open-uri.rb (revision 16771)
+++ lib/open-uri.rb (working copy)
@@ -657,7 +657,7 @@
     # :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)
Index: lib/irb/notifier.rb
===================================================================
--- lib/irb/notifier.rb (revision 16771)
+++ lib/irb/notifier.rb (working copy)
@@ -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@...)
Index: lib/irb/help.rb
===================================================================
--- lib/irb/help.rb (revision 16771)
+++ lib/irb/help.rb (working copy)
@@ -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@...)
Index: lib/irb/extend-command.rb
===================================================================
--- lib/irb/extend-command.rb (revision 16771)
+++ lib/irb/extend-command.rb (working copy)
@@ -111,7 +111,7 @@
       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
Index: lib/irb/ruby-lex.rb
===================================================================
--- lib/irb/ruby-lex.rb (revision 16771)
+++ lib/irb/ruby-lex.rb (working copy)
@@ -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@...)
Index: lib/irb/slex.rb
===================================================================
--- lib/irb/slex.rb (revision 16771)
+++ lib/irb/slex.rb (working copy)
@@ -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@...)
Index: lib/delegate.rb
===================================================================
--- lib/delegate.rb (revision 16771)
+++ lib/delegate.rb (working copy)
@@ -264,7 +264,7 @@
 # your class.
 #
 #   class MyClass < DelegateClass( ClassToDelegateTo )    # Step 1
-#     def initiaize
+#     def initialize
 #       super(obj_of_ClassToDelegateTo)                   # Step 2
 #     end
 #   end
Index: lib/pstore.rb
===================================================================
--- lib/pstore.rb (revision 16771)
+++ lib/pstore.rb (working copy)
@@ -13,14 +13,14 @@
 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
Index: lib/logger.rb
===================================================================
--- lib/logger.rb (revision 16771)
+++ lib/logger.rb (working copy)
@@ -1,4 +1,4 @@
-# logger.rb - saimple logging utility
+# logger.rb - simple logging utility
 # Copyright (C) 2000-2003, 2005  NAKAMURA, Hiroshi <nakahiro@...>.
 
 require 'monitor'
Index: lib/rdoc/parsers/parse_f95.rb
===================================================================
--- lib/rdoc/parsers/parse_f95.rb (revision 16771)
+++ lib/rdoc/parsers/parse_f95.rb (working copy)
@@ -201,7 +201,7 @@
       @progress = $stderr unless options.quiet
     end
 
-    # devine code constructs
+    # define code constructs
     def scan
 
       # remove private comment
@@ -1065,7 +1065,7 @@
     #
     # 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 @@
 
     #
     # 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
Index: lib/rdoc/parsers/parse_rb.rb
===================================================================
--- lib/rdoc/parsers/parse_rb.rb (revision 16771)
+++ lib/rdoc/parsers/parse_rb.rb (working copy)
@@ -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.)
 #
Index: lib/rdoc/parsers/parse_c.rb
===================================================================
--- lib/rdoc/parsers/parse_c.rb (revision 16771)
+++ lib/rdoc/parsers/parse_c.rb (working copy)
@@ -117,10 +117,10 @@
   # 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 @@
   #   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
   #
Index: lib/rdoc/generator/html/html.rb
===================================================================
--- lib/rdoc/generator/html/html.rb (revision 16771)
+++ lib/rdoc/generator/html/html.rb (working copy)
@@ -7,7 +7,7 @@
 # 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
Index: lib/rdoc/generator/ri.rb
===================================================================
--- lib/rdoc/generator/ri.rb (revision 16771)
+++ lib/rdoc/generator/ri.rb (working copy)
@@ -45,7 +45,7 @@
   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
Index: lib/rdoc/generator.rb
===================================================================
--- lib/rdoc/generator.rb (revision 16771)
+++ lib/rdoc/generator.rb (working copy)
@@ -7,12 +7,12 @@
 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"
 
Index: lib/rdoc/rdoc.rb
===================================================================
--- lib/rdoc/rdoc.rb (revision 16771)
+++ lib/rdoc/rdoc.rb (working copy)
@@ -134,7 +134,7 @@
     # 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)
Index: lib/rdoc/options.rb
===================================================================
--- lib/rdoc/options.rb (revision 16771)
+++ lib/rdoc/options.rb (working copy)
@@ -571,7 +571,7 @@
     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.
 
Index: lib/rdoc/README
===================================================================
--- lib/rdoc/README (revision 16771)
+++ lib/rdoc/README (working copy)
@@ -17,7 +17,7 @@
 * 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 @@
   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
Index: lib/rdoc/markup/fragments.rb
===================================================================
--- lib/rdoc/markup/fragments.rb (revision 16771)
+++ lib/rdoc/markup/fragments.rb (working copy)
@@ -12,7 +12,7 @@
     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 = {}
Index: lib/rdoc/markup.rb
===================================================================
--- lib/rdoc/markup.rb (revision 16771)
+++ lib/rdoc/markup.rb (working copy)
@@ -17,7 +17,7 @@
 # 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 @@
 #
 # 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 @@
 
   ##
   # 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)
Index: lib/rdoc/ri/descriptions.rb
===================================================================
--- lib/rdoc/ri/descriptions.rb (revision 16771)
+++ lib/rdoc/ri/descriptions.rb (working copy)
@@ -83,7 +83,7 @@
   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)
Index: lib/optparse.rb
===================================================================
--- lib/optparse.rb (revision 16771)
+++ lib/optparse.rb (working copy)
@@ -826,7 +826,7 @@
   #
   # 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 @@
   #     "-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]"
Index: lib/cgi/session/pstore.rb
===================================================================
--- lib/cgi/session/pstore.rb (revision 16771)
+++ lib/cgi/session/pstore.rb (working copy)
@@ -30,7 +30,7 @@
       # 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
Index: lib/cgi/session.rb
===================================================================
--- lib/cgi/session.rb (revision 16771)
+++ lib/cgi/session.rb (working copy)
@@ -230,7 +230,7 @@
     # 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 @@
       # 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
Index: lib/shell/process-controller.rb
===================================================================
--- lib/shell/process-controller.rb (revision 16771)
+++ lib/shell/process-controller.rb (working copy)
@@ -84,7 +84,7 @@
       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 $@
Index: lib/erb.rb
===================================================================
--- lib/erb.rb (revision 16771)
+++ lib/erb.rb (working copy)
@@ -658,7 +658,7 @@
   #    
   #    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] %>
Index: lib/rake.rb
===================================================================
--- lib/rake.rb (revision 16771)
+++ lib/rake.rb (working copy)
@@ -72,7 +72,7 @@
 #
 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 @@
     # * <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 @@
     #   '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 @@
     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 @@
     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 @@
       [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
Index: lib/net/https.rb
===================================================================
--- lib/net/https.rb (revision 16771)
+++ lib/net/https.rb (working copy)
@@ -65,11 +65,11 @@
 
 : 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.
Index: lib/net/imap.rb
===================================================================
--- lib/net/imap.rb (revision 16771)
+++ lib/net/imap.rb (working copy)
@@ -3243,7 +3243,7 @@
  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
Index: lib/rinda/ring.rb
===================================================================
--- lib/rinda/ring.rb (revision 16771)
+++ lib/rinda/ring.rb (working copy)
@@ -19,7 +19,7 @@
   # 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 @@
     end
 
     ##
-    # Contains all discoverd TupleSpaces except for the primary.
+    # Contains all discovered TupleSpaces except for the primary.
 
     def self.to_a
       finger.to_a
Index: missing/vsnprintf.c
===================================================================
--- missing/vsnprintf.c (revision 16771)
+++ missing/vsnprintf.c (working copy)
@@ -560,7 +560,7 @@
 
  /*
  * Choose PADSIZE to trade efficiency vs. size.  If larger printf
- * fields occur frequently, increase PADSIZE and make the initialisers
+ * fields occur frequently, increase PADSIZE and make the initializers
  * below longer.
  */
 #define PADSIZE 16 /* pad chunk size */


[rdoc_massive_spelling_correction_1_8_7.diff]

Index: lib/forwardable.rb
===================================================================
--- lib/forwardable.rb (revision 16771)
+++ lib/forwardable.rb (working copy)
@@ -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
 #    
Index: lib/resolv.rb
===================================================================
--- lib/resolv.rb (revision 16771)
+++ lib/resolv.rb (working copy)
@@ -252,7 +252,7 @@
     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
@@ -2015,7 +2015,7 @@
     end
 
     ##
-    # A String reperesentation of this IPv4 address.
+    # A String representation of this IPv4 address.
 
     ##
     # The raw IPv4 address as a String.
Index: lib/webrick/httpproxy.rb
===================================================================
--- lib/webrick/httpproxy.rb (revision 16771)
+++ lib/webrick/httpproxy.rb (working copy)
@@ -47,7 +47,7 @@
       req.header.delete("proxy-authorization")
     end
 
-    # 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 )
Index: lib/webrick/httpresponse.rb
===================================================================
--- lib/webrick/httpresponse.rb (revision 16771)
+++ lib/webrick/httpresponse.rb (working copy)
@@ -132,7 +132,7 @@
         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 = ""
Index: lib/rexml/document.rb
===================================================================
--- lib/rexml/document.rb (revision 16771)
+++ lib/rexml/document.rb (working copy)
@@ -147,7 +147,7 @@
     # 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
Index: lib/rexml/xpath.rb
===================================================================
--- lib/rexml/xpath.rb (revision 16771)
+++ lib/rexml/xpath.rb (working copy)
@@ -30,7 +30,7 @@
  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
Index: lib/rexml/element.rb
===================================================================
--- lib/rexml/element.rb (revision 16771)
+++ lib/rexml/element.rb (working copy)
@@ -360,7 +360,7 @@
     # 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
@@ -989,7 +989,7 @@
     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"/>'
@@ -1006,7 +1006,7 @@
       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"/>'
Index: lib/rexml/functions.rb
===================================================================
--- lib/rexml/functions.rb (revision 16771)
+++ lib/rexml/functions.rb (working copy)
@@ -235,7 +235,7 @@
       # 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
       #
Index: lib/rexml/formatters/pretty.rb
===================================================================
--- lib/rexml/formatters/pretty.rb (revision 16771)
+++ lib/rexml/formatters/pretty.rb (working copy)
@@ -125,7 +125,7 @@
       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)
Index: lib/rexml/text.rb
===================================================================
--- lib/rexml/text.rb (revision 16771)
+++ lib/rexml/text.rb (working copy)
@@ -189,7 +189,7 @@
     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
Index: lib/rexml/attlistdecl.rb
===================================================================
--- lib/rexml/attlistdecl.rb (revision 16771)
+++ lib/rexml/attlistdecl.rb (working copy)
@@ -44,7 +44,7 @@
  @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)
Index: lib/delegate.rb
===================================================================
--- lib/delegate.rb (revision 16771)
+++ lib/delegate.rb (working copy)
@@ -250,7 +250,7 @@
 # your class.
 #
 #   class MyClass < DelegateClass( ClassToDelegateTo )    # Step 1
-#     def initiaize
+#     def initialize
 #       super(obj_of_ClassToDelegateTo)                   # Step 2
 #     end
 #   end
Index: lib/irb/notifier.rb
===================================================================
--- lib/irb/notifier.rb (revision 16771)
+++ lib/irb/notifier.rb (working copy)
@@ -1,5 +1,5 @@
 #
-#   notifier.rb - optput methods used by irb
+#   notifier.rb - output methods used by irb
 #   $Release Version: 0.9.5$
 #   $Revision$
 #   $Date$
Index: lib/irb/help.rb
===================================================================
--- lib/irb/help.rb (revision 16771)
+++ lib/irb/help.rb (working copy)
@@ -1,5 +1,5 @@
 #
-#   irb/help.rb - print usase module
+#   irb/help.rb - print usage module
 #   $Release Version: 0.9.5$
 #   $Revision$
 #   $Date$
Index: lib/irb/extend-command.rb
===================================================================
--- lib/irb/extend-command.rb (revision 16771)
+++ lib/irb/extend-command.rb (working copy)
@@ -112,7 +112,7 @@
       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
Index: lib/irb/ruby-lex.rb
===================================================================
--- lib/irb/ruby-lex.rb (revision 16771)
+++ lib/irb/ruby-lex.rb (working copy)
@@ -1,5 +1,5 @@
 #
-#   irb/ruby-lex.rb - ruby lexcal analizer
+#   irb/ruby-lex.rb - ruby lexcal analyzer
 #   $Release Version: 0.9.5$
 #   $Revision$
 #   $Date$
Index: lib/irb/slex.rb
===================================================================
--- lib/irb/slex.rb (revision 16771)
+++ lib/irb/slex.rb (working copy)
@@ -1,5 +1,5 @@
 #
-#   irb/slex.rb - symple lex analizer
+#   irb/slex.rb - simple lex analyzer
 #   $Release Version: 0.9.5$
 #   $Revision$
 #   $Date$
Index: lib/pstore.rb
===================================================================
--- lib/pstore.rb (revision 16771)
+++ lib/pstore.rb (working copy)
@@ -11,14 +11,14 @@
 require "digest/md5"
 
 #
-# 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
Index: lib/logger.rb
===================================================================
--- lib/logger.rb (revision 16771)
+++ lib/logger.rb (working copy)
@@ -1,4 +1,4 @@
-# logger.rb - saimple logging utility
+# logger.rb - simple logging utility
 # Copyright (C) 2000-2003, 2005  NAKAMURA, Hiroshi <nakahiro@...>.
 
 require 'monitor'
Index: lib/rdoc/parsers/parse_f95.rb
===================================================================
--- lib/rdoc/parsers/parse_f95.rb (revision 16771)
+++ lib/rdoc/parsers/parse_f95.rb (working copy)
@@ -201,7 +201,7 @@
       @progress = $stderr unless options.quiet
     end
 
-    # devine code constructs
+    # define code constructs
     def scan
 
       # remove private comment
@@ -1065,7 +1065,7 @@
     #
     # 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 @@
 
     #
     # 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
Index: lib/rdoc/parsers/parse_c.rb
===================================================================
--- lib/rdoc/parsers/parse_c.rb (revision 16771)
+++ lib/rdoc/parsers/parse_c.rb (working copy)
@@ -117,10 +117,10 @@
   # 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 @@
   #   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
   #
Index: lib/optparse.rb
===================================================================
--- lib/optparse.rb (revision 16771)
+++ lib/optparse.rb (working copy)
@@ -826,7 +826,7 @@
   #
   # 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 @@
   #     "-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]"
Index: lib/cgi/session/pstore.rb
===================================================================
--- lib/cgi/session/pstore.rb (revision 16771)
+++ lib/cgi/session/pstore.rb (working copy)
@@ -30,7 +30,7 @@
       # 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
Index: lib/cgi/session.rb
===================================================================
--- lib/cgi/session.rb (revision 16771)
+++ lib/cgi/session.rb (working copy)
@@ -230,7 +230,7 @@
     # 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 @@
       # 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
Index: lib/erb.rb
===================================================================
--- lib/erb.rb (revision 16771)
+++ lib/erb.rb (working copy)
@@ -656,7 +656,7 @@
   #    
   #    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] %>
Index: lib/net/https.rb
===================================================================
--- lib/net/https.rb (revision 16771)
+++ lib/net/https.rb (working copy)
@@ -65,11 +65,11 @@
 
 : 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.
Index: lib/rinda/ring.rb
===================================================================
--- lib/rinda/ring.rb (revision 16771)
+++ lib/rinda/ring.rb (working copy)
@@ -19,7 +19,7 @@
   # 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 @@
     end
 
     ##
-    # Contains all discoverd TupleSpaces except for the primary.
+    # Contains all discovered TupleSpaces except for the primary.
 
     def self.to_a
       finger.to_a
Index: missing/vsnprintf.c
===================================================================
--- missing/vsnprintf.c (revision 16771)
+++ missing/vsnprintf.c (working copy)
@@ -496,7 +496,7 @@
 
  /*
  * Choose PADSIZE to trade efficiency vs. size.  If larger printf
- * fields occur frequently, increase PADSIZE and make the initialisers
+ * fields occur frequently, increase PADSIZE and make the initializers
  * below longer.
  */
 #define PADSIZE 16 /* pad chunk size */


Re: [PATCH] Massive speeling correcton.

by Yukihiro Matsumoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

In message "Re: [PATCH] Massive speeling correcton."
    on Tue, 3 Jun 2008 00:24:54 -0500, "Evan Farrar" <evanfarrar@...> writes:

|I went through trunk and found a large number of misspellings by using
|a script. Only about half of the files I changed exist on ruby 1_8_7,
|so I have attached a smaller diff for 1_8_7.

Thank you for the patch.  I applied both patches.

                                                        matz.


Re: [PATCH] Massive speeling correcton.

by Dana Merrick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Evan Farrar wrote:
 > I went through trunk and found a large number of misspellings by using
 > a script. Only about half of the files I changed exist on ruby 1_8_7,
 > so I have attached a smaller diff for 1_8_7.

I have a similar project where I have to check spelling on a bunch of source
code files before we launch; is there any chance I could get a copy of you
spellcheck app?

Thanks in advance,
-Dana


--
Dana Merrick - System Administrator
Integrated Computer Solutions, Inc.
54B Middlesex Tpke, Bedford, MA 01730
617.621.0060 x112 - http://www.ics.com



signature.asc (201 bytes) Download Attachment

Re: [PATCH] Massive speeling correcton.

by Evan Farrar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Of course you can! It's quite ugly though, I basically just compiled
the list of misspelled words, and then scanned through, grepping for
any words that piqued my interest. There will be a lot of false
positives. With a codebase this large I was only trying to cast a wide
net, not a fine-toothed comb.

You could probably come up with something prettier after glancing at
the raspell docs:
http://blog.evanweaver.com/files/doc/fauna/raspell/files/README.html

Cheers!

On Tue, Jun 24, 2008 at 1:51 PM, Dana Merrick <dmerrick@...> wrote:

> Evan Farrar wrote:
>> I went through trunk and found a large number of misspellings by using
>> a script. Only about half of the files I changed exist on ruby 1_8_7,
>> so I have attached a smaller diff for 1_8_7.
>
> I have a similar project where I have to check spelling on a bunch of source
> code files before we launch; is there any chance I could get a copy of you
> spellcheck app?
>
> Thanks in advance,
> -Dana
>
>
> --
> Dana Merrick - System Administrator
> Integrated Computer Solutions, Inc.
> 54B Middlesex Tpke, Bedford, MA 01730
> 617.621.0060 x112 - http://www.ics.com
>
>


rdoc_spellchecker.rb (1K) Download Attachment

Re: [PATCH] Massive speeling correcton.

by Dana Merrick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much for your prompt reply. You're the best!

-Dana


--
Dana Merrick - System Administrator
Integrated Computer Solutions, Inc.
54B Middlesex Tpke, Bedford, MA 01730
617.621.0060 x112 - http://www.ics.com



signature.asc (201 bytes) Download Attachment