mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge rdoc-6.0.1.
It fixes an installation error of activerecord. https://github.com/ruby/rdoc/issues/571 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
daaebaec79
commit
9fe26ef8de
4 changed files with 10 additions and 3 deletions
2
NEWS
2
NEWS
|
@ -344,7 +344,7 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* RDoc
|
* RDoc
|
||||||
|
|
||||||
* Update to RDoc 6.0.0.
|
* Update to RDoc 6.0.1.
|
||||||
|
|
||||||
* Replace IRB based lexer with Ripper.
|
* Replace IRB based lexer with Ripper.
|
||||||
* https://github.com/ruby/rdoc/pull/512
|
* https://github.com/ruby/rdoc/pull/512
|
||||||
|
|
|
@ -65,7 +65,7 @@ module RDoc
|
||||||
##
|
##
|
||||||
# RDoc version you are using
|
# RDoc version you are using
|
||||||
|
|
||||||
VERSION = '6.0.0'
|
VERSION = '6.0.1'
|
||||||
|
|
||||||
##
|
##
|
||||||
# Method visibilities
|
# Method visibilities
|
||||||
|
|
|
@ -178,6 +178,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
|
||||||
@size = 0
|
@size = 0
|
||||||
@token_listeners = nil
|
@token_listeners = nil
|
||||||
@scanner = RDoc::RipperStateLex.parse(content)
|
@scanner = RDoc::RipperStateLex.parse(content)
|
||||||
|
@content = content
|
||||||
@scanner_point = 0
|
@scanner_point = 0
|
||||||
@prev_seek = nil
|
@prev_seek = nil
|
||||||
@markup = @options.markup
|
@markup = @options.markup
|
||||||
|
@ -2067,6 +2068,12 @@ class RDoc::Parser::Ruby < RDoc::Parser
|
||||||
parse_top_level_statements @top_level
|
parse_top_level_statements @top_level
|
||||||
|
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
|
if @content.include?('<%') and @content.include?('%>') then
|
||||||
|
# Maybe, this is ERB.
|
||||||
|
$stderr.puts "\033[2KRDoc detects ERB file. Skips it for compatibility:"
|
||||||
|
$stderr.puts @file_name
|
||||||
|
return
|
||||||
|
end
|
||||||
bytes = ''
|
bytes = ''
|
||||||
|
|
||||||
if @scanner_point >= @scanner.size
|
if @scanner_point >= @scanner.size
|
||||||
|
|
|
@ -8,7 +8,7 @@ end
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "rdoc"
|
s.name = "rdoc"
|
||||||
s.version = RDoc::VERSION
|
s.version = RDoc::VERSION
|
||||||
s.date = "2017-12-05"
|
s.date = "2017-12-24"
|
||||||
|
|
||||||
s.authors = [
|
s.authors = [
|
||||||
"Eric Hodel",
|
"Eric Hodel",
|
||||||
|
|
Loading…
Reference in a new issue