summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
-rw-r--r--lib/cgi/session.rb4
-rw-r--r--lib/cgi/session/pstore.rb2
-rw-r--r--lib/csv.rb8
-rw-r--r--lib/delegate.rb2
-rw-r--r--lib/erb.rb2
-rw-r--r--lib/forwardable.rb2
-rw-r--r--lib/irb/extend-command.rb2
-rw-r--r--lib/irb/help.rb2
-rw-r--r--lib/irb/notifier.rb2
-rw-r--r--lib/irb/ruby-lex.rb2
-rw-r--r--lib/irb/slex.rb2
-rw-r--r--lib/logger.rb2
-rw-r--r--lib/net/https.rb4
-rw-r--r--lib/net/imap.rb2
-rw-r--r--lib/open-uri.rb2
-rw-r--r--lib/optparse.rb6
-rw-r--r--lib/pathname.rb2
-rw-r--r--lib/pstore.rb4
-rwxr-xr-xlib/rake.rb14
-rw-r--r--lib/rdoc.rb4
-rw-r--r--lib/rdoc/README4
-rw-r--r--lib/rdoc/generator.rb4
-rw-r--r--lib/rdoc/generator/html/html.rb2
-rw-r--r--lib/rdoc/generator/ri.rb2
-rw-r--r--lib/rdoc/markup.rb6
-rw-r--r--lib/rdoc/markup/fragments.rb2
-rw-r--r--lib/rdoc/options.rb2
-rw-r--r--lib/rdoc/parsers/parse_c.rb8
-rw-r--r--lib/rdoc/parsers/parse_f95.rb8
-rw-r--r--lib/rdoc/parsers/parse_rb.rb2
-rw-r--r--lib/rdoc/rdoc.rb2
-rw-r--r--lib/rdoc/ri/descriptions.rb2
-rw-r--r--lib/resolv.rb4
-rw-r--r--lib/rexml/attlistdecl.rb2
-rw-r--r--lib/rexml/document.rb2
-rw-r--r--lib/rexml/element.rb6
-rw-r--r--lib/rexml/formatters/pretty.rb2
-rw-r--r--lib/rexml/functions.rb2
-rw-r--r--lib/rexml/text.rb2
-rw-r--r--lib/rexml/xpath.rb2
-rw-r--r--lib/rinda/ring.rb4
-rw-r--r--lib/rubygems/command.rb2
-rw-r--r--lib/rubygems/command_manager.rb4
-rw-r--r--lib/rubygems/commands/cert_command.rb2
-rw-r--r--lib/rubygems/dependency_installer.rb4
-rw-r--r--lib/rubygems/gem_openssl.rb2
-rw-r--r--lib/rubygems/requirement.rb2
-rw-r--r--lib/rubygems/security.rb4
-rw-r--r--lib/rubygems/server.rb2
-rw-r--r--lib/rubygems/source_info_cache.rb2
-rw-r--r--lib/rubygems/specification.rb2
-rw-r--r--lib/rubygems/user_interaction.rb4
-rw-r--r--lib/shell.rb2
-rw-r--r--lib/shell/process-controller.rb2
-rw-r--r--lib/webrick/httpproxy.rb4
-rw-r--r--lib/webrick/httpresponse.rb2
56 files changed, 90 insertions, 90 deletions
@@ -230,7 +230,7 @@ class CGI
# session_path:: the path for which this session applies. Defaults
# to the directory of the CGI script.
#
- # +option+ is also passed on to the session storage class initialiser; see
# the documentation for each session storage class for the options
# they support.
#
@@ -357,7 +357,7 @@ class CGI
# characters; automatically generated session ids observe
# this requirement.
#
- # +option+ is a hash of options for the initialiser. The
# following options are recognised:
#
# tmpdir:: the directory to use for storing the FileStore
@@ -30,7 +30,7 @@ class CGI
# characters; automatically generated session ids observe
# this requirement.
#
- # +option+ is a hash of options for the initialiser. The
# following options are recognised:
#
# tmpdir:: the directory to use for storing the PStore
@@ -813,7 +813,7 @@ class CSV
# <b><tt>:all</tt></b>:: All built-in converters. A combination of
# <tt>:date_time</tt> and <tt>:numeric</tt>.
#
- # This Hash is intetionally left unfrozen and users should feel free to add
# values to it that can be accessed by all CSV objects.
#
# To add a combo field, the value should be an Array of names. Combo fields
@@ -1148,7 +1148,7 @@ class CSV
# Hash containing any +options+ CSV::new() understands.
#
# This method works like Ruby's open() call, in that it will pass a CSV object
- # to a provided block and close it when the block termminates, or it will
# return the CSV object when no block is provided. (*Note*: This is different
# from the Ruby 1.8 CSV library which passed rows to the block. Use
# CSV::foreach() for that behavior.)
@@ -1313,7 +1313,7 @@ class CSV
# unconverted_fields() method will be
# added to all returned rows (Array or
# CSV::Row) that will return the fields
- # as they were before convertion. Note
# that <tt>:headers</tt> supplied by
# Array or String were not fields of the
# document and thus will have an empty
@@ -1744,7 +1744,7 @@ class CSV
instance_variable_set("@#{field_name}", Array.new)
- # find the correct method to add the coverters
convert = method(field_name.to_s.sub(/ers\Z/, ""))
# load converters
@@ -264,7 +264,7 @@ end
# your class.
#
# class MyClass < DelegateClass( ClassToDelegateTo ) # Step 1
-# def initiaize
# super(obj_of_ClassToDelegateTo) # Step 2
# end
# end
@@ -658,7 +658,7 @@ class ERB
#
# def build
# b = binding
- # # create and run templates, filling member data variebles
# ERB.new(<<-'END_PRODUCT'.gsub(/^\s+/, ""), 0, "", "@product").result b
# <%= PRODUCT[:name] %>
# <%= PRODUCT[:desc] %>
@@ -38,7 +38,7 @@
# @q = [ ] # prepare delegate object
# end
#
-# # setup prefered interface, enq() and deq()...
# def_delegator :@q, :push, :enq
# def_delegator :@q, :shift, :deq
#
@@ -111,7 +111,7 @@ module IRB
end
end
- # aliases = [commans_alias, flag], ...
def self.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases)
case cmd_class
when Symbol
@@ -1,5 +1,5 @@
#
-# irb/help.rb - print usase module
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA([email protected])
@@ -1,5 +1,5 @@
#
-# notifier.rb - optput methods used by irb
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA([email protected])
@@ -1,5 +1,5 @@
#
-# irb/ruby-lex.rb - ruby lexcal analizer
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA([email protected])
@@ -1,5 +1,5 @@
#
-# irb/slex.rb - symple lex analizer
# $Release Version: 0.9.5$
# $Revision$
# by Keiju ISHITSUKA([email protected])
@@ -1,4 +1,4 @@
-# logger.rb - saimple logging utility
# Copyright (C) 2000-2003, 2005 NAKAMURA, Hiroshi <[email protected]>.
require 'monitor'
@@ -65,11 +65,11 @@ It can be replaced by the following code:
: key, key=((|key|))
Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
- (This method is appeared in Michal Rokos's OpenSSL extention.)
: cert, cert=((|cert|))
Sets an OpenSSL::X509::Certificate object as client certificate
- (This method is appeared in Michal Rokos's OpenSSL extention).
: ca_file, ca_file=((|path|))
Sets path of a CA certification file in PEM format.
@@ -3243,7 +3243,7 @@ module Net
return @nc[nonce]
end
- # some reponses needs quoting
def qdval(k, v)
return if k.nil? or v.nil?
if %w"username authzid realm nonce cnonce digest-uri qop".include? k
@@ -657,7 +657,7 @@ module OpenURI
# :redirect=>false is used to disable HTTP redirects at all.
# OpenURI::HTTPRedirect exception raised on redirection.
# It is true by default.
- # The true means redirectoins between http and ftp is permitted.
#
def open(*rest, &block)
OpenURI.open_uri(self, *rest, &block)
@@ -826,7 +826,7 @@ class OptionParser
#
# Directs to reject specified class argument.
#
- # +t+:: Argument class speficier, any object including Class.
#
# reject(t)
#
@@ -1037,13 +1037,13 @@ class OptionParser
# "-x[OPTIONAL]"
# "-x"
# There is also a special form which matches character range (not full
- # set of regural expression):
# "-[a-z]MANDATORY"
# "-[a-z][OPTIONAL]"
# "-[a-z]"
#
# [Argument style and description:]
- # Instead of specifying mandatory or optional orguments directly in the
# switch parameter, this separate parameter can be used.
# "=MANDATORY"
# "=[OPTIONAL]"
@@ -262,7 +262,7 @@ class Pathname
SEPARATOR_PAT = /#{Regexp.quote File::SEPARATOR}/
end
- # Return a pathname which the extention of the basename is substituted by
# <i>repl</i>.
#
# If self has no extension part, <i>repl</i> is appended.
@@ -13,14 +13,14 @@ require "digest/md5"
require "thread"
#
-# PStore implements a file based persistance mechanism based on a Hash. User
# code can store hierarchies of Ruby objects (values) into the data store file
# by name (keys). An object hierarchy may be just a single object. User code
# may later read values back from the data store or even update data, as needed.
#
# The transactional behavior ensures that any changes succeed or fail together.
# This can be used to ensure that the data store is not left in a transitory
-# state, where some values were upated but others were not.
#
# Behind the scenes, Ruby objects are stored to the data store file with
# Marshal. That carries the usual limitations. Proc objects cannot be
@@ -72,7 +72,7 @@ end # module Module
#
class String
rake_extension("ext") do
- # Replace the file extension with +newext+. If there is no extenson on
# the string, append the new extension to the end. If the new extension
# is not given, or is the empty string, remove any existing extension.
#
@@ -145,7 +145,7 @@ class String
# * <b>%x</b> -- The file extension of the path. An empty string if there
# is no extension.
# * <b>%X</b> -- Everything *but* the file extension.
- # * <b>%s</b> -- The alternate file separater if defined, otherwise use
# the standard file separator.
# * <b>%%</b> -- A percent sign.
#
@@ -160,8 +160,8 @@ class String
# 'a/b/c/d/file.txt'.pathmap("%-2d") => 'c/d'
#
# Also the %d, %p, $f, $n, %x, and %X operators can take a
- # pattern/replacement argument to perform simple string substititions on a
- # particular part of the path. The pattern and replacement are speparated
# by a comma and are enclosed by curly braces. The replacement spec comes
# after the % character but before the operator letter. (e.g.
# "%{old,new}d"). Muliple replacement specs should be separated by
@@ -1029,7 +1029,7 @@ module RakeFileUtils
oldvalue
end
- # Use this function to prevent protentially destructive ruby code from
# running when the :nowrite flag is set.
#
# Example:
@@ -1352,7 +1352,7 @@ module Rake
private :resolve_exclude
# Return a new FileList with the results of running +sub+ against each
- # element of the oringal list.
#
# Example:
# FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
@@ -1942,7 +1942,7 @@ module Rake
[name, args]
end
- # Provide standard execption handling for the given block.
def standard_exception_handling
begin
yield
@@ -20,7 +20,7 @@ $DEBUG_RDOC = nil
# * If you want to include extensions written in C, see RDoc::C_Parser
# * For information on the various markups available in comment blocks, see
# RDoc::Markup.
-# * If you want to drive RDoc programatically, see RDoc::RDoc.
# * If you want to use the library to format text blocks into HTML, have a look
# at RDoc::Markup.
# * If you want to try writing your own HTML output template, see
@@ -206,7 +206,7 @@ $DEBUG_RDOC = nil
# Stop and start adding new documentation elements to the current container.
# For example, if a class has a number of constants that you don't want to
# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
-# last. If you don't specifiy a +:startdoc:+ by the end of the container,
# disables documentation for the entire class or module.
#
# = Other stuff
@@ -17,7 +17,7 @@ document methods, classes, and so on.
* If you want to include extensions written in C, see RDoc::C_Parser
* For information on the various markups available in comment blocks, see
RDoc::Markup.
-* If you want to drive RDoc programatically, see RDoc::RDoc.
* If you want to use the library to format text blocks into HTML, have a look
at RDoc::Markup.
* If you want to try writing your own HTML output template, see
@@ -196,7 +196,7 @@ Comment blocks can contain other directives:
Stop and start adding new documentation elements to the current container.
For example, if a class has a number of constants that you don't want to
document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
- last. If you don't specifiy a +:startdoc:+ by the end of the container,
disables documentation for the entire class or module.
= Other stuff
@@ -7,12 +7,12 @@ require 'rdoc/template'
module RDoc::Generator
##
- # Name of sub-direcory that holds file descriptions
FILE_DIR = "files"
##
- # Name of sub-direcory that holds class descriptions
CLASS_DIR = "classes"
@@ -7,7 +7,7 @@ require 'rdoc/generator/html/one_page_html'
# This is a template for RDoc that uses XHTML 1.0 Transitional and dictates a
# bit more of the appearance of the output to cascading stylesheets than the
# default. It was designed for clean inline code display, and uses DHTMl to
-# toggle the visbility of each method's source with each click on the '[source]'
# link.
#
# == Authors
@@ -45,7 +45,7 @@ class RDoc::Generator::RI
def process_class(from_class)
generate_class_info(from_class)
- # now recure into this classes constituent classess
from_class.each_classmodule do |mod|
process_class(mod)
end
@@ -17,7 +17,7 @@ require 'rdoc'
# RDoc::Markup is intended to be the basis for a family of tools which share
# the common requirement that simple, plain-text should be rendered in a
# variety of different output formats and media. It is envisaged that
-# RDoc::Markup could be the basis for formating RDoc style comment blocks,
# Wiki entries, and online FAQs.
#
# = Basic Formatting
@@ -129,7 +129,7 @@ require 'rdoc'
#
# You can extend the RDoc::Markup parser to recognise new markup
# sequences, and to add special processing for text that matches a
-# regular epxression. Here we make WikiWords significant to the parser,
# and also make the sequences {word} and \<no>text...</no> signify
# strike-through text. When then subclass the HTML output class to deal
# with these:
@@ -197,7 +197,7 @@ class RDoc::Markup
##
# Add to the sequences used to add formatting to an individual word (such
- # as *bold*). Matching entries will generate attibutes that the output
# formatters can recognize by their +name+.
def add_word_pair(start, stop, name)
@@ -12,7 +12,7 @@ class RDoc::Markup
attr_accessor :type
######
- # This is a simple factory system that lets us associate fragement
# types (a string) with a subclass of fragment
TYPE_MAP = {}
@@ -571,7 +571,7 @@ Usage: #{opt.program_name} [options] [names...]
end
end
- # Check that the right version of 'dot' is available. Unfortuately this
# doesn't work correctly under Windows NT, so we'll bypass the test under
# Windows.
@@ -117,10 +117,10 @@ module RDoc
# method in the HTML output. This method must be in the same source file
# as the rb_define_method.
#
- # C classes can be diagramed (see /tc/dl/ruby/ruby/error.c), and RDoc
# integrates C and Ruby source into one tree
#
- # The comment blocks may include special direcives:
#
# [Document-class: <i>name</i>]
# This comment block is documentation for the given class. Use this
@@ -131,10 +131,10 @@ module RDoc
# automatically find the method from it's declaration
#
# [call-seq: <i>text up to an empty line</i>]
- # Because C source doesn't give descripive names to Ruby-level parameters,
# you need to document the calling sequence explicitly
#
- # In additon, RDoc assumes by default that the C method implementing a
# Ruby function is in the same source file as the rb_define_method call.
# If this isn't the case, add the comment
#
@@ -201,7 +201,7 @@ module RDoc
@progress = $stderr unless options.quiet
end
- # devine code constructs
def scan
# remove private comment
@@ -1065,7 +1065,7 @@ module RDoc
#
# If "all" argument is true, information of all arguments are returned.
# If "modified_params" is true, list of arguments are decorated,
- # for exameple, optional arguments are parenthetic as "[arg]".
#
def find_arguments(args, text, all=nil, indent=nil, modified_params=nil)
return unless args || all
@@ -1143,8 +1143,8 @@ EOF
#
# Comments just after module or subprogram, or arguments are
- # returnd. If "COMMENTS_ARE_UPPER" is true, comments just before
- # modules or subprograms are returnd
#
def find_comments text
return "" unless text
@@ -8,7 +8,7 @@
# This file contains stuff stolen outright from:
#
# rtags.rb -
-# ruby-lex.rb - ruby lexcal analizer
# ruby-token.rb - ruby tokens
# by Keiju ISHITSUKA (Nippon Rational Inc.)
#
@@ -134,7 +134,7 @@ module RDoc
# subdirectories.
#
# The effect of this is that if you want a file with a non-standard
- # extension parsed, you must name it explicity.
def normalized_file_list(options, relative_files, force_doc = false,
exclude_pattern = nil)
@@ -83,7 +83,7 @@ class RDoc::RI::ModuleDescription < RDoc::RI::Description
attr_accessor :constants
attr_accessor :includes
- # merge in another class desscription into this one
def merge_in(old)
merge(@class_methods, old.class_methods)
merge(@instance_methods, old.instance_methods)
@@ -252,7 +252,7 @@ class Resolv
end
##
- # Iterates over all hostnames for +address+ retrived from the hosts file.
def each_name(address, &proc)
lazy_initialize
@@ -2026,7 +2026,7 @@ class Resolv
end
##
- # A String reperesentation of this IPv4 address.
##
# The raw IPv4 address as a String.
@@ -44,7 +44,7 @@ module REXML
@pairs.keys.include? key
end
- # Itterate over the key/value pairs:
# attlist_decl.each { |attribute_name, attribute_value| ... }
def each(&block)
@pairs.each(&block)
@@ -147,7 +147,7 @@ module REXML
# A controversial point is whether Document should always write the XML
# declaration (<?xml version='1.0'?>) whether or not one is given by the
# user (or source document). REXML does not write one if one was not
- # specified, because it adds unneccessary bandwidth to applications such
# as XML-RPC.
#
# See also the classes in the rexml/formatters package for the proper way
@@ -360,7 +360,7 @@ module REXML
# Iterates through the children, yielding for each Element that
# has a particular text set.
# text::
- # the text to search for. If nil, or not supplied, will itterate
# over all +Element+ children that contain at least one +Text+ node.
# max::
# (optional) causes this method to return after yielding
@@ -1003,7 +1003,7 @@ module REXML
end
alias :size :length
- # Itterates over the attributes of an Element. Yields actual Attribute
# nodes, not String values.
#
# doc = Document.new '<a x="1" y="2"/>'
@@ -1020,7 +1020,7 @@ module REXML
end
end
- # Itterates over each attribute of an Element, yielding the expanded name
# and value as a pair of Strings.
#
# doc = Document.new '<a x="1" y="2"/>'
@@ -126,7 +126,7 @@ module REXML
end
def wrap(string, width)
- # Recursivly wrap string at width.
return string if string.length <= width
place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
return string[0,place] + "\n" + wrap(string[place+1..-1], width)
@@ -235,7 +235,7 @@ module REXML
# from string then we ignore the second &
# subsequent mappings
#
- # if a charactcer maps to nil then we delete it
# in the output. This happens if the from
# string is longer than the to string
#
@@ -261,7 +261,7 @@ module REXML
end
def wrap(string, width, addnewline=false)
- # Recursivly wrap string at width.
return string if string.length <= width
place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
if addnewline then
@@ -30,7 +30,7 @@ module REXML
parser.parse(path, element).flatten[0]
end
- # Itterates over nodes that match the given path, calling the supplied
# block with the match.
# element::
# The context element
@@ -19,7 +19,7 @@ module Rinda
# 1. A RingServer begins listening on the broadcast UDP address.
# 2. A RingFinger sends a UDP packet containing the DRb URI where it will
# listen for a reply.
- # 3. The RingServer recieves the UDP packet and connects back to the
# provided DRb URI with the DRb service.
class RingServer
@@ -119,7 +119,7 @@ module Rinda
end
##
- # Contains all discoverd TupleSpaces except for the primary.
def self.to_a
finger.to_a
@@ -342,7 +342,7 @@ module Gem
add_common_option('-V', '--[no-]verbose',
'Set the verbose level of output') do |value, options|
- # Set us to "really verbose" so the progess meter works
if Gem.configuration.verbose and value then
Gem.configuration.verbose = 1
else
@@ -16,7 +16,7 @@ module Gem
class CommandManager
include UserInteraction
- # Return the authoratative instance of the command manager.
def self.instance
@command_manager ||= CommandManager.new
end
@@ -69,7 +69,7 @@ module Gem
@commands.keys.collect {|key| key.to_s}.sort
end
- # Run the config specificed by +args+.
def run(args)
process_args(args)
rescue StandardError, Timeout::Error => ex
@@ -19,7 +19,7 @@ class Gem::Commands::CertCommand < Gem::Command
Dir::glob(glob_str) do |path|
begin
cert = OpenSSL::X509::Certificate.new(File.read(path))
- # this could proably be formatted more gracefully
say cert.subject.to_s
rescue OpenSSL::X509::CertificateError
next
@@ -53,8 +53,8 @@ class Gem::DependencyInstaller
##
# Returns a list of pairs of gemspecs and source_uris that match
# Gem::Dependency +dep+ from both local (Dir.pwd) and remote (Gem.sources)
- # sources. Gems are sorted with newer gems prefered over older gems, and
- # local gems prefered over remote gems.
def find_gems_with_sources(dep)
gems_and_sources = []
@@ -17,7 +17,7 @@ module Gem
@ssl_available
end
- # Set the value of the ssl_avilable flag.
attr_writer :ssl_available
# Ensure that SSL is available. Throw an exception if it is not.
@@ -108,7 +108,7 @@ class Gem::Requirement
end
##
- # Is the requirement satifised by +version+.
#
# version:: [Gem::Version] the version to compare against
# return:: [Boolean] true if this requirement is satisfied by
@@ -557,7 +557,7 @@ module Gem::Security
#
# Medium security policy: verify the signing certificate, verify the signing
# certificate chain all the way to the root certificate, and only trust root
- # certificates that we have explicity allowed trust for.
#
# This security policy is reasonable, but it allows unsigned packages, so a
# malicious person could simply delete the package signature and pass the
@@ -576,7 +576,7 @@ module Gem::Security
# High security policy: only allow signed gems to be installed, verify the
# signing certificate, verify the signing certificate chain all the way to
# the root certificate, and only trust root certificates that we have
- # explicity allowed trust for.
#
# This security policy is significantly more difficult to bypass, and offers
# a reasonable guarantee that the contents of the gem have not been altered.
@@ -9,7 +9,7 @@ require 'rubygems'
# Gem::Server and allows users to serve gems for consumption by
# `gem --remote-install`.
#
-# gem_server starts an HTTP server on the given port and serves the folowing:
# * "/" - Browsing of gem spec files for installed gems
# * "/Marshal" - Full SourceIndex dump of metadata for installed gems
# * "/yaml" - YAML dump of metadata for installed gems - deprecated
@@ -8,7 +8,7 @@ require 'rubygems/user_interaction'
# SourceInfoCache stores a copy of the gem index for each gem source.
#
# There are two possible cache locations, the system cache and the user cache:
-# * The system cache is prefered if it is writable or can be created.
# * The user cache is used otherwise
#
# Once a cache is selected, it will be used for all operations.
@@ -40,7 +40,7 @@ module Gem
# Allows deinstallation of gems with legacy platforms.
attr_accessor :original_platform # :nodoc:
- # ------------------------- Specification version contstants.
# The the version number of a specification that does not specify one
# (i.e. RubyGems 0.7 or earlier).
@@ -17,7 +17,7 @@ module Gem
DefaultUserInteraction.ui
end
- # Set the default UI. If the default UI is never explicity set, a
# simple console based UserInteraction will be used automatically.
def ui=(new_ui)
DefaultUserInteraction.ui = new_ui
@@ -182,7 +182,7 @@ module Gem
ask(question) if question
end
- # Terminate the appliation normally, running any exit handlers
# that might have been defined.
def terminate_interaction(status = 0)
raise Gem::SystemExitException, status
@@ -79,7 +79,7 @@ class Shell
@default_record_separator = rs
end
- # os resource mutecs
mutex_methods = ["unlock", "lock", "locked?", "synchronize", "try_lock", "exclusive_unlock"]
for m in mutex_methods
def_delegator("@debug_output_mutex", m, "debug_output_"+m.to_s)
@@ -84,7 +84,7 @@ class Shell
end
end
- # for shell-command complete finish at this prosess exit.
USING_AT_EXIT_WHEN_PROCESS_EXIT = true
at_exit do
wait_to_finish_all_process_controllers unless $@
@@ -186,7 +186,7 @@ module WEBrick
private
- # Some header fields shuold not be transfered.
HopByHop = %w( connection keep-alive proxy-authenticate upgrade
proxy-authorization te trailers transfer-encoding )
ShouldNotTransfer = %w( set-cookie proxy-connection )
@@ -272,7 +272,7 @@ module WEBrick
response = yield(http, path, header)
end
- # Persistent connction requirements are mysterious for me.
# So I will close the connection in every response.
res['proxy-connection'] = "close"
res['connection'] = "close"
@@ -131,7 +131,7 @@ module WEBrick
end
end
- # Determin the message length (RFC2616 -- 4.4 Message Length)
if @status == 304 || @status == 204 || HTTPStatus::info?(@status)
@header.delete('content-length')
@body = ""