rdoc 6.1.0.beta2 → 6.1.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rdoc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +6 -5
- data/README.rdoc +1 -1
- data/appveyor.yml +4 -0
- data/lib/rdoc/markup/parser.rb +19 -3
- data/lib/rdoc/markup/to_html_crossref.rb +15 -7
- data/lib/rdoc/markup/to_markdown.rb +1 -1
- data/lib/rdoc/markup/to_rdoc.rb +1 -1
- data/lib/rdoc/options.rb +16 -8
- data/lib/rdoc/parser/c.rb +1 -0
- data/lib/rdoc/ri/driver.rb +1 -1
- data/lib/rdoc/stats/normal.rb +17 -17
- data/lib/rdoc/version.rb +1 -1
- data/rdoc.gemspec +1 -1
- metadata +2 -3
- data/lib/rdoc/markup/regexp_handling.rb +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d859560a361887ed8334e0b2d4b9132253c753749c8cf5103472616a7026c28e
|
4
|
+
data.tar.gz: b846579b87429c04edf76e257833726a1b393f973c009149affc6f052e0b6dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84164cafa2ed1395cbd397fbe0aa4a14e6fd2592c76f0517ed87f70905d46b47dec53c824faa5483ca430d71d94b7183ec67c0fafc8b7a82255d76ca85cf659e
|
7
|
+
data.tar.gz: 4f08be84003318b9c2e64cbabfe0b0fdc3971eacd2927e86a85b7b9d3f03265022a8bb8504ed093db08fbde294792ecaa058f64188af6a173f1fdfde9f8ccc20
|
data/.travis.yml
CHANGED
@@ -4,17 +4,18 @@ before_install:
|
|
4
4
|
- gem update bundler
|
5
5
|
language: ruby
|
6
6
|
rvm:
|
7
|
-
- 2.3.
|
8
|
-
- 2.4.
|
9
|
-
- 2.5.
|
7
|
+
- 2.3.8
|
8
|
+
- 2.4.5
|
9
|
+
- 2.5.3
|
10
10
|
- ruby-head
|
11
11
|
- jruby-9.1.17.0
|
12
|
-
- jruby-9.2.
|
12
|
+
- jruby-9.2.4.1
|
13
13
|
env:
|
14
14
|
global:
|
15
15
|
NOBENCHMARK=1
|
16
16
|
script: rake
|
17
17
|
matrix:
|
18
18
|
allow_failures:
|
19
|
+
- rvm: ruby-head
|
19
20
|
- rvm: jruby-9.1.17.0
|
20
|
-
- rvm: jruby-9.2.
|
21
|
+
- rvm: jruby-9.2.4.1
|
data/README.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
home :: https://github.com/ruby/rdoc
|
4
4
|
rdoc :: https://ruby.github.io/rdoc
|
5
5
|
bugs :: https://github.com/ruby/rdoc/issues
|
6
|
-
build status :: {<img src="https://travis-ci.org/ruby/rdoc.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/ruby/rdoc]
|
6
|
+
build status :: {<img src="https://travis-ci.org/ruby/rdoc.svg?branch=master" alt="Build Status on Travis CI" />}[https://travis-ci.org/ruby/rdoc] {<img src="https://ci.appveyor.com/api/projects/status/github/ruby/rdoc?branch=master&svg=true" alt="Build Status on AppVeyor" />}[https://ci.appveyor.com/project/ruby/rdoc]
|
7
7
|
code quality :: {<img src="https://codeclimate.com/github/ruby/rdoc/badges/gpa.svg" alt="Code Climate">}[https://codeclimate.com/github/ruby/rdoc]
|
8
8
|
|
9
9
|
== Description
|
data/appveyor.yml
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
---
|
2
2
|
init:
|
3
|
+
# Set UTF-8 to use Unicode property because the defualt encoding on AppVeyor is Encoding::IBM437
|
4
|
+
- set RUBYOPT=-EUTF-8
|
3
5
|
# To avoid duplicated executables in PATH, see https://github.com/ruby/spec/pull/468
|
4
6
|
- set PATH=C:\ruby%RUBY_VERSION%\bin;C:\msys64\usr\bin;C:\Program Files\7-Zip;C:\Program Files\AppVeyor\BuildAgent;C:\Program Files\Git\cmd;C:\Windows\system32;C:\Program Files;C:\Windows
|
5
7
|
# Loads trunk build and updates MSYS2 / MinGW to most recent gcc compiler
|
@@ -29,4 +31,6 @@ environment:
|
|
29
31
|
- ruby_version: 23-x64
|
30
32
|
- ruby_version: 24
|
31
33
|
- ruby_version: 24-x64
|
34
|
+
- ruby_version: 25
|
35
|
+
- ruby_version: 25-x64
|
32
36
|
- ruby_version: _trunk
|
data/lib/rdoc/markup/parser.rb
CHANGED
@@ -9,8 +9,9 @@ require 'strscan'
|
|
9
9
|
# RDoc::Markup::ToHTML.
|
10
10
|
#
|
11
11
|
# The parser only handles the block-level constructs Paragraph, List,
|
12
|
-
# ListItem, Heading, Verbatim, BlankLine and
|
13
|
-
# <tt>\+blah\+</tt> is handled separately by
|
12
|
+
# ListItem, Heading, Verbatim, BlankLine, Rule and BlockQuote.
|
13
|
+
# Inline markup such as <tt>\+blah\+</tt> is handled separately by
|
14
|
+
# RDoc::Markup::AttributeManager.
|
14
15
|
#
|
15
16
|
# To see what markup the Parser implements read RDoc. To see how to use
|
16
17
|
# RDoc markup to format text in your program read RDoc::Markup.
|
@@ -381,6 +382,17 @@ class RDoc::Markup::Parser
|
|
381
382
|
when :TEXT then
|
382
383
|
unget
|
383
384
|
parse_text parent, indent
|
385
|
+
when :BLOCKQUOTE then
|
386
|
+
type, _, column = get
|
387
|
+
if type == :NEWLINE
|
388
|
+
type, _, column = get
|
389
|
+
end
|
390
|
+
unget if type
|
391
|
+
bq = RDoc::Markup::BlockQuote.new
|
392
|
+
p :blockquote_start => [data, column] if @debug
|
393
|
+
parse bq, column
|
394
|
+
p :blockquote_end => indent if @debug
|
395
|
+
parent << bq
|
384
396
|
when *LIST_TOKENS then
|
385
397
|
unget
|
386
398
|
parent << build_list(indent)
|
@@ -504,8 +516,12 @@ class RDoc::Markup::Parser
|
|
504
516
|
# text:: followed by spaces or end of line => :NOTE
|
505
517
|
when @s.scan(/(.*?)::( +|\r?$)/) then
|
506
518
|
[:NOTE, @s[1], *token_pos(pos)]
|
519
|
+
# >>> followed by end of line => :BLOCKQUOTE
|
520
|
+
when @s.scan(/>>> *(\w+)?$/) then
|
521
|
+
[:BLOCKQUOTE, @s[1], *token_pos(pos)]
|
507
522
|
# anything else: :TEXT
|
508
|
-
else
|
523
|
+
else
|
524
|
+
@s.scan(/(.*?)( )?\r?$/)
|
509
525
|
token = [:TEXT, @s[1], *token_pos(pos)]
|
510
526
|
|
511
527
|
if @s[2] then
|
@@ -49,16 +49,19 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
|
|
49
49
|
# Creates a link to the reference +name+ if the name exists. If +text+ is
|
50
50
|
# given it is used as the link text, otherwise +name+ is used.
|
51
51
|
|
52
|
-
def cross_reference name, text = nil
|
52
|
+
def cross_reference name, text = nil, code = true
|
53
53
|
lookup = name
|
54
54
|
|
55
55
|
name = name[1..-1] unless @show_hash if name[0, 1] == '#'
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
if name =~ /(.*[^#:])@/
|
58
|
+
text ||= "#{CGI.unescape $'} at <code>#{$1}</code>"
|
59
|
+
code = false
|
60
|
+
else
|
61
|
+
text ||= name
|
62
|
+
end
|
60
63
|
|
61
|
-
link lookup, text
|
64
|
+
link lookup, text, code
|
62
65
|
end
|
63
66
|
|
64
67
|
##
|
@@ -119,13 +122,14 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
|
|
119
122
|
def gen_url url, text
|
120
123
|
return super unless url =~ /\Ardoc-ref:/
|
121
124
|
|
122
|
-
|
125
|
+
name = $'
|
126
|
+
cross_reference name, text, name == text
|
123
127
|
end
|
124
128
|
|
125
129
|
##
|
126
130
|
# Creates an HTML link to +name+ with the given +text+.
|
127
131
|
|
128
|
-
def link name, text
|
132
|
+
def link name, text, code = true
|
129
133
|
if name =~ /(.*[^#:])@/ then
|
130
134
|
name = $1
|
131
135
|
label = $'
|
@@ -139,6 +143,10 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
|
|
139
143
|
else
|
140
144
|
path = ref.as_href @from_path
|
141
145
|
|
146
|
+
if code and RDoc::CodeObject === ref and !(RDoc::TopLevel === ref)
|
147
|
+
text = "<code>#{text}</code>"
|
148
|
+
end
|
149
|
+
|
142
150
|
if path =~ /#/ then
|
143
151
|
path << "-label-#{label}"
|
144
152
|
elsif ref.sections and
|
data/lib/rdoc/markup/to_rdoc.rb
CHANGED
data/lib/rdoc/options.rb
CHANGED
@@ -164,7 +164,7 @@ class RDoc::Options
|
|
164
164
|
##
|
165
165
|
# Files matching this pattern will be excluded
|
166
166
|
|
167
|
-
|
167
|
+
attr_writer :exclude
|
168
168
|
|
169
169
|
##
|
170
170
|
# The list of files to be processed
|
@@ -493,6 +493,20 @@ class RDoc::Options
|
|
493
493
|
end
|
494
494
|
end
|
495
495
|
|
496
|
+
##
|
497
|
+
# Create a regexp for #exclude
|
498
|
+
|
499
|
+
def exclude
|
500
|
+
if @exclude.nil? or Regexp === @exclude then
|
501
|
+
# done, #finish is being re-run
|
502
|
+
@exclude
|
503
|
+
elsif @exclude.empty? then
|
504
|
+
nil
|
505
|
+
else
|
506
|
+
Regexp.new(@exclude.join("|"))
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
496
510
|
##
|
497
511
|
# Completes any unfinished option setup business such as filtering for
|
498
512
|
# existent files, creating a regexp for #exclude and setting a default
|
@@ -505,13 +519,7 @@ class RDoc::Options
|
|
505
519
|
root = @root.to_s
|
506
520
|
@rdoc_include << root unless @rdoc_include.include?(root)
|
507
521
|
|
508
|
-
|
509
|
-
# done, #finish is being re-run
|
510
|
-
elsif @exclude.empty? then
|
511
|
-
@exclude = nil
|
512
|
-
else
|
513
|
-
@exclude = Regexp.new(@exclude.join("|"))
|
514
|
-
end
|
522
|
+
@exclude = self.exclude
|
515
523
|
|
516
524
|
finish_page_dir
|
517
525
|
|
data/lib/rdoc/parser/c.rb
CHANGED
@@ -217,6 +217,7 @@ class RDoc::Parser::C < RDoc::Parser
|
|
217
217
|
def deduplicate_call_seq
|
218
218
|
@methods.each do |var_name, functions|
|
219
219
|
class_name = @known_classes[var_name]
|
220
|
+
next unless class_name
|
220
221
|
class_obj = find_class var_name, class_name
|
221
222
|
|
222
223
|
functions.each_value do |method_names|
|
data/lib/rdoc/ri/driver.rb
CHANGED
@@ -1468,7 +1468,7 @@ or the PAGER environment variable.
|
|
1468
1468
|
out << method.comment
|
1469
1469
|
end
|
1470
1470
|
out << RDoc::Markup::BlankLine.new
|
1471
|
-
out << RDoc::Markup::Paragraph.new("(
|
1471
|
+
out << RDoc::Markup::Paragraph.new("(This method is an alias for #{alias_for.full_name}.)")
|
1472
1472
|
out << RDoc::Markup::BlankLine.new
|
1473
1473
|
out << alias_for.comment
|
1474
1474
|
out << RDoc::Markup::BlankLine.new
|
data/lib/rdoc/stats/normal.rb
CHANGED
@@ -26,28 +26,28 @@ class RDoc::Stats::Normal < RDoc::Stats::Quiet
|
|
26
26
|
files_so_far,
|
27
27
|
@num_files)
|
28
28
|
|
29
|
-
# Print a progress bar, but make sure it fits on a single line. Filename
|
30
|
-
# will be truncated if necessary.
|
31
|
-
size = IO.respond_to?(:console_size) ? IO.console_size : IO.console.winsize
|
32
|
-
terminal_width = size[1].to_i.nonzero? || 80
|
33
|
-
max_filename_size = terminal_width - progress_bar.size
|
34
|
-
|
35
|
-
if filename.size > max_filename_size then
|
36
|
-
# Turn "some_long_filename.rb" to "...ong_filename.rb"
|
37
|
-
filename = filename[(filename.size - max_filename_size) .. -1]
|
38
|
-
filename[0..2] = "..."
|
39
|
-
end
|
40
|
-
|
41
|
-
line = "#{progress_bar}#{filename}"
|
42
29
|
if $stdout.tty?
|
30
|
+
# Print a progress bar, but make sure it fits on a single line. Filename
|
31
|
+
# will be truncated if necessary.
|
32
|
+
size = IO.respond_to?(:console_size) ? IO.console_size : IO.console.winsize
|
33
|
+
terminal_width = size[1].to_i.nonzero? || 80
|
34
|
+
max_filename_size = (terminal_width - progress_bar.size) - 1
|
35
|
+
|
36
|
+
if filename.size > max_filename_size then
|
37
|
+
# Turn "some_long_filename.rb" to "...ong_filename.rb"
|
38
|
+
filename = filename[(filename.size - max_filename_size) .. -1]
|
39
|
+
filename[0..2] = "..."
|
40
|
+
end
|
41
|
+
|
43
42
|
# Clean the line with whitespaces so that leftover output from the
|
44
43
|
# previous line doesn't show up.
|
45
|
-
$stdout.print("\r
|
46
|
-
@last_width =
|
47
|
-
|
44
|
+
$stdout.print("\r\e[K") if @last_width && @last_width > 0
|
45
|
+
@last_width = progress_bar.size + filename.size
|
46
|
+
term = "\r"
|
48
47
|
else
|
49
|
-
|
48
|
+
term = "\n"
|
50
49
|
end
|
50
|
+
$stdout.print(progress_bar, filename, term)
|
51
51
|
$stdout.flush
|
52
52
|
end
|
53
53
|
|
data/lib/rdoc/version.rb
CHANGED
data/rdoc.gemspec
CHANGED
@@ -32,7 +32,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
|
|
32
32
|
s.executables = ["rdoc", "ri"]
|
33
33
|
s.require_paths = ["lib"]
|
34
34
|
# for ruby core repository. It was generated by `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
35
|
-
s.files = [".document", ".gitignore", ".travis.yml", "CONTRIBUTING.rdoc", "CVE-2013-0256.rdoc", "ExampleMarkdown.md", "ExampleRDoc.rdoc", "Gemfile", "History.rdoc", "LEGAL.rdoc", "LICENSE.rdoc", "README.rdoc", "RI.rdoc", "Rakefile", "TODO.rdoc", "appveyor.yml", "bin/console", "bin/setup", "exe/rdoc", "exe/ri", "lib/rdoc.rb", "lib/rdoc/alias.rb", "lib/rdoc/anon_class.rb", "lib/rdoc/any_method.rb", "lib/rdoc/attr.rb", "lib/rdoc/class_module.rb", "lib/rdoc/code_object.rb", "lib/rdoc/code_objects.rb", "lib/rdoc/comment.rb", "lib/rdoc/constant.rb", "lib/rdoc/context.rb", "lib/rdoc/context/section.rb", "lib/rdoc/cross_reference.rb", "lib/rdoc/encoding.rb", "lib/rdoc/erb_partial.rb", "lib/rdoc/erbio.rb", "lib/rdoc/extend.rb", "lib/rdoc/generator.rb", "lib/rdoc/generator/darkfish.rb", "lib/rdoc/generator/json_index.rb", "lib/rdoc/generator/markup.rb", "lib/rdoc/generator/pot.rb", "lib/rdoc/generator/pot/message_extractor.rb", "lib/rdoc/generator/pot/po.rb", "lib/rdoc/generator/pot/po_entry.rb", "lib/rdoc/generator/ri.rb", "lib/rdoc/generator/template/darkfish/.document", "lib/rdoc/generator/template/darkfish/_footer.rhtml", "lib/rdoc/generator/template/darkfish/_head.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml", "lib/rdoc/generator/template/darkfish/class.rhtml", "lib/rdoc/generator/template/darkfish/css/fonts.css", "lib/rdoc/generator/template/darkfish/css/rdoc.css", "lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf", "lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf", "lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf", "lib/rdoc/generator/template/darkfish/images/add.png", "lib/rdoc/generator/template/darkfish/images/arrow_up.png", "lib/rdoc/generator/template/darkfish/images/brick.png", "lib/rdoc/generator/template/darkfish/images/brick_link.png", "lib/rdoc/generator/template/darkfish/images/bug.png", "lib/rdoc/generator/template/darkfish/images/bullet_black.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png", "lib/rdoc/generator/template/darkfish/images/date.png", "lib/rdoc/generator/template/darkfish/images/delete.png", "lib/rdoc/generator/template/darkfish/images/find.png", "lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif", "lib/rdoc/generator/template/darkfish/images/macFFBgHack.png", "lib/rdoc/generator/template/darkfish/images/package.png", "lib/rdoc/generator/template/darkfish/images/page_green.png", "lib/rdoc/generator/template/darkfish/images/page_white_text.png", "lib/rdoc/generator/template/darkfish/images/page_white_width.png", "lib/rdoc/generator/template/darkfish/images/plugin.png", "lib/rdoc/generator/template/darkfish/images/ruby.png", "lib/rdoc/generator/template/darkfish/images/tag_blue.png", "lib/rdoc/generator/template/darkfish/images/tag_green.png", "lib/rdoc/generator/template/darkfish/images/transparent.png", "lib/rdoc/generator/template/darkfish/images/wrench.png", "lib/rdoc/generator/template/darkfish/images/wrench_orange.png", "lib/rdoc/generator/template/darkfish/images/zoom.png", "lib/rdoc/generator/template/darkfish/index.rhtml", "lib/rdoc/generator/template/darkfish/js/darkfish.js", "lib/rdoc/generator/template/darkfish/js/jquery.js", "lib/rdoc/generator/template/darkfish/js/search.js", "lib/rdoc/generator/template/darkfish/page.rhtml", "lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml", "lib/rdoc/generator/template/darkfish/servlet_root.rhtml", "lib/rdoc/generator/template/darkfish/table_of_contents.rhtml", "lib/rdoc/generator/template/json_index/.document", "lib/rdoc/generator/template/json_index/js/navigation.js", "lib/rdoc/generator/template/json_index/js/searcher.js", "lib/rdoc/ghost_method.rb", "lib/rdoc/i18n.rb", "lib/rdoc/i18n/locale.rb", "lib/rdoc/i18n/text.rb", "lib/rdoc/include.rb", "lib/rdoc/known_classes.rb", "lib/rdoc/markdown.kpeg", "lib/rdoc/markdown/entities.rb", "lib/rdoc/markdown/literals.kpeg", "lib/rdoc/markup.rb", "lib/rdoc/markup/attr_changer.rb", "lib/rdoc/markup/attr_span.rb", "lib/rdoc/markup/attribute_manager.rb", "lib/rdoc/markup/attributes.rb", "lib/rdoc/markup/blank_line.rb", "lib/rdoc/markup/block_quote.rb", "lib/rdoc/markup/document.rb", "lib/rdoc/markup/formatter.rb", "lib/rdoc/markup/formatter_test_case.rb", "lib/rdoc/markup/hard_break.rb", "lib/rdoc/markup/heading.rb", "lib/rdoc/markup/include.rb", "lib/rdoc/markup/indented_paragraph.rb", "lib/rdoc/markup/list.rb", "lib/rdoc/markup/list_item.rb", "lib/rdoc/markup/paragraph.rb", "lib/rdoc/markup/parser.rb", "lib/rdoc/markup/pre_process.rb", "lib/rdoc/markup/raw.rb", "lib/rdoc/markup/
|
35
|
+
s.files = [".document", ".gitignore", ".travis.yml", "CONTRIBUTING.rdoc", "CVE-2013-0256.rdoc", "ExampleMarkdown.md", "ExampleRDoc.rdoc", "Gemfile", "History.rdoc", "LEGAL.rdoc", "LICENSE.rdoc", "README.rdoc", "RI.rdoc", "Rakefile", "TODO.rdoc", "appveyor.yml", "bin/console", "bin/setup", "exe/rdoc", "exe/ri", "lib/rdoc.rb", "lib/rdoc/alias.rb", "lib/rdoc/anon_class.rb", "lib/rdoc/any_method.rb", "lib/rdoc/attr.rb", "lib/rdoc/class_module.rb", "lib/rdoc/code_object.rb", "lib/rdoc/code_objects.rb", "lib/rdoc/comment.rb", "lib/rdoc/constant.rb", "lib/rdoc/context.rb", "lib/rdoc/context/section.rb", "lib/rdoc/cross_reference.rb", "lib/rdoc/encoding.rb", "lib/rdoc/erb_partial.rb", "lib/rdoc/erbio.rb", "lib/rdoc/extend.rb", "lib/rdoc/generator.rb", "lib/rdoc/generator/darkfish.rb", "lib/rdoc/generator/json_index.rb", "lib/rdoc/generator/markup.rb", "lib/rdoc/generator/pot.rb", "lib/rdoc/generator/pot/message_extractor.rb", "lib/rdoc/generator/pot/po.rb", "lib/rdoc/generator/pot/po_entry.rb", "lib/rdoc/generator/ri.rb", "lib/rdoc/generator/template/darkfish/.document", "lib/rdoc/generator/template/darkfish/_footer.rhtml", "lib/rdoc/generator/template/darkfish/_head.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml", "lib/rdoc/generator/template/darkfish/class.rhtml", "lib/rdoc/generator/template/darkfish/css/fonts.css", "lib/rdoc/generator/template/darkfish/css/rdoc.css", "lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf", "lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf", "lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf", "lib/rdoc/generator/template/darkfish/images/add.png", "lib/rdoc/generator/template/darkfish/images/arrow_up.png", "lib/rdoc/generator/template/darkfish/images/brick.png", "lib/rdoc/generator/template/darkfish/images/brick_link.png", "lib/rdoc/generator/template/darkfish/images/bug.png", "lib/rdoc/generator/template/darkfish/images/bullet_black.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png", "lib/rdoc/generator/template/darkfish/images/date.png", "lib/rdoc/generator/template/darkfish/images/delete.png", "lib/rdoc/generator/template/darkfish/images/find.png", "lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif", "lib/rdoc/generator/template/darkfish/images/macFFBgHack.png", "lib/rdoc/generator/template/darkfish/images/package.png", "lib/rdoc/generator/template/darkfish/images/page_green.png", "lib/rdoc/generator/template/darkfish/images/page_white_text.png", "lib/rdoc/generator/template/darkfish/images/page_white_width.png", "lib/rdoc/generator/template/darkfish/images/plugin.png", "lib/rdoc/generator/template/darkfish/images/ruby.png", "lib/rdoc/generator/template/darkfish/images/tag_blue.png", "lib/rdoc/generator/template/darkfish/images/tag_green.png", "lib/rdoc/generator/template/darkfish/images/transparent.png", "lib/rdoc/generator/template/darkfish/images/wrench.png", "lib/rdoc/generator/template/darkfish/images/wrench_orange.png", "lib/rdoc/generator/template/darkfish/images/zoom.png", "lib/rdoc/generator/template/darkfish/index.rhtml", "lib/rdoc/generator/template/darkfish/js/darkfish.js", "lib/rdoc/generator/template/darkfish/js/jquery.js", "lib/rdoc/generator/template/darkfish/js/search.js", "lib/rdoc/generator/template/darkfish/page.rhtml", "lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml", "lib/rdoc/generator/template/darkfish/servlet_root.rhtml", "lib/rdoc/generator/template/darkfish/table_of_contents.rhtml", "lib/rdoc/generator/template/json_index/.document", "lib/rdoc/generator/template/json_index/js/navigation.js", "lib/rdoc/generator/template/json_index/js/searcher.js", "lib/rdoc/ghost_method.rb", "lib/rdoc/i18n.rb", "lib/rdoc/i18n/locale.rb", "lib/rdoc/i18n/text.rb", "lib/rdoc/include.rb", "lib/rdoc/known_classes.rb", "lib/rdoc/markdown.kpeg", "lib/rdoc/markdown/entities.rb", "lib/rdoc/markdown/literals.kpeg", "lib/rdoc/markup.rb", "lib/rdoc/markup/attr_changer.rb", "lib/rdoc/markup/attr_span.rb", "lib/rdoc/markup/attribute_manager.rb", "lib/rdoc/markup/attributes.rb", "lib/rdoc/markup/blank_line.rb", "lib/rdoc/markup/block_quote.rb", "lib/rdoc/markup/document.rb", "lib/rdoc/markup/formatter.rb", "lib/rdoc/markup/formatter_test_case.rb", "lib/rdoc/markup/hard_break.rb", "lib/rdoc/markup/heading.rb", "lib/rdoc/markup/include.rb", "lib/rdoc/markup/indented_paragraph.rb", "lib/rdoc/markup/list.rb", "lib/rdoc/markup/list_item.rb", "lib/rdoc/markup/paragraph.rb", "lib/rdoc/markup/parser.rb", "lib/rdoc/markup/pre_process.rb", "lib/rdoc/markup/raw.rb", "lib/rdoc/markup/rule.rb", "lib/rdoc/markup/text_formatter_test_case.rb", "lib/rdoc/markup/to_ansi.rb", "lib/rdoc/markup/to_bs.rb", "lib/rdoc/markup/to_html.rb", "lib/rdoc/markup/to_html_crossref.rb", "lib/rdoc/markup/to_html_snippet.rb", "lib/rdoc/markup/to_joined_paragraph.rb", "lib/rdoc/markup/to_label.rb", "lib/rdoc/markup/to_markdown.rb", "lib/rdoc/markup/to_rdoc.rb", "lib/rdoc/markup/to_table_of_contents.rb", "lib/rdoc/markup/to_test.rb", "lib/rdoc/markup/to_tt_only.rb", "lib/rdoc/markup/verbatim.rb", "lib/rdoc/meta_method.rb", "lib/rdoc/method_attr.rb", "lib/rdoc/mixin.rb", "lib/rdoc/normal_class.rb", "lib/rdoc/normal_module.rb", "lib/rdoc/options.rb", "lib/rdoc/parser.rb", "lib/rdoc/parser/c.rb", "lib/rdoc/parser/changelog.rb", "lib/rdoc/parser/markdown.rb", "lib/rdoc/parser/rd.rb", "lib/rdoc/parser/ripper_state_lex.rb", "lib/rdoc/parser/ruby.rb", "lib/rdoc/parser/ruby_tools.rb", "lib/rdoc/parser/simple.rb", "lib/rdoc/parser/text.rb", "lib/rdoc/rd.rb", "lib/rdoc/rd/block_parser.ry", "lib/rdoc/rd/inline.rb", "lib/rdoc/rd/inline_parser.ry", "lib/rdoc/rdoc.rb", "lib/rdoc/require.rb", "lib/rdoc/ri.rb", "lib/rdoc/ri/driver.rb", "lib/rdoc/ri/formatter.rb", "lib/rdoc/ri/paths.rb", "lib/rdoc/ri/store.rb", "lib/rdoc/ri/task.rb", "lib/rdoc/rubygems_hook.rb", "lib/rdoc/servlet.rb", "lib/rdoc/single_class.rb", "lib/rdoc/stats.rb", "lib/rdoc/stats/normal.rb", "lib/rdoc/stats/quiet.rb", "lib/rdoc/stats/verbose.rb", "lib/rdoc/store.rb", "lib/rdoc/task.rb", "lib/rdoc/text.rb", "lib/rdoc/token_stream.rb", "lib/rdoc/tom_doc.rb", "lib/rdoc/top_level.rb", "lib/rdoc/version.rb", "rdoc.gemspec"]
|
36
36
|
# files from .gitignore
|
37
37
|
s.files << "lib/rdoc/rd/block_parser.rb" << "lib/rdoc/rd/inline_parser.rb" << "lib/rdoc/markdown.rb" << "lib/rdoc/markdown/literals.rb"
|
38
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.0.
|
4
|
+
version: 6.1.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: exe
|
16
16
|
cert_chain: []
|
17
|
-
date: 2018-
|
17
|
+
date: 2018-12-08 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rake
|
@@ -251,7 +251,6 @@ files:
|
|
251
251
|
- lib/rdoc/markup/parser.rb
|
252
252
|
- lib/rdoc/markup/pre_process.rb
|
253
253
|
- lib/rdoc/markup/raw.rb
|
254
|
-
- lib/rdoc/markup/regexp_handling.rb
|
255
254
|
- lib/rdoc/markup/rule.rb
|
256
255
|
- lib/rdoc/markup/text_formatter_test_case.rb
|
257
256
|
- lib/rdoc/markup/to_ansi.rb
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
##
|
3
|
-
# Hold details of a regexp handling sequence
|
4
|
-
|
5
|
-
class RDoc::Markup::RegexpHandling
|
6
|
-
|
7
|
-
##
|
8
|
-
# Regexp handling type
|
9
|
-
|
10
|
-
attr_reader :type
|
11
|
-
|
12
|
-
##
|
13
|
-
# Regexp handling text
|
14
|
-
|
15
|
-
attr_accessor :text
|
16
|
-
|
17
|
-
##
|
18
|
-
# Creates a new regexp handling sequence of +type+ with +text+
|
19
|
-
|
20
|
-
def initialize(type, text)
|
21
|
-
@type, @text = type, text
|
22
|
-
end
|
23
|
-
|
24
|
-
##
|
25
|
-
# Regexp handlings are equal when the have the same text and type
|
26
|
-
|
27
|
-
def ==(o)
|
28
|
-
self.text == o.text && self.type == o.type
|
29
|
-
end
|
30
|
-
|
31
|
-
def inspect # :nodoc:
|
32
|
-
"#<RDoc::Markup::RegexpHandling:0x%x @type=%p, @text=%p>" % [
|
33
|
-
object_id, @type, text.dump]
|
34
|
-
end
|
35
|
-
|
36
|
-
def to_s # :nodoc:
|
37
|
-
"RegexpHandling: type=#{type} text=#{text.dump}"
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
41
|
-
|