mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix 1.9 warnings in RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ef8ed93bc
commit
edfcee2bd2
6 changed files with 15 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Dec 23 16:12:40 2007 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc: Fix 1.9 warnings.
|
||||
|
||||
Sun Dec 23 15:28:37 2007 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rubygems, test/rubygems: Fix new 1.9 warnings.
|
||||
|
|
|
@ -126,6 +126,7 @@ module RDoc
|
|||
@title = title
|
||||
@@sequence.succ!
|
||||
@sequence = @@sequence.dup
|
||||
@comment = nil
|
||||
set_comment(comment)
|
||||
end
|
||||
|
||||
|
@ -385,8 +386,8 @@ module RDoc
|
|||
module_name = modules.shift
|
||||
result = find_module_named(module_name)
|
||||
if result
|
||||
modules.each do |module_name|
|
||||
result = result.find_module_named(module_name)
|
||||
modules.each do |name|
|
||||
result = result.find_module_named(name)
|
||||
break unless result
|
||||
end
|
||||
end
|
||||
|
|
|
@ -140,8 +140,8 @@ module RDoc
|
|||
graph << m
|
||||
|
||||
unless mod.includes.empty?
|
||||
mod.includes.each do |m|
|
||||
m_full_name = find_full_name(m.name, mod)
|
||||
mod.includes.each do |inc|
|
||||
m_full_name = find_full_name(inc.name, mod)
|
||||
if @local_names.include?(m_full_name)
|
||||
@global_graph << DOT::DOTEdge.new('from' => "#{m_full_name.gsub( /:/,'_' )}",
|
||||
'to' => "#{mod.full_name.gsub( /:/,'_' )}",
|
||||
|
|
|
@ -166,7 +166,7 @@ module RDoc
|
|||
|
||||
class C_Parser
|
||||
|
||||
attr_accessor :progress
|
||||
attr_writer :progress
|
||||
|
||||
extend ParserFactory
|
||||
parse_files_matching(/\.(?:([CcHh])\1?|c([+xp])\2|y)\z/)
|
||||
|
|
|
@ -38,7 +38,7 @@ module RubyToken
|
|||
|
||||
class Token
|
||||
NO_TEXT = "??".freeze
|
||||
attr :text
|
||||
attr_accessor :text
|
||||
|
||||
def initialize(line_no, char_no)
|
||||
@line_no = line_no
|
||||
|
@ -53,7 +53,7 @@ module RubyToken
|
|||
self
|
||||
end
|
||||
|
||||
attr_reader :line_no, :char_no, :text
|
||||
attr_reader :line_no, :char_no
|
||||
end
|
||||
|
||||
class TkNode < Token
|
||||
|
@ -1934,9 +1934,8 @@ module RDoc
|
|||
meth.singleton = true
|
||||
else
|
||||
unget_tk dot
|
||||
back_tk.reverse_each do
|
||||
|tk|
|
||||
unget_tk tk
|
||||
back_tk.reverse_each do |token|
|
||||
unget_tk token
|
||||
end
|
||||
name = name_t.name
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ module RI
|
|||
|
||||
def self.path(use_system, use_site, use_home, use_gems, *extra_dirs)
|
||||
path = raw_path(use_system, use_site, use_home, use_gems, *extra_dirs)
|
||||
return path.select { |path| File.directory? path }
|
||||
return path.select { |directory| File.directory? directory }
|
||||
end
|
||||
|
||||
# Returns the selected documentation directories including nonexistent
|
||||
|
|
Loading…
Reference in a new issue