rdoc 6.3.0 → 6.3.2
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/Rakefile +16 -14
- data/lib/rdoc/generator/template/darkfish/css/rdoc.css +20 -0
- data/lib/rdoc/markdown.kpeg +19 -1
- data/lib/rdoc/markdown.rb +420 -22
- data/lib/rdoc/markup.rb +1 -0
- data/lib/rdoc/markup/attr_span.rb +8 -2
- data/lib/rdoc/markup/attribute_manager.rb +93 -28
- data/lib/rdoc/markup/table.rb +47 -0
- data/lib/rdoc/markup/to_html.rb +27 -0
- data/lib/rdoc/markup/to_joined_paragraph.rb +1 -0
- data/lib/rdoc/markup/to_rdoc.rb +28 -0
- data/lib/rdoc/markup/to_table_of_contents.rb +1 -0
- data/lib/rdoc/options.rb +33 -1
- data/lib/rdoc/parser/changelog.rb +145 -14
- data/lib/rdoc/rd/block_parser.rb +1 -1
- data/lib/rdoc/rd/inline_parser.rb +1 -2
- data/lib/rdoc/rdoc.rb +9 -2
- data/lib/rdoc/version.rb +1 -1
- data/rdoc.gemspec +4 -1
- metadata +19 -4
data/lib/rdoc/rd/block_parser.rb
CHANGED
data/lib/rdoc/rdoc.rb
CHANGED
@@ -166,8 +166,15 @@ class RDoc::RDoc
|
|
166
166
|
rescue Psych::SyntaxError
|
167
167
|
end
|
168
168
|
|
169
|
+
return RDoc::Options.new if options == false # Allow empty file.
|
170
|
+
|
169
171
|
raise RDoc::Error, "#{options_file} is not a valid rdoc options file" unless
|
170
|
-
RDoc::Options === options
|
172
|
+
RDoc::Options === options or Hash === options
|
173
|
+
|
174
|
+
if Hash === options
|
175
|
+
# Override the default values with the contents of YAML file.
|
176
|
+
options = RDoc::Options.new options
|
177
|
+
end
|
171
178
|
|
172
179
|
options
|
173
180
|
end
|
@@ -436,7 +443,7 @@ The internal error was:
|
|
436
443
|
files.reject do |file, *|
|
437
444
|
file =~ /\.(?:class|eps|erb|scpt\.txt|svg|ttf|yml)$/i or
|
438
445
|
(file =~ /tags$/i and
|
439
|
-
open(file, 'rb') { |io|
|
446
|
+
File.open(file, 'rb') { |io|
|
440
447
|
io.read(100) =~ /\A(\f\n[^,]+,\d+$|!_TAG_)/
|
441
448
|
})
|
442
449
|
end
|
data/lib/rdoc/version.rb
CHANGED
data/rdoc.gemspec
CHANGED
@@ -50,7 +50,6 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
|
|
50
50
|
"bin/setup",
|
51
51
|
"exe/rdoc",
|
52
52
|
"exe/ri",
|
53
|
-
"man/ri.1",
|
54
53
|
"lib/rdoc.rb",
|
55
54
|
"lib/rdoc/alias.rb",
|
56
55
|
"lib/rdoc/anon_class.rb",
|
@@ -167,6 +166,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
|
|
167
166
|
"lib/rdoc/markup/raw.rb",
|
168
167
|
"lib/rdoc/markup/regexp_handling.rb",
|
169
168
|
"lib/rdoc/markup/rule.rb",
|
169
|
+
"lib/rdoc/markup/table.rb",
|
170
170
|
"lib/rdoc/markup/to_ansi.rb",
|
171
171
|
"lib/rdoc/markup/to_bs.rb",
|
172
172
|
"lib/rdoc/markup/to_html.rb",
|
@@ -222,6 +222,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
|
|
222
222
|
"lib/rdoc/tom_doc.rb",
|
223
223
|
"lib/rdoc/top_level.rb",
|
224
224
|
"lib/rdoc/version.rb",
|
225
|
+
"man/ri.1",
|
225
226
|
"rdoc.gemspec",
|
226
227
|
]
|
227
228
|
# files from .gitignore
|
@@ -243,4 +244,6 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
|
|
243
244
|
|
244
245
|
s.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
245
246
|
s.required_rubygems_version = Gem::Requirement.new(">= 2.2")
|
247
|
+
|
248
|
+
s.add_development_dependency("gettext")
|
246
249
|
end
|
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.3.
|
4
|
+
version: 6.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -14,8 +14,22 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: exe
|
16
16
|
cert_chain: []
|
17
|
-
date:
|
18
|
-
dependencies:
|
17
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
18
|
+
dependencies:
|
19
|
+
- !ruby/object:Gem::Dependency
|
20
|
+
name: gettext
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
type: :development
|
27
|
+
prerelease: false
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
19
33
|
description: |
|
20
34
|
RDoc produces HTML and command-line documentation for Ruby projects.
|
21
35
|
RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
|
@@ -177,6 +191,7 @@ files:
|
|
177
191
|
- lib/rdoc/markup/raw.rb
|
178
192
|
- lib/rdoc/markup/regexp_handling.rb
|
179
193
|
- lib/rdoc/markup/rule.rb
|
194
|
+
- lib/rdoc/markup/table.rb
|
180
195
|
- lib/rdoc/markup/to_ansi.rb
|
181
196
|
- lib/rdoc/markup/to_bs.rb
|
182
197
|
- lib/rdoc/markup/to_html.rb
|
@@ -257,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
272
|
- !ruby/object:Gem::Version
|
258
273
|
version: '2.2'
|
259
274
|
requirements: []
|
260
|
-
rubygems_version: 3.2.
|
275
|
+
rubygems_version: 3.2.15
|
261
276
|
signing_key:
|
262
277
|
specification_version: 4
|
263
278
|
summary: RDoc produces HTML and command-line documentation for Ruby projects
|