mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc: Update to RDoc master 900de99. Changes include:
Fixed documentation display of constants Fixed handling of unknown parsers * test/rdoc: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ff9f9c6d84
commit
f462cdb5d9
5 changed files with 26 additions and 12 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
Tue Dec 3 09:42:27 2013 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* lib/rdoc: Update to RDoc master 900de99. Changes include:
|
||||||
|
|
||||||
|
Fixed documentation display of constants
|
||||||
|
|
||||||
|
Fixed handling of unknown parsers
|
||||||
|
|
||||||
|
* test/rdoc: ditto.
|
||||||
|
|
||||||
Mon Dec 2 22:30:10 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
Mon Dec 2 22:30:10 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* hash.c (getenv): fixed test failures introduced by r43950.
|
* hash.c (getenv): fixed test failures introduced by r43950.
|
||||||
|
|
|
@ -64,7 +64,7 @@ module RDoc
|
||||||
##
|
##
|
||||||
# RDoc version you are using
|
# RDoc version you are using
|
||||||
|
|
||||||
VERSION = '4.1.0.preview.2'
|
VERSION = '4.1.0.preview.3'
|
||||||
|
|
||||||
##
|
##
|
||||||
# Method visibilities
|
# Method visibilities
|
||||||
|
|
|
@ -63,15 +63,7 @@ class RDoc::Constant < RDoc::CodeObject
|
||||||
# for a documented class or module.
|
# for a documented class or module.
|
||||||
|
|
||||||
def documented?
|
def documented?
|
||||||
return true if super
|
super or is_alias_for && is_alias_for.documented?
|
||||||
return false unless @is_alias_for
|
|
||||||
case @is_alias_for
|
|
||||||
when String then
|
|
||||||
found = @store.find_class_or_module @is_alias_for
|
|
||||||
return false unless found
|
|
||||||
@is_alias_for = found
|
|
||||||
end
|
|
||||||
@is_alias_for.documented?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -268,9 +268,11 @@ class RDoc::Parser
|
||||||
|
|
||||||
markup = Regexp.escape markup
|
markup = Regexp.escape markup
|
||||||
|
|
||||||
RDoc::Parser.parsers.find do |_, parser|
|
_, selected = RDoc::Parser.parsers.find do |_, parser|
|
||||||
/^#{markup}$/i =~ parser.name.sub(/.*:/, '')
|
/^#{markup}$/i =~ parser.name.sub(/.*:/, '')
|
||||||
end.last
|
end
|
||||||
|
|
||||||
|
selected
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -292,6 +292,16 @@ class TestRDocParser < RDoc::TestCase
|
||||||
assert_nil parser
|
assert_nil parser
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_class_use_markup_unknown
|
||||||
|
content = <<-CONTENT
|
||||||
|
# :markup: RDoc
|
||||||
|
CONTENT
|
||||||
|
|
||||||
|
parser = @RP.use_markup content
|
||||||
|
|
||||||
|
assert_nil parser
|
||||||
|
end
|
||||||
|
|
||||||
def test_initialize
|
def test_initialize
|
||||||
@RP.new @top_level, @fn, '', @options, nil
|
@RP.new @top_level, @fn, '', @options, nil
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue