* lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.

* lib/rdoc/generator/html.rb: ditto.

* lib/rdoc/options.rb: Fix shadowed variable warning.

* lib/webrick/httprequest.rb: Fix redefined method warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2008-04-04 21:16:19 +00:00
Родитель 3467a1754c
Коммит be710a0391
5 изменённых файлов: 17 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,13 @@
Sat Apr 5 05:50:57 2008 Eric Hodel <drbrain@segment7.net>
* lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
* lib/rdoc/generator/html.rb: ditto.
* lib/rdoc/options.rb: Fix shadowed variable warning.
* lib/webrick/httprequest.rb: Fix redefined method warning.
Fri Apr 4 23:24:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
* re.c (rb_memsearch_qs): wrong boundary condition.

Просмотреть файл

@ -68,6 +68,7 @@ class RDoc::Generator::HTML
def initialize(options) #:not-new:
@options = options
load_html_template
@main_page_path = nil
end
##
@ -256,7 +257,7 @@ class RDoc::Generator::HTML
end
unless @main_page_path then
file = @files.find { |file| file.document_self }
file = @files.find { |context| context.document_self }
@main_page_path = file.path if file
end

Просмотреть файл

@ -189,7 +189,7 @@ class RDoc::Options
def parse(argv)
accessors = []
opt = OptionParser.new do |opt|
opts = OptionParser.new do |opt|
opt.program_name = File.basename $0
opt.version = RDoc::VERSION
opt.summary_indent = ' ' * 4
@ -513,7 +513,7 @@ Usage: #{opt.program_name} [options] [names...]
end
end
opt.parse! argv
opts.parse! argv
@files = argv.dup
@ -539,7 +539,7 @@ Usage: #{opt.program_name} [options] [names...]
end
rescue OptionParser::InvalidArgument, OptionParser::InvalidOption => e
puts opt
puts opts
puts
puts e
exit 1

Просмотреть файл

@ -23,6 +23,7 @@ require "rdoc/markup/preprocess"
require "rdoc/parsers/parserfactory"
$TOKEN_DEBUG ||= nil
#$TOKEN_DEBUG = $DEBUG_RDOC
# Definitions of all tokens involved in the lexical analysis

Просмотреть файл

@ -23,7 +23,7 @@ module WEBrick
attr_reader :request_method, :unparsed_uri, :http_version
# Request-URI
attr_reader :request_uri, :host, :port, :path
attr_reader :request_uri, :path
attr_accessor :script_name, :path_info, :query_string
# Header and entity body