зеркало из https://github.com/github/ruby.git
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e5eb459089
Коммит
92f0be2037
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
Mon Apr 19 08:19:11 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
|
||||
|
||||
* 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 <dave@pragprog.com>
|
||||
|
||||
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Allow for
|
||||
|
|
4
dln.c
4
dln.c
|
@ -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:
|
||||
|
@ -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}
|
||||
};
|
||||
|
|
6
io.c
6
io.c
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
|
|
@ -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. <tt>GC.start</tt> 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
|
|||
#
|
||||
# <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")
|
||||
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
@ -1290,7 +1290,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.
|
||||
|
@ -1589,9 +1589,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.
|
||||
#
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||
#++
|
||||
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -389,12 +389,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
|
||||
|
||||
|
@ -693,7 +693,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
|
||||
|
@ -1600,7 +1600,7 @@ e @header.each_key(&block)
|
|||
# xxx HTTPUnknownResponse
|
||||
#
|
||||
class HTTPResponse
|
||||
# true if the reponse has body.
|
||||
# true if the response has body.
|
||||
def HTTPResponse.body_permitted?
|
||||
self::HAS_BODY
|
||||
end
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -425,7 +425,7 @@ module Net
|
|||
# to OpenSSL::SSL::VERIFY_PEER.
|
||||
# +certs+ is a file or directory holding CA certs to use to verify the
|
||||
# server cert; Defaults to nil.
|
||||
# +port+ is port to establish the SSL conection on; Defaults to 995.
|
||||
# +port+ is port to establish the SSL connection on; Defaults to 995.
|
||||
def enable_ssl(verify = OpenSSL::SSL::VERIFY_PEER, certs = nil,
|
||||
port = POP3.default_pop3s_port)
|
||||
@usessl = true
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -45,7 +45,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'
|
||||
|
|
|
@ -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>
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
||||
#
|
||||
# <i>Documenation?</i>
|
||||
# <i>Documentation?</i>
|
||||
#
|
||||
class WaitTemplateEntry < TemplateEntry
|
||||
def initialize(place, ary, expires=nil)
|
||||
|
@ -179,7 +179,7 @@ module Rinda
|
|||
end
|
||||
|
||||
#
|
||||
# <i>Documenation?</i>
|
||||
# <i>Documentation?</i>
|
||||
#
|
||||
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
|
||||
|
|
|
@ -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"]]
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
2
pack.c
2
pack.c
|
@ -343,7 +343,7 @@ num2i32(x)
|
|||
if (TYPE(x) == T_BIGNUM) {
|
||||
return rb_big2ulong_pack(x);
|
||||
}
|
||||
rb_raise(rb_eTypeError, "cannot conver %s to `integer'", rb_obj_classname(x));
|
||||
rb_raise(rb_eTypeError, "cannot convert %s to `integer'", rb_obj_classname(x));
|
||||
return 0; /* not reached */
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче