Skip to content

Commit

Permalink
* dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,
Browse files Browse the repository at this point in the history
  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/pop.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/trunk@6178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Apr 18, 2004
1 parent e5eb459 commit 92f0be2
Show file tree
Hide file tree
Showing 31 changed files with 79 additions and 67 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Mon Apr 19 08:19:11 2004 Doug Kearns <[email protected]>

* dln.c, io.c, pack.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/pop.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.

Mon Apr 19 08:14:18 2004 Dave Thomas <[email protected]>

* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Allow for
Expand Down
4 changes: 2 additions & 2 deletions dln.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ dln_strerror()
case DLN_ECONFL:
return "Symbol name conflict";
case DLN_ENOINIT:
return "No inititalizer given";
return "No initializer given";
case DLN_EUNDEF:
return "Unresolved symbols";
case DLN_ENOTLIB:
Expand Down Expand Up @@ -1228,7 +1228,7 @@ aix_loaderror(const char *pathname)
{L_ERROR_MEMBER,
"file not an archive or does not contain requested member:"},
{L_ERROR_TYPE, "symbol table mismatch:"},
{L_ERROR_ALIGN, "text allignment in file is wrong."},
{L_ERROR_ALIGN, "text alignment in file is wrong."},
{L_ERROR_SYSTEM, "System error:"},
{L_ERROR_ERRNO, NULL}
};
Expand Down
6 changes: 3 additions & 3 deletions io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ rb_fopen(fname, mode)
}
#ifdef USE_SETVBUF
if (setvbuf(file, NULL, _IOFBF, 0) != 0)
rb_warn("setvbuf() can't be honered for %s", fname);
rb_warn("setvbuf() can't be honoured for %s", fname);
#endif
#ifdef __human68k__
fmode(file, _IOTEXT);
Expand Down Expand Up @@ -2412,7 +2412,7 @@ rb_fdopen(fd, mode)

#ifdef USE_SETVBUF
if (setvbuf(file, NULL, _IOFBF, 0) != 0)
rb_warn("setvbuf() can't be honered (fd=%d)", fd);
rb_warn("setvbuf() can't be honoured (fd=%d)", fd);
#endif
return file;
}
Expand Down Expand Up @@ -3258,7 +3258,7 @@ rb_io_reopen(argc, argv, file)
}
#ifdef USE_SETVBUF
if (setvbuf(fptr->f, NULL, _IOFBF, 0) != 0)
rb_warn("setvbuf() can't be honered for %s", RSTRING(fname)->ptr);
rb_warn("setvbuf() can't be honoured for %s", RSTRING(fname)->ptr);
#endif

