rdoc 3.2 → 3.3
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.
- data.tar.gz.sig +0 -0
- data/History.txt +28 -1
- data/Manifest.txt +3 -0
- data/lib/rdoc.rb +1 -1
- data/lib/rdoc/anon_class.rb +2 -0
- data/lib/rdoc/any_method.rb +33 -4
- data/lib/rdoc/code_object.rb +6 -0
- data/lib/rdoc/context.rb +0 -1
- data/lib/rdoc/encoding.rb +0 -1
- data/lib/rdoc/generator/markup.rb +4 -0
- data/lib/rdoc/generator/template/darkfish/classpage.rhtml +1 -1
- data/lib/rdoc/markup.rb +2 -2
- data/lib/rdoc/markup/attribute_manager.rb +0 -1
- data/lib/rdoc/markup/to_tt_only.rb +114 -0
- data/lib/rdoc/normal_class.rb +7 -0
- data/lib/rdoc/normal_module.rb +7 -0
- data/lib/rdoc/options.rb +3 -1
- data/lib/rdoc/parser/c.rb +7 -2
- data/lib/rdoc/parser/ruby.rb +17 -5
- data/lib/rdoc/rdoc.rb +5 -1
- data/lib/rdoc/ri/driver.rb +36 -4
- data/lib/rdoc/ruby_lex.rb +5 -3
- data/lib/rdoc/single_class.rb +9 -0
- data/lib/rdoc/stats.rb +211 -78
- data/lib/rdoc/text.rb +1 -1
- data/test/test_rdoc_any_method.rb +57 -0
- data/test/test_rdoc_code_object.rb +24 -0
- data/test/test_rdoc_markup_to_tt_only.rb +225 -0
- data/test/test_rdoc_normal_class.rb +6 -0
- data/test/test_rdoc_normal_module.rb +6 -0
- data/test/test_rdoc_options.rb +19 -0
- data/test/test_rdoc_parser_c.rb +31 -2
- data/test/test_rdoc_parser_ruby.rb +156 -1
- data/test/test_rdoc_rdoc.rb +4 -1
- data/test/test_rdoc_ri_driver.rb +58 -0
- data/test/test_rdoc_single_class.rb +12 -0
- data/test/test_rdoc_stats.rb +506 -1
- data/test/test_rdoc_text.rb +13 -0
- metadata +9 -4
- metadata.gz.sig +2 -5
data/test/test_rdoc_text.rb
CHANGED
@@ -144,6 +144,19 @@ The comments associated with
|
|
144
144
|
assert_equal 'hi', strip_newlines("\n\nhi\n\n")
|
145
145
|
end
|
146
146
|
|
147
|
+
def test_strip_newlines_encoding
|
148
|
+
assert_equal Encoding::UTF_8, ''.encoding, 'Encoding sanity check'
|
149
|
+
|
150
|
+
text = " \n"
|
151
|
+
text.force_encoding Encoding::US_ASCII
|
152
|
+
|
153
|
+
stripped = strip_newlines text
|
154
|
+
|
155
|
+
assert_equal ' ', stripped
|
156
|
+
|
157
|
+
assert_equal Encoding::US_ASCII, stripped.encoding
|
158
|
+
end
|
159
|
+
|
147
160
|
def test_strip_stars
|
148
161
|
text = <<-TEXT
|
149
162
|
/*
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: "3.
|
8
|
+
- 3
|
9
|
+
version: "3.3"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Eric Hodel
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
x52qPcexcYZR7w==
|
39
39
|
-----END CERTIFICATE-----
|
40
40
|
|
41
|
-
date:
|
41
|
+
date: 2011-01-03 00:00:00 -08:00
|
42
42
|
default_executable:
|
43
43
|
dependencies:
|
44
44
|
- !ruby/object:Gem::Dependency
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/rdoc/markup/to_html_crossref.rb
|
237
237
|
- lib/rdoc/markup/to_rdoc.rb
|
238
238
|
- lib/rdoc/markup/to_test.rb
|
239
|
+
- lib/rdoc/markup/to_tt_only.rb
|
239
240
|
- lib/rdoc/markup/verbatim.rb
|
240
241
|
- lib/rdoc/meta_method.rb
|
241
242
|
- lib/rdoc/method_attr.rb
|
@@ -296,6 +297,7 @@ files:
|
|
296
297
|
- test/test_rdoc_markup_to_html.rb
|
297
298
|
- test/test_rdoc_markup_to_html_crossref.rb
|
298
299
|
- test/test_rdoc_markup_to_rdoc.rb
|
300
|
+
- test/test_rdoc_markup_to_tt_only.rb
|
299
301
|
- test/test_rdoc_method_attr.rb
|
300
302
|
- test/test_rdoc_normal_class.rb
|
301
303
|
- test/test_rdoc_normal_module.rb
|
@@ -310,6 +312,7 @@ files:
|
|
310
312
|
- test/test_rdoc_ri_paths.rb
|
311
313
|
- test/test_rdoc_ri_store.rb
|
312
314
|
- test/test_rdoc_ruby_lex.rb
|
315
|
+
- test/test_rdoc_single_class.rb
|
313
316
|
- test/test_rdoc_stats.rb
|
314
317
|
- test/test_rdoc_task.rb
|
315
318
|
- test/test_rdoc_text.rb
|
@@ -394,6 +397,7 @@ test_files:
|
|
394
397
|
- test/test_rdoc_markup_to_html.rb
|
395
398
|
- test/test_rdoc_markup_to_html_crossref.rb
|
396
399
|
- test/test_rdoc_markup_to_rdoc.rb
|
400
|
+
- test/test_rdoc_markup_to_tt_only.rb
|
397
401
|
- test/test_rdoc_method_attr.rb
|
398
402
|
- test/test_rdoc_normal_class.rb
|
399
403
|
- test/test_rdoc_normal_module.rb
|
@@ -408,6 +412,7 @@ test_files:
|
|
408
412
|
- test/test_rdoc_ri_paths.rb
|
409
413
|
- test/test_rdoc_ri_store.rb
|
410
414
|
- test/test_rdoc_ruby_lex.rb
|
415
|
+
- test/test_rdoc_single_class.rb
|
411
416
|
- test/test_rdoc_stats.rb
|
412
417
|
- test/test_rdoc_task.rb
|
413
418
|
- test/test_rdoc_text.rb
|
metadata.gz.sig
CHANGED
@@ -1,5 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
n3݆�(�2j�����F��d+aW�>e������ݞ�
|
4
|
-
�n���gZ�r��vJ��qo:��L�
|
5
|
-
22r1]/FXʔ�ϲ-����LW��"By�;A j�1��h��E�/~�a��U?,��A-
|
1
|
+
~�:h�-ɓ����C^���
|
2
|
+
/��sݦ�ϟS|Ѿ=��f�H��R_�AN!�wK��8{&s}�xN'�4�tk}z<�NQ�W��èˢ����_���1�ĊB��l�k�� #�������������+�Ʃ|�w��|N�����{=u���b�q�7g�_$t���N�
|