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.

@@ -261,42 +261,31 @@ Examples
261
261
  assert_equal RDoc::Markup::Document.new, parse("\n")
262
262
  end
263
263
 
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 = text.gsub(/\r?\n/, ' ').sub(/ some point.*/, '')
271
- #
272
- # assert_equal expected, snippet(text)
273
- # end
274
- #
275
- # def test_snippet_comment
276
- # c = comment 'This is a comment'
277
- #
278
- # assert_equal 'This is a comment', snippet(c)
279
- # end
280
- #
281
- # def test_snippet_no_space
282
- # text = <<-TEXT.strip
283
- #This is one-hundred characters or more of text in a single paragraph. This
284
- #paragraph will not be cut
285
- # TEXT
286
- #
287
- # expected = <<-EXPECTED.strip.gsub(/\r?\n/, ' ')
288
- #This is one-hundred characters or more of text in a single paragraph. This
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.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
- ZXQwHhcNMTIwMjI4MTc1NDI1WhcNMTMwMjI3MTc1NDI1WjBBMRAwDgYDVQQDDAdk
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
- 9w0BAQUFAAOCAQEAPeWzFnrcvC6eVzdlhmjUub2s6qieBkongKRDHQz5MEeQv4LS
30
- SARnoHY+uCAVL/1xGAhmpzqQ3fJGWK9eBacW/e8E5GF9xQcV3mE1bA0WNaiDlX5j
31
- U2aI+ZGSblqvHUCxKBHR1s7UMHsbz1saOmgdRTyPx0juJs68ocbUTeYBLWu9V4KP
32
- zdGAG2JXO2gONg3b4tYDvpBLbry+KOX27iAJulUaH9TiTOULL4ITJVFsK0mYVqmR
33
- Q8Tno9S3e4XGGP1ZWfLrTWEJbavFfhGHut2iMRwfC7s/YILAHNATopaJdH9DNpd1
34
- U81zGHMUBOvz/VGT6wJwYJ3emS2nfA2NOHFfgA==
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-02-24 00:00:00.000000000 Z
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.3'
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.3'
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.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