if (fptr->f2) {
Expand Down
14 changes: 7 additions & 7 deletions lib/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def bm(label_width = 0, *labels, &blk) # :yield: report
# 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. <tt>GC.start</tt> is executed before the start of each of
# the real timings; the cost of this is not included in the
Expand Down Expand Up @@ -414,9 +414,9 @@ class Tms
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.
#
Expand Down Expand Up @@ -482,8 +482,8 @@ def /(x); memberwise(:/, x) end
#
# <tt>%u</tt>:: Replaced by the user CPU time, as reported by Tms#utime.
# <tt>%y</tt>:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem")
# <tt>%U</tt>:: Replaced by the childrens' user CPU time, as reported by Tms#cutime
# <tt>%Y</tt>:: Replaced by the childrens' system CPU time, as reported by Tms#cstime
# <tt>%U</tt>:: Replaced by the children's user CPU time, as reported by Tms#cutime
# <tt>%Y</tt>:: Replaced by the children's system CPU time, as reported by Tms#cstime
# <tt>%t</tt>:: Replaced by the total CPU time, as reported by Tms#total
# <tt>%r</tt>:: Replaced by the elapsed real time, as reported by Tms#real
# <tt>%n</tt>:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame")
Expand Down Expand Up @@ -512,8 +512,8 @@ def to_s

#
# 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
Expand Down
8 changes: 4 additions & 4 deletions lib/cgi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def CGI::rfc1123_date(time)
# "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"
Expand Down Expand Up @@ -1290,7 +1290,7 @@ module HtmlExtension
#
# +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.
Expand Down Expand Up @@ -1589,9 +1589,9 @@ def hidden(name = "", value = nil)
# 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.
#
Expand Down
6 changes: 3 additions & 3 deletions lib/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def generate_separator(type, out_dev, col_sep, row_sep)
# 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
Expand Down Expand Up @@ -756,7 +756,7 @@ def terminate
# end
#
# # define my own 'read' method.
# # CAUTION: Returning nil means EnfOfStream.
# # CAUTION: Returning nil means EndOfStream.
# def read(size)
# @s.read(size)
# end
Expand Down Expand Up @@ -912,7 +912,7 @@ def terminate

# 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(
Expand Down
8 changes: 4 additions & 4 deletions lib/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -442,7 +442,7 @@ def self.time_to_day_fraction(h, min, s)
# 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

Expand Down Expand Up @@ -622,7 +622,7 @@ def self.valid_commercial? (y, w, d, sg=ITALY)
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.
Expand Down
4 changes: 2 additions & 2 deletions lib/drb/drb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def add_protocol(prot)
#
# 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)
Expand Down Expand Up @@ -1200,7 +1200,7 @@ def self.make_config(hash={}) # :nodoc:
#
# :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
Expand Down
2 changes: 1 addition & 1 deletion lib/ftools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def safe_unlink(*files)
# * /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
Expand Down
12 changes: 6 additions & 6 deletions lib/getoptlong.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def initialize(*arguments)

#
# 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
Expand All @@ -87,7 +87,7 @@ def initialize(*arguments)
@error_message = nil

#
# Rest of catinated short options.
# Rest of catenated short options.
#
@rest_singles = ''

Expand Down Expand Up @@ -223,7 +223,7 @@ def set_options(*arguments)
alias quiet? quiet

#
# Termintate option processing.
# Terminate option processing.
#
def terminate
return nil if @status == STATUS_TERMINATED
Expand All @@ -243,7 +243,7 @@ def terminate
end

#
# Examine whether option processing is termintated or not.
# Examine whether option processing is terminated or not.
#
def terminated?
return @status == STATUS_TERMINATED
Expand Down Expand Up @@ -393,7 +393,7 @@ def get
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
Expand Down
2 changes: 1 addition & 1 deletion lib/irb/workspace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def evaluate(context, statements, file = __FILE__, line = __LINE__)
eval(statements, @binding, file, line)
end

# error message manupilator
# error message manipulator
def filter_backtrace(bt)
case IRB.conf[:CONTEXT_MODE]
when 0
Expand Down
4 changes: 2 additions & 2 deletions lib/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -626,7 +626,7 @@ def eod(t)
#
# 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
#
Expand Down
6 changes: 3 additions & 3 deletions lib/matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ def ** (other)

#
# 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
#
Expand Down Expand Up @@ -1026,7 +1026,7 @@ def init_elements(array, copy)
end
end

# ACCSESSING
# ACCESSING

#
# Returns element number +i+ (starting at zero) of the vector.
Expand All @@ -1043,7 +1043,7 @@ def size
end

#--
# ENUMRATIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# ENUMERATIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#++

#
Expand Down
2 changes: 1 addition & 1 deletion lib/monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def mon_try_enter
alias try_mon_enter mon_try_enter

#
# Enters exlusive section.
# Enters exclusive section.
#
def mon_enter
Thread.critical = true
Expand Down
2 changes: 1 addition & 1 deletion lib/net/ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def puttextfile(localfile, remotefile = File.basename(localfile), &block) # :yie
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),
Expand Down
8 changes: 4 additions & 4 deletions lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ def set_debug_output(output)
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

Expand Down Expand Up @@ -693,7 +693,7 @@ def head(path, initheader = nil)
#
# 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
Expand Down Expand Up @@ -1600,7 +1600,7 @@ class HTTPFatalError < ProtoFatalError
# xxx HTTPUnknownResponse
#
class HTTPResponse
# true if the reponse has body.
# true if the response has body.
def HTTPResponse.body_permitted?
self::HAS_BODY
end
Expand Down
4 changes: 2 additions & 2 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def unsubscribe(mailbox)
# 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 '%',
Expand Down Expand Up @@ -572,7 +572,7 @@ def status(mailbox, attr)

# 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:
Expand Down
Loading

0 comments on commit 92f0be2

Please sign in to comment.