mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
84aba62199
commit
6c30c6be3a
29 changed files with 76 additions and 65 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
Mon Apr 19 08:19:58 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Mon Apr 19 08:14:18 2004 Dave Thomas <dave@pragprog.com>
|
Mon Apr 19 08:14:18 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Allow for
|
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Allow for
|
||||||
|
|
4
dln.c
4
dln.c
|
@ -1172,7 +1172,7 @@ dln_strerror()
|
||||||
case DLN_ECONFL:
|
case DLN_ECONFL:
|
||||||
return "Symbol name conflict";
|
return "Symbol name conflict";
|
||||||
case DLN_ENOINIT:
|
case DLN_ENOINIT:
|
||||||
return "No inititalizer given";
|
return "No initializer given";
|
||||||
case DLN_EUNDEF:
|
case DLN_EUNDEF:
|
||||||
return "Unresolved symbols";
|
return "Unresolved symbols";
|
||||||
case DLN_ENOTLIB:
|
case DLN_ENOTLIB:
|
||||||
|
@ -1233,7 +1233,7 @@ aix_loaderror(const char *pathname)
|
||||||
{L_ERROR_MEMBER,
|
{L_ERROR_MEMBER,
|
||||||
"file not an archive or does not contain requested member:"},
|
"file not an archive or does not contain requested member:"},
|
||||||
{L_ERROR_TYPE, "symbol table mismatch:"},
|
{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_SYSTEM, "System error:"},
|
||||||
{L_ERROR_ERRNO, NULL}
|
{L_ERROR_ERRNO, NULL}
|
||||||
};
|
};
|
||||||
|
|
6
io.c
6
io.c
|
@ -2353,7 +2353,7 @@ rb_fopen(fname, mode)
|
||||||
}
|
}
|
||||||
#ifdef USE_SETVBUF
|
#ifdef USE_SETVBUF
|
||||||
if (setvbuf(file, NULL, _IOFBF, 0) != 0)
|
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
|
#endif
|
||||||
#ifdef __human68k__
|
#ifdef __human68k__
|
||||||
fmode(file, _IOTEXT);
|
fmode(file, _IOTEXT);
|
||||||
|
@ -2384,7 +2384,7 @@ rb_fdopen(fd, mode)
|
||||||
|
|
||||||
#ifdef USE_SETVBUF
|
#ifdef USE_SETVBUF
|
||||||
if (setvbuf(file, NULL, _IOFBF, 0) != 0)
|
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
|
#endif
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
@ -3165,7 +3165,7 @@ rb_io_reopen(argc, argv, file)
|
||||||
}
|
}
|
||||||
#ifdef USE_SETVBUF
|
#ifdef USE_SETVBUF
|
||||||
if (setvbuf(fptr->f, NULL, _IOFBF, 0) != 0)
|
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
|
#endif
|
||||||
|
|
||||||
if (fptr->f2) {
|
if (fptr->f2) {
|
||||||
|
|
|
@ -211,7 +211,7 @@ module Benchmark
|
||||||
# Sometimes benchmark results are skewed because code executed
|
# Sometimes benchmark results are skewed because code executed
|
||||||
# earlier encounters different garbage collection overheads than
|
# earlier encounters different garbage collection overheads than
|
||||||
# that run later. #bmbm attempts to minimize this effect by running
|
# 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
|
# runtime environment stable, the second time for
|
||||||
# real. <tt>GC.start</tt> is executed before the start of each of
|
# 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
|
# the real timings; the cost of this is not included in the
|
||||||
|
@ -414,9 +414,9 @@ module Benchmark
|
||||||
attr_reader :label
|
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,
|
# _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_
|
# system CPU time, _real_ as the elapsed real time and _l_
|
||||||
# as the label.
|
# as the label.
|
||||||
#
|
#
|
||||||
|
@ -482,8 +482,8 @@ module Benchmark
|
||||||
#
|
#
|
||||||
# <tt>%u</tt>:: Replaced by the user CPU time, as reported by Tms#utime.
|
# <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>%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>%U</tt>:: Replaced by the children's user CPU time, as reported by Tms#cutime
|
||||||
# <tt>%Y</tt>:: Replaced by the childrens' system CPU time, as reported by Tms#cstime
|
# <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>%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>%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")
|
# <tt>%n</tt>:: 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
|
# Returns a new 6-element array, consisting of the
|
||||||
# label, user CPU time, system CPU time, childrens'
|
# label, user CPU time, system CPU time, children's
|
||||||
# user CPU time, childrens' system CPU time and elapsed
|
# user CPU time, children's system CPU time and elapsed
|
||||||
# real time.
|
# real time.
|
||||||
#
|
#
|
||||||
def to_a
|
def to_a
|
||||||
|
|
|
@ -528,7 +528,7 @@ class CGI
|
||||||
# "METHOD_NOT_ALLOWED" --> "405 Method Not Allowed"
|
# "METHOD_NOT_ALLOWED" --> "405 Method Not Allowed"
|
||||||
# "NOT_ACCEPTABLE" --> "406 Not Acceptable"
|
# "NOT_ACCEPTABLE" --> "406 Not Acceptable"
|
||||||
# "LENGTH_REQUIRED" --> "411 Length Required"
|
# "LENGTH_REQUIRED" --> "411 Length Required"
|
||||||
# "PRECONDITION_FAILED" --> "412 Rrecondition Failed"
|
# "PRECONDITION_FAILED" --> "412 Precondition Failed"
|
||||||
# "SERVER_ERROR" --> "500 Internal Server Error"
|
# "SERVER_ERROR" --> "500 Internal Server Error"
|
||||||
# "NOT_IMPLEMENTED" --> "501 Method Not Implemented"
|
# "NOT_IMPLEMENTED" --> "501 Method Not Implemented"
|
||||||
# "BAD_GATEWAY" --> "502 Bad Gateway"
|
# "BAD_GATEWAY" --> "502 Bad Gateway"
|
||||||
|
@ -1288,7 +1288,7 @@ class CGI
|
||||||
#
|
#
|
||||||
# +href+ can either be a string, giving the URL
|
# +href+ can either be a string, giving the URL
|
||||||
# for the HREF attribute, or it can be a hash of
|
# 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
|
# The body of the element is the string returned by the no-argument
|
||||||
# block passed in.
|
# block passed in.
|
||||||
|
@ -1587,9 +1587,9 @@ class CGI
|
||||||
# Generate a top-level HTML element as a string.
|
# Generate a top-level HTML element as a string.
|
||||||
#
|
#
|
||||||
# The attributes of the element are specified as a hash. The
|
# 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
|
# 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
|
# "DOCTYPE", if given, is used as the leading DOCTYPE SGML tag; it
|
||||||
# should include the entire text of this tag, including angle brackets.
|
# should include the entire text of this tag, including angle brackets.
|
||||||
#
|
#
|
||||||
|
|
|
@ -499,7 +499,7 @@ class CSV
|
||||||
# CSV formatted string/stream reader.
|
# CSV formatted string/stream reader.
|
||||||
#
|
#
|
||||||
# EXAMPLE
|
# 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|
|
# CSV::Reader.parse(File.open('bigdata', 'rb')) do |row|
|
||||||
# p row
|
# p row
|
||||||
|
@ -756,7 +756,7 @@ class CSV
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# # define my own 'read' method.
|
# # define my own 'read' method.
|
||||||
# # CAUTION: Returning nil means EnfOfStream.
|
# # CAUTION: Returning nil means EndOfStream.
|
||||||
# def read(size)
|
# def read(size)
|
||||||
# @s.read(size)
|
# @s.read(size)
|
||||||
# end
|
# end
|
||||||
|
@ -912,7 +912,7 @@ class CSV
|
||||||
|
|
||||||
# protected method 'read' must be defined in derived classes.
|
# protected method 'read' must be defined in derived classes.
|
||||||
# CAUTION: Returning a string which size is not equal to 'size' means
|
# 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.
|
# read and return the sized string.
|
||||||
def read(size) # raise EOFError
|
def read(size) # raise EOFError
|
||||||
raise NotImplementedError.new(
|
raise NotImplementedError.new(
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
# In common usage, the date is reckoned in years since or
|
# In common usage, the date is reckoned in years since or
|
||||||
# before the Common Era (CE/BCE, also known as AD/BC), then
|
# before the Common Era (CE/BCE, also known as AD/BC), then
|
||||||
# as a month and day-of-the-month within the current year.
|
# 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.
|
# as +civil+ in the Date class.
|
||||||
#
|
#
|
||||||
# Instead of year, month-of-the-year, and day-of-the-month,
|
# 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
|
# 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
|
# 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)
|
DAYNAMES = %w(Sunday Monday Tuesday Wednesday Thursday Friday Saturday)
|
||||||
|
|
||||||
# Abbreviated month names, in English.
|
# Abbreviated month names, in English.
|
||||||
|
@ -442,7 +442,7 @@ class Date
|
||||||
# Astronomical Julian Day Number.
|
# Astronomical Julian Day Number.
|
||||||
def self.amjd_to_ajd(amjd) amjd + 4800001.to_r/2 end
|
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.
|
# Astronomical Modified Julian Day Number.
|
||||||
def self.ajd_to_amjd(ajd) ajd - 4800001.to_r/2 end
|
def self.ajd_to_amjd(ajd) ajd - 4800001.to_r/2 end
|
||||||
|
|
||||||
|
@ -622,7 +622,7 @@ class Date
|
||||||
jd
|
jd
|
||||||
end
|
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+.
|
# year +y+, week-of-year +w+, and day-of-week +d+.
|
||||||
#
|
#
|
||||||
# Monday is day-of-week 1; Sunday is day-of-week 7.
|
# Monday is day-of-week 1; Sunday is day-of-week 7.
|
||||||
|
|
|
@ -692,7 +692,7 @@ module DRb
|
||||||
#
|
#
|
||||||
# The DRbProtocol module asks each registered protocol in turn to
|
# The DRbProtocol module asks each registered protocol in turn to
|
||||||
# try to open the URI. Each protocol signals that it does not handle that
|
# 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, then a DRbBadURI error is raised. If a protocol accepts the
|
||||||
# URI, but an error occurs in opening it, a DRbConnError is raised.
|
# URI, but an error occurs in opening it, a DRbConnError is raised.
|
||||||
def open(uri, config, first=true)
|
def open(uri, config, first=true)
|
||||||
|
@ -1200,7 +1200,7 @@ module DRb
|
||||||
#
|
#
|
||||||
# :idconv :: an id-to-object conversion object. This defaults
|
# :idconv :: an id-to-object conversion object. This defaults
|
||||||
# to an instance of the class DRb::DRbIdConv.
|
# 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
|
# in the server will be logged to $stdout. false
|
||||||
# by default.
|
# by default.
|
||||||
# :tcp_acl :: the access control list for this server. See
|
# :tcp_acl :: the access control list for this server. See
|
||||||
|
|
|
@ -193,7 +193,7 @@ class << File
|
||||||
# * /usr/lib/ruby
|
# * /usr/lib/ruby
|
||||||
#
|
#
|
||||||
# You can pass several directories, each as a parameter. If the last
|
# 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)
|
def makedirs(*dirs)
|
||||||
verbose = if dirs[-1].is_a? String then false else dirs.pop end
|
verbose = if dirs[-1].is_a? String then false else dirs.pop end
|
||||||
|
|
|
@ -54,14 +54,14 @@ class GetoptLong
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hash table of option names.
|
# 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.
|
# names of the options.
|
||||||
#
|
#
|
||||||
@canonical_names = Hash.new
|
@canonical_names = Hash.new
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hash table of argument flags.
|
# 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.
|
# flags of the options.
|
||||||
#
|
#
|
||||||
@argument_flags = Hash.new
|
@argument_flags = Hash.new
|
||||||
|
@ -87,7 +87,7 @@ class GetoptLong
|
||||||
@error_message = nil
|
@error_message = nil
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rest of catinated short options.
|
# Rest of catenated short options.
|
||||||
#
|
#
|
||||||
@rest_singles = ''
|
@rest_singles = ''
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ class GetoptLong
|
||||||
alias quiet? quiet
|
alias quiet? quiet
|
||||||
|
|
||||||
#
|
#
|
||||||
# Termintate option processing.
|
# Terminate option processing.
|
||||||
#
|
#
|
||||||
def terminate
|
def terminate
|
||||||
return nil if @status == STATUS_TERMINATED
|
return nil if @status == STATUS_TERMINATED
|
||||||
|
@ -243,7 +243,7 @@ class GetoptLong
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Examine whether option processing is termintated or not.
|
# Examine whether option processing is terminated or not.
|
||||||
#
|
#
|
||||||
def terminated?
|
def terminated?
|
||||||
return @status == STATUS_TERMINATED
|
return @status == STATUS_TERMINATED
|
||||||
|
@ -393,7 +393,7 @@ class GetoptLong
|
||||||
elsif argument =~ /^(-(.))(.*)/
|
elsif argument =~ /^(-(.))(.*)/
|
||||||
#
|
#
|
||||||
# This is a short style option, which start with `-' (not `--').
|
# 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').
|
# `-lg').
|
||||||
#
|
#
|
||||||
option_name, ch, @rest_singles = $1, $2, $3
|
option_name, ch, @rest_singles = $1, $2, $3
|
||||||
|
|
|
@ -81,7 +81,7 @@ EOF
|
||||||
eval(statements, @binding, file, line)
|
eval(statements, @binding, file, line)
|
||||||
end
|
end
|
||||||
|
|
||||||
# error message manupilator
|
# error message manipulator
|
||||||
def filter_backtrace(bt)
|
def filter_backtrace(bt)
|
||||||
case IRB.conf[:CONTEXT_MODE]
|
case IRB.conf[:CONTEXT_MODE]
|
||||||
when 0
|
when 0
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
#
|
#
|
||||||
# See http://raa.ruby-lang.org/list.rhtml?name=log4r for Log4r, which contains
|
# 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
|
# 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
|
# == HOWTOs
|
||||||
|
@ -626,7 +626,7 @@ private
|
||||||
#
|
#
|
||||||
# 1. Define your application class as a sub-class of this class.
|
# 1. Define your application class as a sub-class of this class.
|
||||||
# 2. Override 'run' method in your class to do many things.
|
# 2. Override 'run' method in your class to do many things.
|
||||||
# 3. Instanciate it and invoke 'start'.
|
# 3. Instantiate it and invoke 'start'.
|
||||||
#
|
#
|
||||||
# == Example
|
# == Example
|
||||||
#
|
#
|
||||||
|
|
|
@ -948,7 +948,7 @@ end
|
||||||
|
|
||||||
#
|
#
|
||||||
# The +Vector+ class represents a mathematical vector, which is useful in its own right, and
|
# 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
|
# == Method Catalogue
|
||||||
#
|
#
|
||||||
|
@ -1026,7 +1026,7 @@ class Vector
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ACCSESSING
|
# ACCESSING
|
||||||
|
|
||||||
#
|
#
|
||||||
# Returns element number +i+ (starting at zero) of the vector.
|
# Returns element number +i+ (starting at zero) of the vector.
|
||||||
|
@ -1043,7 +1043,7 @@ class Vector
|
||||||
end
|
end
|
||||||
|
|
||||||
#--
|
#--
|
||||||
# ENUMRATIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
# ENUMERATIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||||
#++
|
#++
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -195,7 +195,7 @@ module MonitorMixin
|
||||||
alias try_mon_enter mon_try_enter
|
alias try_mon_enter mon_try_enter
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enters exlusive section.
|
# Enters exclusive section.
|
||||||
#
|
#
|
||||||
def mon_enter
|
def mon_enter
|
||||||
Thread.critical = true
|
Thread.critical = true
|
||||||
|
|
|
@ -577,7 +577,7 @@ module Net # :nodoc:
|
||||||
end
|
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.
|
# (text or binary). See #puttextfile and #putbinaryfile.
|
||||||
#
|
#
|
||||||
def put(localfile, remotefile = File.basename(localfile),
|
def put(localfile, remotefile = File.basename(localfile),
|
||||||
|
|
|
@ -379,12 +379,12 @@ module Net # :nodoc:
|
||||||
attr_reader :port
|
attr_reader :port
|
||||||
|
|
||||||
# Seconds to wait until connection is opened.
|
# 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.
|
# it raises a TimeoutError exception.
|
||||||
attr_accessor :open_timeout
|
attr_accessor :open_timeout
|
||||||
|
|
||||||
# Seconds to wait until reading one block (by one read(2) call).
|
# 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.
|
# it raises a TimeoutError exception.
|
||||||
attr_reader :read_timeout
|
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
|
# In version 1.1 (ruby 1.6), this method returns a pair of objects, a
|
||||||
# Net::HTTPResponse object and an entity body string.
|
# 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
|
# If called with a block, yields each fragment of the
|
||||||
# entity body in turn as a string as it are read from
|
# entity body in turn as a string as it are read from
|
||||||
|
@ -1307,7 +1307,7 @@ module Net # :nodoc:
|
||||||
# xxx HTTPUnknownResponse
|
# xxx HTTPUnknownResponse
|
||||||
#
|
#
|
||||||
class HTTPResponse
|
class HTTPResponse
|
||||||
# true if the reponse has body.
|
# true if the response has body.
|
||||||
def HTTPResponse.body_permitted?
|
def HTTPResponse.body_permitted?
|
||||||
self::HAS_BODY
|
self::HAS_BODY
|
||||||
end
|
end
|
||||||
|
|
|
@ -449,7 +449,7 @@ module Net # :nodoc:
|
||||||
# the complete set of all names available to the client.
|
# the complete set of all names available to the client.
|
||||||
# +refname+ provides a context (for instance, a base directory
|
# +refname+ provides a context (for instance, a base directory
|
||||||
# in a directory-based mailbox hierarchy). +mailbox+ specifies
|
# 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
|
# Two wildcards may be used in +mailbox+: '*', which matches
|
||||||
# all characters *including* the hierarchy delimiter (for instance,
|
# all characters *including* the hierarchy delimiter (for instance,
|
||||||
# '/' on a UNIX-hosted directory-based mailbox hierarchy); and '%',
|
# '/' 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
|
# Sends a APPEND command to append the +message+ to the end of
|
||||||
# the +mailbox+. The optional +flags+ argument is an array 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
|
# +date_time+ argument specifies the creation time to assign to the
|
||||||
# new message; it defaults to the current time.
|
# new message; it defaults to the current time.
|
||||||
# For example:
|
# For example:
|
||||||
|
|
|
@ -241,7 +241,7 @@ module Net # :nodoc:
|
||||||
# Timeout:: the number of seconds to wait before timing out both the
|
# Timeout:: the number of seconds to wait before timing out both the
|
||||||
# initial attempt to connect to host (in this constructor),
|
# initial attempt to connect to host (in this constructor),
|
||||||
# and all attempts to read data from the host (in #waitfor(),
|
# 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.
|
# TimeoutError to be raised. The default value is 10 seconds.
|
||||||
# You can disable the timeout by setting this value to false.
|
# You can disable the timeout by setting this value to false.
|
||||||
# In this case, the connect attempt will eventually timeout
|
# In this case, the connect attempt will eventually timeout
|
||||||
|
|
|
@ -40,7 +40,7 @@ module Racc
|
||||||
Racc_Runtime_Core_Revision_R = '$raccRevision: 1.4 $'.split[1]
|
Racc_Runtime_Core_Revision_R = '$raccRevision: 1.4 $'.split[1]
|
||||||
begin
|
begin
|
||||||
require 'racc/cparse'
|
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]
|
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
|
||||||
unless new.respond_to?(:_racc_do_parse_c, true)
|
unless new.respond_to?(:_racc_do_parse_c, true)
|
||||||
raise LoadError, 'old cparse.so'
|
raise LoadError, 'old cparse.so'
|
||||||
|
|
|
@ -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.
|
||||||
#
|
#
|
||||||
# <i>Introduction to Linda/rinda?</i>
|
# <i>Introduction to Linda/rinda?</i>
|
||||||
#
|
#
|
||||||
|
|
|
@ -55,7 +55,7 @@ module Rinda
|
||||||
# the argument is:
|
# the argument is:
|
||||||
#
|
#
|
||||||
# +nil+:: it is set to expire in the far future.
|
# +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.
|
# Numeric:: it will expire in that many seconds.
|
||||||
#
|
#
|
||||||
# Otherwise the argument refers to some kind of renewer object
|
# Otherwise the argument refers to some kind of renewer object
|
||||||
|
@ -105,7 +105,7 @@ module Rinda
|
||||||
|
|
||||||
private
|
private
|
||||||
# Given +true+, +nil+, or +Numeric+, returns that (suitable input to
|
# 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+.
|
# time data from the supplied +renewer+.
|
||||||
def get_renewer(it)
|
def get_renewer(it)
|
||||||
case it
|
case it
|
||||||
|
@ -146,7 +146,7 @@ module Rinda
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# <i>Documenation?</i>
|
# <i>Documentation?</i>
|
||||||
#
|
#
|
||||||
class WaitTemplateEntry < TemplateEntry
|
class WaitTemplateEntry < TemplateEntry
|
||||||
def initialize(place, ary, expires=nil)
|
def initialize(place, ary, expires=nil)
|
||||||
|
@ -179,7 +179,7 @@ module Rinda
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# <i>Documenation?</i>
|
# <i>Documentation?</i>
|
||||||
#
|
#
|
||||||
class NotifyTemplateEntry < TemplateEntry
|
class NotifyTemplateEntry < TemplateEntry
|
||||||
def initialize(place, event, tuple, expires=nil)
|
def initialize(place, event, tuple, expires=nil)
|
||||||
|
@ -276,7 +276,7 @@ module Rinda
|
||||||
|
|
||||||
#
|
#
|
||||||
# The Tuplespace manages access to the tuples it contains,
|
# The Tuplespace manages access to the tuples it contains,
|
||||||
# ensuring mutual exclusion requirments are met.
|
# ensuring mutual exclusion requirements are met.
|
||||||
#
|
#
|
||||||
class TupleSpace
|
class TupleSpace
|
||||||
include DRbUndumped
|
include DRbUndumped
|
||||||
|
|
|
@ -748,7 +748,7 @@ class TC_Set < Test::Unit::TestCase
|
||||||
assert_same(orig_set1, set1)
|
assert_same(orig_set1, set1)
|
||||||
assert_equal(set3, 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]
|
set1 = Set[1, 2]
|
||||||
set2 = Set[set1, Set[set1, 4], 3]
|
set2 = Set[set1, Set[set1, 4], 3]
|
||||||
|
|
||||||
|
@ -767,7 +767,7 @@ class TC_Set < Test::Unit::TestCase
|
||||||
set1.flatten!
|
set1.flatten!
|
||||||
}
|
}
|
||||||
|
|
||||||
# test5; miscellaneus
|
# test5; miscellaneous
|
||||||
empty = Set[]
|
empty = Set[]
|
||||||
set = Set[Set[empty, "a"],Set[empty, "b"]]
|
set = Set[Set[empty, "a"],Set[empty, "b"]]
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,7 @@ class Shell
|
||||||
# file2: String(optional)
|
# file2: String(optional)
|
||||||
# return: Boolean
|
# return: Boolean
|
||||||
# same as:
|
# 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)
|
# FileTest.command (others)
|
||||||
# example:
|
# example:
|
||||||
# sh[?e, "foo"]
|
# sh[?e, "foo"]
|
||||||
|
@ -214,7 +214,7 @@ class Shell
|
||||||
# CommandProcessor#system(command, *opts)
|
# CommandProcessor#system(command, *opts)
|
||||||
# command: String
|
# command: String
|
||||||
# opts: String
|
# opts: String
|
||||||
# retuen: SystemCommand
|
# return: SystemCommand
|
||||||
# Same as system() function
|
# Same as system() function
|
||||||
# example:
|
# example:
|
||||||
# print sh.system("ls", "-l")
|
# print sh.system("ls", "-l")
|
||||||
|
|
|
@ -25,7 +25,7 @@ public
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add servant klass whose object has request scope. A servant object is
|
# 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
|
# Bare in mind that servant klasses are distinguished by HTTP SOAPAction
|
||||||
# header in request. Client which calls request-scoped servant must have a
|
# header in request. Client which calls request-scoped servant must have a
|
||||||
|
|
|
@ -134,7 +134,7 @@ module Test
|
||||||
"#{@method_name}(#{self.class.name})"
|
"#{@method_name}(#{self.class.name})"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overriden to return #name.
|
# Overridden to return #name.
|
||||||
def to_s
|
def to_s
|
||||||
name
|
name
|
||||||
end
|
end
|
||||||
|
|
|
@ -59,7 +59,7 @@ module Test
|
||||||
tests.empty?
|
tests.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overriden to return the name given the suite at
|
# Overridden to return the name given the suite at
|
||||||
# creation.
|
# creation.
|
||||||
def to_s
|
def to_s
|
||||||
@name
|
@name
|
||||||
|
|
|
@ -158,7 +158,7 @@ ThWait = ThreadsWait
|
||||||
|
|
||||||
|
|
||||||
# Documentation comments:
|
# 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.
|
# comments, and my own rephrasing.
|
||||||
# - I'm not particularly confident that the comments are all exactly correct.
|
# - 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
|
# - The history, etc., up the top appears in the RDoc output. Perhaps it would
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
#
|
#
|
||||||
# : timout
|
# : timout
|
||||||
#
|
#
|
||||||
# The time in seconds to wait for block teminatation.
|
# The time in seconds to wait for block termination.
|
||||||
#
|
#
|
||||||
# : [exception]
|
# : [exception]
|
||||||
#
|
#
|
||||||
# The exception classs to be raised on timeout.
|
# The exception class to be raised on timeout.
|
||||||
#
|
#
|
||||||
#=end
|
#=end
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ module YAML
|
||||||
end
|
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
|
# the type and the constant of the class
|
||||||
#
|
#
|
||||||
def YAML.read_type_class( type, obj_class )
|
def YAML.read_type_class( type, obj_class )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue