From 6c30c6be3a0fd842e7c2c0c1b8c89334b927851c Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 18 Apr 2004 23:20:33 +0000 Subject: * dln.c, io.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb, lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb, lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb, lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb, lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb, lib/rinda/tuplespace.rb, lib/shell/command-processor.rb, lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb, lib/test/unit/testsuite.rb: typo fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/benchmark.rb | 14 +++++++------- lib/cgi.rb | 8 ++++---- lib/csv.rb | 6 +++--- lib/date.rb | 8 ++++---- lib/drb/drb.rb | 4 ++-- lib/ftools.rb | 2 +- lib/getoptlong.rb | 12 ++++++------ lib/irb/workspace.rb | 2 +- lib/logger.rb | 4 ++-- lib/matrix.rb | 6 +++--- lib/monitor.rb | 2 +- lib/net/ftp.rb | 2 +- lib/net/http.rb | 8 ++++---- lib/net/imap.rb | 4 ++-- lib/net/telnet.rb | 2 +- lib/racc/parser.rb | 2 +- lib/rinda/rinda.rb | 2 +- lib/rinda/tuplespace.rb | 10 +++++----- lib/set.rb | 4 ++-- lib/shell/command-processor.rb | 4 ++-- lib/soap/rpc/soaplet.rb | 2 +- lib/test/unit/testcase.rb | 2 +- lib/test/unit/testsuite.rb | 2 +- lib/thwait.rb | 2 +- lib/timeout.rb | 4 ++-- lib/yaml.rb | 2 +- 26 files changed, 60 insertions(+), 60 deletions(-) (limited to 'lib') diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 577b03de00..36e593518f 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -211,7 +211,7 @@ module Benchmark # Sometimes benchmark results are skewed because code executed # earlier encounters different garbage collection overheads than # that run later. #bmbm attempts to minimize this effect by running - # the tests twice, the first time as a rehersal in order to get the + # the tests twice, the first time as a rehearsal in order to get the # runtime environment stable, the second time for # real. GC.start is executed before the start of each of # the real timings; the cost of this is not included in the @@ -414,9 +414,9 @@ module Benchmark attr_reader :label # - # Returns a initialized Tms object which has + # Returns an initialized Tms object which has # _u_ as the user CPU time, _s_ as the system CPU time, - # _cu_ as the childrens' user CPU time, _cs_ as the childrens' + # _cu_ as the children's user CPU time, _cs_ as the children's # system CPU time, _real_ as the elapsed real time and _l_ # as the label. # @@ -482,8 +482,8 @@ module Benchmark # # %u:: Replaced by the user CPU time, as reported by Tms#utime. # %y:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem") - # %U:: Replaced by the childrens' user CPU time, as reported by Tms#cutime - # %Y:: Replaced by the childrens' system CPU time, as reported by Tms#cstime + # %U:: Replaced by the children's user CPU time, as reported by Tms#cutime + # %Y:: Replaced by the children's system CPU time, as reported by Tms#cstime # %t:: Replaced by the total CPU time, as reported by Tms#total # %r:: Replaced by the elapsed real time, as reported by Tms#real # %n:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame") @@ -512,8 +512,8 @@ module Benchmark # # Returns a new 6-element array, consisting of the - # label, user CPU time, system CPU time, childrens' - # user CPU time, childrens' system CPU time and elapsed + # label, user CPU time, system CPU time, children's + # user CPU time, children's system CPU time and elapsed # real time. # def to_a diff --git a/lib/cgi.rb b/lib/cgi.rb index f8158858f3..73e4915308 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -528,7 +528,7 @@ class CGI # "METHOD_NOT_ALLOWED" --> "405 Method Not Allowed" # "NOT_ACCEPTABLE" --> "406 Not Acceptable" # "LENGTH_REQUIRED" --> "411 Length Required" - # "PRECONDITION_FAILED" --> "412 Rrecondition Failed" + # "PRECONDITION_FAILED" --> "412 Precondition Failed" # "SERVER_ERROR" --> "500 Internal Server Error" # "NOT_IMPLEMENTED" --> "501 Method Not Implemented" # "BAD_GATEWAY" --> "502 Bad Gateway" @@ -1288,7 +1288,7 @@ class CGI # # +href+ can either be a string, giving the URL # for the HREF attribute, or it can be a hash of - # the elements's attributes. + # the element's attributes. # # The body of the element is the string returned by the no-argument # block passed in. @@ -1587,9 +1587,9 @@ class CGI # Generate a top-level HTML element as a string. # # The attributes of the element are specified as a hash. The - # psuedo-attribute "PRETTY" can be used to specify that the generated + # pseudo-attribute "PRETTY" can be used to specify that the generated # HTML string should be indented. "PRETTY" can also be specified as - # a string as the sole argument to this method. The psuedo-attribute + # a string as the sole argument to this method. The pseudo-attribute # "DOCTYPE", if given, is used as the leading DOCTYPE SGML tag; it # should include the entire text of this tag, including angle brackets. # diff --git a/lib/csv.rb b/lib/csv.rb index 205c3385c4..5500fb55bb 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -499,7 +499,7 @@ class CSV # CSV formatted string/stream reader. # # EXAMPLE - # read CSV lines untill the first column is 'stop'. + # read CSV lines until the first column is 'stop'. # # CSV::Reader.parse(File.open('bigdata', 'rb')) do |row| # p row @@ -756,7 +756,7 @@ class CSV # end # # # define my own 'read' method. - # # CAUTION: Returning nil means EnfOfStream. + # # CAUTION: Returning nil means EndOfStream. # def read(size) # @s.read(size) # end @@ -912,7 +912,7 @@ class CSV # protected method 'read' must be defined in derived classes. # CAUTION: Returning a string which size is not equal to 'size' means - # EnfOfStream. When it is not at EOS, you must block the callee, try to + # EndOfStream. When it is not at EOS, you must block the callee, try to # read and return the sized string. def read(size) # raise EOFError raise NotImplementedError.new( diff --git a/lib/date.rb b/lib/date.rb index fabdc5bdc7..b50e987852 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -28,7 +28,7 @@ # In common usage, the date is reckoned in years since or # before the Common Era (CE/BCE, also known as AD/BC), then # as a month and day-of-the-month within the current year. -# This is known as the *Civil* *Date*, and abbrevated +# This is known as the *Civil* *Date*, and abbreviated # as +civil+ in the Date class. # # Instead of year, month-of-the-year, and day-of-the-month, @@ -239,7 +239,7 @@ class Date # Full names of days of the week, in English. Days of the week # count from 0 to 6 (except in the commercial week); a day's numerical - # represenation indexed into this array gives the name of that day. + # representation indexed into this array gives the name of that day. DAYNAMES = %w(Sunday Monday Tuesday Wednesday Thursday Friday Saturday) # Abbreviated month names, in English. @@ -442,7 +442,7 @@ class Date # Astronomical Julian Day Number. def self.amjd_to_ajd(amjd) amjd + 4800001.to_r/2 end - # Convert an Astronimcal Julian Day Number to an + # Convert an Astronomical Julian Day Number to an # Astronomical Modified Julian Day Number. def self.ajd_to_amjd(ajd) ajd - 4800001.to_r/2 end @@ -622,7 +622,7 @@ class Date jd end - # Create a new Date object for the Commercial Date specifed by + # Create a new Date object for the Commercial Date specified by # year +y+, week-of-year +w+, and day-of-week +d+. # # Monday is day-of-week 1; Sunday is day-of-week 7. diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index c056c41162..9046834453 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -692,7 +692,7 @@ module DRb # # The DRbProtocol module asks each registered protocol in turn to # try to open the URI. Each protocol signals that it does not handle that - # URIby raising a DRbBadScheme error. If no protocol recognises the + # URI by raising a DRbBadScheme error. If no protocol recognises the # URI, then a DRbBadURI error is raised. If a protocol accepts the # URI, but an error occurs in opening it, a DRbConnError is raised. def open(uri, config, first=true) @@ -1200,7 +1200,7 @@ module DRb # # :idconv :: an id-to-object conversion object. This defaults # to an instance of the class DRb::DRbIdConv. - # :verbose :: if true, all unsucessful remote calls on objects + # :verbose :: if true, all unsuccessful remote calls on objects # in the server will be logged to $stdout. false # by default. # :tcp_acl :: the access control list for this server. See diff --git a/lib/ftools.rb b/lib/ftools.rb index 0a2687f60c..0441020b05 100644 --- a/lib/ftools.rb +++ b/lib/ftools.rb @@ -193,7 +193,7 @@ class << File # * /usr/lib/ruby # # You can pass several directories, each as a parameter. If the last - # parameter isn't a String, verbose mode wil be enabled. + # parameter isn't a String, verbose mode will be enabled. # def makedirs(*dirs) verbose = if dirs[-1].is_a? String then false else dirs.pop end diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb index 7bb9baef2d..1a0d669fa3 100644 --- a/lib/getoptlong.rb +++ b/lib/getoptlong.rb @@ -54,14 +54,14 @@ class GetoptLong # # Hash table of option names. - # Keyes of the table are option names, and their values are canonical + # Keys of the table are option names, and their values are canonical # names of the options. # @canonical_names = Hash.new # # Hash table of argument flags. - # Keyes of the table are option names, and their values are argument + # Keys of the table are option names, and their values are argument # flags of the options. # @argument_flags = Hash.new @@ -87,7 +87,7 @@ class GetoptLong @error_message = nil # - # Rest of catinated short options. + # Rest of catenated short options. # @rest_singles = '' @@ -223,7 +223,7 @@ class GetoptLong alias quiet? quiet # - # Termintate option processing. + # Terminate option processing. # def terminate return nil if @status == STATUS_TERMINATED @@ -243,7 +243,7 @@ class GetoptLong end # - # Examine whether option processing is termintated or not. + # Examine whether option processing is terminated or not. # def terminated? return @status == STATUS_TERMINATED @@ -393,7 +393,7 @@ class GetoptLong elsif argument =~ /^(-(.))(.*)/ # # This is a short style option, which start with `-' (not `--'). - # Short options may be catinated (e.g. `-l -g' is equivalent to + # Short options may be catenated (e.g. `-l -g' is equivalent to # `-lg'). # option_name, ch, @rest_singles = $1, $2, $3 diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 531995fc44..3b099b1baa 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -81,7 +81,7 @@ EOF eval(statements, @binding, file, line) end - # error message manupilator + # error message manipulator def filter_backtrace(bt) case IRB.conf[:CONTEXT_MODE] when 0 diff --git a/lib/logger.rb b/lib/logger.rb index 17d664d593..d3ce495f17 100644 --- a/lib/logger.rb +++ b/lib/logger.rb @@ -78,7 +78,7 @@ # # See http://raa.ruby-lang.org/list.rhtml?name=log4r for Log4r, which contains # many advanced features like file-based configuration, a wide range of -# logging targets, simultaneous logging, and heirachical logging. +# logging targets, simultaneous logging, and hierarchical logging. # # # == HOWTOs @@ -626,7 +626,7 @@ private # # 1. Define your application class as a sub-class of this class. # 2. Override 'run' method in your class to do many things. - # 3. Instanciate it and invoke 'start'. + # 3. Instantiate it and invoke 'start'. # # == Example # diff --git a/lib/matrix.rb b/lib/matrix.rb index a99875e545..c62acdf9aa 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -948,7 +948,7 @@ end # # The +Vector+ class represents a mathematical vector, which is useful in its own right, and -# also consitutes a row or column of a Matrix. +# also constitutes a row or column of a Matrix. # # == Method Catalogue # @@ -1026,7 +1026,7 @@ class Vector end end - # ACCSESSING + # ACCESSING # # Returns element number +i+ (starting at zero) of the vector. @@ -1043,7 +1043,7 @@ class Vector end #-- - # ENUMRATIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + # ENUMERATIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #++ # diff --git a/lib/monitor.rb b/lib/monitor.rb index 5d5c623646..a573af2bae 100644 --- a/lib/monitor.rb +++ b/lib/monitor.rb @@ -195,7 +195,7 @@ module MonitorMixin alias try_mon_enter mon_try_enter # - # Enters exlusive section. + # Enters exclusive section. # def mon_enter Thread.critical = true diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 203029ed3d..d236140056 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -577,7 +577,7 @@ module Net # :nodoc: end # - # Tranfers +localfile+ to the server in whatever mode the session is set + # Transfers +localfile+ to the server in whatever mode the session is set # (text or binary). See #puttextfile and #putbinaryfile. # def put(localfile, remotefile = File.basename(localfile), diff --git a/lib/net/http.rb b/lib/net/http.rb index 02cbaeb30f..39c58dd521 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -379,12 +379,12 @@ module Net # :nodoc: attr_reader :port # Seconds to wait until connection is opened. - # If the HTTP object cannot open a conection in this many seconds, + # If the HTTP object cannot open a connection in this many seconds, # it raises a TimeoutError exception. attr_accessor :open_timeout # Seconds to wait until reading one block (by one read(2) call). - # If the HTTP object cannot open a conection in this many seconds, + # If the HTTP object cannot open a connection in this many seconds, # it raises a TimeoutError exception. attr_reader :read_timeout @@ -651,7 +651,7 @@ module Net # :nodoc: # # In version 1.1 (ruby 1.6), this method returns a pair of objects, a # Net::HTTPResponse object and an entity body string. - # In version 1.2 (ruby 1.8), this method returns a Net::HTTPReponse object. + # In version 1.2 (ruby 1.8), this method returns a Net::HTTPResponse object. # # If called with a block, yields each fragment of the # entity body in turn as a string as it are read from @@ -1307,7 +1307,7 @@ module Net # :nodoc: # xxx HTTPUnknownResponse # class HTTPResponse - # true if the reponse has body. + # true if the response has body. def HTTPResponse.body_permitted? self::HAS_BODY end diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 641d50e41f..4aebc33445 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -449,7 +449,7 @@ module Net # :nodoc: # the complete set of all names available to the client. # +refname+ provides a context (for instance, a base directory # in a directory-based mailbox hierarchy). +mailbox+ specifies - # a mailbox or (via wilcards) mailboxes under that context. + # a mailbox or (via wildcards) mailboxes under that context. # Two wildcards may be used in +mailbox+: '*', which matches # all characters *including* the hierarchy delimiter (for instance, # '/' on a UNIX-hosted directory-based mailbox hierarchy); and '%', @@ -572,7 +572,7 @@ module Net # :nodoc: # Sends a APPEND command to append the +message+ to the end of # the +mailbox+. The optional +flags+ argument is an array of - # flags to initially assing to the new message. The optional + # flags to initially passing to the new message. The optional # +date_time+ argument specifies the creation time to assign to the # new message; it defaults to the current time. # For example: diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb index 095be45334..4dfab5853d 100644 --- a/lib/net/telnet.rb +++ b/lib/net/telnet.rb @@ -241,7 +241,7 @@ module Net # :nodoc: # Timeout:: the number of seconds to wait before timing out both the # initial attempt to connect to host (in this constructor), # and all attempts to read data from the host (in #waitfor(), - # #cmd(), and #login()). Exceding this timeout causes a + # #cmd(), and #login()). Exceeding this timeout causes a # TimeoutError to be raised. The default value is 10 seconds. # You can disable the timeout by setting this value to false. # In this case, the connect attempt will eventually timeout diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb index 07858f6775..7d160f6c44 100644 --- a/lib/racc/parser.rb +++ b/lib/racc/parser.rb @@ -40,7 +40,7 @@ module Racc Racc_Runtime_Core_Revision_R = '$raccRevision: 1.4 $'.split[1] begin require 'racc/cparse' - # Racc_Runtime_Core_Version_C = (defined in extention) + # Racc_Runtime_Core_Version_C = (defined in extension) Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2] unless new.respond_to?(:_racc_do_parse_c, true) raise LoadError, 'old cparse.so' diff --git a/lib/rinda/rinda.rb b/lib/rinda/rinda.rb index 37af34280a..0352a7be90 100644 --- a/lib/rinda/rinda.rb +++ b/lib/rinda/rinda.rb @@ -1,5 +1,5 @@ # -# rinda.rb: A Ruby implementation of the Linda distibuted computing paradigm. +# rinda.rb: A Ruby implementation of the Linda distributed computing paradigm. # # Introduction to Linda/rinda? # diff --git a/lib/rinda/tuplespace.rb b/lib/rinda/tuplespace.rb index 2353446857..6986e49b3e 100644 --- a/lib/rinda/tuplespace.rb +++ b/lib/rinda/tuplespace.rb @@ -55,7 +55,7 @@ module Rinda # the argument is: # # +nil+:: it is set to expire in the far future. - # +false+:: it has epired. + # +false+:: it has expired. # Numeric:: it will expire in that many seconds. # # Otherwise the argument refers to some kind of renewer object @@ -105,7 +105,7 @@ module Rinda private # Given +true+, +nil+, or +Numeric+, returns that (suitable input to - # make_epires) and +nil+ (no actual +renewer+), else it return the + # make_expires) and +nil+ (no actual +renewer+), else it return the # time data from the supplied +renewer+. def get_renewer(it) case it @@ -146,7 +146,7 @@ module Rinda end # - # Documenation? + # Documentation? # class WaitTemplateEntry < TemplateEntry def initialize(place, ary, expires=nil) @@ -179,7 +179,7 @@ module Rinda end # - # Documenation? + # Documentation? # class NotifyTemplateEntry < TemplateEntry def initialize(place, event, tuple, expires=nil) @@ -276,7 +276,7 @@ module Rinda # # The Tuplespace manages access to the tuples it contains, - # ensuring mutual exclusion requirments are met. + # ensuring mutual exclusion requirements are met. # class TupleSpace include DRbUndumped diff --git a/lib/set.rb b/lib/set.rb index e9c6931b14..3aa80fd334 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -748,7 +748,7 @@ class TC_Set < Test::Unit::TestCase assert_same(orig_set1, set1) assert_equal(set3, set1) - # test3; multiple occurences of a set in an set + # test3; multiple occurrences of a set in an set set1 = Set[1, 2] set2 = Set[set1, Set[set1, 4], 3] @@ -767,7 +767,7 @@ class TC_Set < Test::Unit::TestCase set1.flatten! } - # test5; miscellaneus + # test5; miscellaneous empty = Set[] set = Set[Set[empty, "a"],Set[empty, "b"]] diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 6f8e5ffd09..ecf6c7d5eb 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -146,7 +146,7 @@ class Shell # file2: String(optional) # return: Boolean # same as: - # test() (when command is char or length 1 string or sumbol) + # test() (when command is char or length 1 string or symbol) # FileTest.command (others) # example: # sh[?e, "foo"] @@ -214,7 +214,7 @@ class Shell # CommandProcessor#system(command, *opts) # command: String # opts: String - # retuen: SystemCommand + # return: SystemCommand # Same as system() function # example: # print sh.system("ls", "-l") diff --git a/lib/soap/rpc/soaplet.rb b/lib/soap/rpc/soaplet.rb index 4b25c68161..ec172fd85e 100644 --- a/lib/soap/rpc/soaplet.rb +++ b/lib/soap/rpc/soaplet.rb @@ -25,7 +25,7 @@ public end # Add servant klass whose object has request scope. A servant object is - # instanciated for each request. + # instantiated for each request. # # Bare in mind that servant klasses are distinguished by HTTP SOAPAction # header in request. Client which calls request-scoped servant must have a diff --git a/lib/test/unit/testcase.rb b/lib/test/unit/testcase.rb index 8b22dd4640..e765b91161 100644 --- a/lib/test/unit/testcase.rb +++ b/lib/test/unit/testcase.rb @@ -134,7 +134,7 @@ module Test "#{@method_name}(#{self.class.name})" end - # Overriden to return #name. + # Overridden to return #name. def to_s name end diff --git a/lib/test/unit/testsuite.rb b/lib/test/unit/testsuite.rb index b3a704ec63..56ad9b7aec 100644 --- a/lib/test/unit/testsuite.rb +++ b/lib/test/unit/testsuite.rb @@ -59,7 +59,7 @@ module Test tests.empty? end - # Overriden to return the name given the suite at + # Overridden to return the name given the suite at # creation. def to_s @name diff --git a/lib/thwait.rb b/lib/thwait.rb index 4512209604..8549ca0884 100644 --- a/lib/thwait.rb +++ b/lib/thwait.rb @@ -158,7 +158,7 @@ ThWait = ThreadsWait # Documentation comments: -# - Source of doumentation is evenly split between Nutshell, existing +# - Source of documentation is evenly split between Nutshell, existing # comments, and my own rephrasing. # - I'm not particularly confident that the comments are all exactly correct. # - The history, etc., up the top appears in the RDoc output. Perhaps it would diff --git a/lib/timeout.rb b/lib/timeout.rb index 5c6a72652a..0ba5293d1d 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -21,11 +21,11 @@ # # : timout # -# The time in seconds to wait for block teminatation. +# The time in seconds to wait for block termination. # # : [exception] # -# The exception classs to be raised on timeout. +# The exception class to be raised on timeout. # #=end diff --git a/lib/yaml.rb b/lib/yaml.rb index 54880182e3..644538c579 100644 --- a/lib/yaml.rb +++ b/lib/yaml.rb @@ -148,7 +148,7 @@ module YAML end # - # Method to extract colon-seperated type and class, returning + # Method to extract colon-separated type and class, returning # the type and the constant of the class # def YAML.read_type_class( type, obj_class ) -- cgit v1.2.3