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