rdoc 4.0.0 → 4.0.1
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +44 -0
- data/Rakefile +0 -1
- data/lib/rdoc.rb +1 -1
- data/lib/rdoc/class_module.rb +9 -5
- data/lib/rdoc/code_object.rb +14 -0
- data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +2 -1
- data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +19 -0
- data/lib/rdoc/markdown.kpeg +30 -36
- data/lib/rdoc/markdown.rb +517 -907
- data/lib/rdoc/markdown/literals_1_8.kpeg +2 -2
- data/lib/rdoc/markdown/literals_1_8.rb +6 -47
- data/lib/rdoc/markup.rb +1 -1
- data/lib/rdoc/markup/to_html.rb +18 -10
- data/lib/rdoc/options.rb +24 -8
- data/lib/rdoc/parser.rb +9 -0
- data/lib/rdoc/parser/c.rb +43 -1
- data/lib/rdoc/rdoc.rb +2 -0
- data/lib/rdoc/ri/driver.rb +3 -1
- data/lib/rdoc/ruby_lex.rb +2 -0
- data/lib/rdoc/rubygems_hook.rb +10 -1
- data/lib/rdoc/servlet.rb +17 -2
- data/lib/rdoc/text.rb +1 -1
- data/test/test_rdoc_class_module.rb +53 -0
- data/test/test_rdoc_code_object.rb +8 -0
- data/test/test_rdoc_markup_to_html.rb +27 -1
- data/test/test_rdoc_options.rb +65 -0
- data/test/test_rdoc_parser.rb +15 -0
- data/test/test_rdoc_parser_c.rb +104 -0
- data/test/test_rdoc_parser_ruby.rb +24 -0
- data/test/test_rdoc_rdoc.rb +17 -0
- data/test/test_rdoc_ri_driver.rb +4 -1
- data/test/test_rdoc_ruby_lex.rb +12 -0
- data/test/test_rdoc_servlet.rb +31 -1
- data/test/test_rdoc_text.rb +30 -37
- metadata +12 -12
- metadata.gz.sig +0 -0
data/test/test_rdoc_text.rb
CHANGED
@@ -261,42 +261,31 @@ Examples
|
|
261
261
|
assert_equal RDoc::Markup::Document.new, parse("\n")
|
262
262
|
end
|
263
263
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
#paragraph will not be cut
|
290
|
-
# EXPECTED
|
291
|
-
#
|
292
|
-
# assert_equal expected, snippet(text)
|
293
|
-
# end
|
294
|
-
#
|
295
|
-
# def test_snippet_short
|
296
|
-
# text = 'This is a comment'
|
297
|
-
#
|
298
|
-
# assert_equal text.dup, snippet(text)
|
299
|
-
# end
|
264
|
+
def test_snippet
|
265
|
+
text = <<-TEXT
|
266
|
+
This is one-hundred characters or more of text in a single paragraph. This
|
267
|
+
paragraph will be cut off some point after the one-hundredth character.
|
268
|
+
TEXT
|
269
|
+
|
270
|
+
expected = <<-EXPECTED
|
271
|
+
<p>This is one-hundred characters or more of text in a single paragraph. This
|
272
|
+
paragraph will be cut off …
|
273
|
+
EXPECTED
|
274
|
+
|
275
|
+
assert_equal expected, snippet(text)
|
276
|
+
end
|
277
|
+
|
278
|
+
def test_snippet_comment
|
279
|
+
c = comment 'This is a comment'
|
280
|
+
|
281
|
+
assert_equal "<p>This is a comment\n", snippet(c)
|
282
|
+
end
|
283
|
+
|
284
|
+
def test_snippet_short
|
285
|
+
text = 'This is a comment'
|
286
|
+
|
287
|
+
assert_equal "<p>#{text}\n", snippet(text)
|
288
|
+
end
|
300
289
|
|
301
290
|
def test_strip_hashes
|
302
291
|
text = <<-TEXT
|
@@ -560,9 +549,13 @@ The comments associated with
|
|
560
549
|
assert_equal "mismatched <tt> tag\n", err
|
561
550
|
end
|
562
551
|
|
563
|
-
def formatter
|
552
|
+
def formatter
|
564
553
|
RDoc::Markup::ToHtml.new @options
|
565
554
|
end
|
566
555
|
|
556
|
+
def options
|
557
|
+
@options
|
558
|
+
end
|
559
|
+
|
567
560
|
end
|
568
561
|
|
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: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -15,7 +15,7 @@ cert_chain:
|
|
15
15
|
-----BEGIN CERTIFICATE-----
|
16
16
|
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
|
17
17
|
YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu
|
18
|
-
|
18
|
+
ZXQwHhcNMTMwMjI4MDUyMjA4WhcNMTQwMjI4MDUyMjA4WjBBMRAwDgYDVQQDDAdk
|
19
19
|
cmJyYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZ
|
20
20
|
FgNuZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbbgLrGLGIDE76
|
21
21
|
LV/cvxdEzCuYuS3oG9PrSZnuDweySUfdp/so0cDq+j8bqy6OzZSw07gdjwFMSd6J
|
@@ -26,14 +26,14 @@ cert_chain:
|
|
26
26
|
sCANiQ8BAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
27
27
|
BBS5k4Z75VSpdM0AclG2UvzFA/VW5DAfBgNVHREEGDAWgRRkcmJyYWluQHNlZ21l
|
28
28
|
bnQ3Lm5ldDAfBgNVHRIEGDAWgRRkcmJyYWluQHNlZ21lbnQ3Lm5ldDANBgkqhkiG
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
9w0BAQUFAAOCAQEAOflo4Md5aJF//EetzXIGZ2EI5PzKWX/mMpp7cxFyDcVPtTv0
|
30
|
+
js/6zWrWSbd60W9Kn4ch3nYiATFKhisgeYotDDz2/pb/x1ivJn4vEvs9kYKVvbF8
|
31
|
+
V7MV/O5HDW8Q0pA1SljI6GzcOgejtUMxZCyyyDdbUpyAMdt9UpqTZkZ5z1sicgQk
|
32
|
+
5o2XJ+OhceOIUVqVh1r6DNY5tLVaGJabtBmJAYFVznDcHiSFybGKBa5n25Egql1t
|
33
|
+
KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
|
34
|
+
wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2013-
|
36
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: json
|
@@ -69,14 +69,14 @@ dependencies:
|
|
69
69
|
requirements:
|
70
70
|
- - ~>
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '4.
|
72
|
+
version: '4.6'
|
73
73
|
type: :development
|
74
74
|
prerelease: false
|
75
75
|
version_requirements: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '4.
|
79
|
+
version: '4.6'
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rdoc
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -476,7 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
476
476
|
version: '1.3'
|
477
477
|
requirements: []
|
478
478
|
rubyforge_project: rdoc
|
479
|
-
rubygems_version: 2.0.
|
479
|
+
rubygems_version: 2.0.3
|
480
480
|
signing_key:
|
481
481
|
specification_version: 4
|
482
482
|
summary: RDoc produces HTML and command-line documentation for Ruby projects
|
metadata.gz.sig
CHANGED
Binary file
|