rdoc 3.10 → 3.11
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.rdoc +7 -1
- data/TODO.rdoc +4 -0
- data/lib/rdoc.rb +1 -1
- data/lib/rdoc/rdoc.rb +7 -2
- data/test/test_rdoc_rdoc.rb +28 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/TODO.rdoc
CHANGED
data/lib/rdoc.rb
CHANGED
data/lib/rdoc/rdoc.rb
CHANGED
@@ -402,11 +402,16 @@ The internal error was:
|
|
402
402
|
end
|
403
403
|
|
404
404
|
##
|
405
|
-
# Removes file extensions known to be unparseable from +files+
|
405
|
+
# Removes file extensions known to be unparseable from +files+ and TAGS
|
406
|
+
# files for emacs and vim.
|
406
407
|
|
407
408
|
def remove_unparseable files
|
408
409
|
files.reject do |file|
|
409
|
-
file =~ /\.(?:class|eps|erb|scpt\.txt|ttf|yml)$/i
|
410
|
+
file =~ /\.(?:class|eps|erb|scpt\.txt|ttf|yml)$/i or
|
411
|
+
(file =~ /tags$/i and
|
412
|
+
open(file, 'rb') { |io|
|
413
|
+
io.read(100) =~ /\A(\f\n[^,]+,\d+$|!_TAG_)/
|
414
|
+
})
|
410
415
|
end
|
411
416
|
end
|
412
417
|
|
data/test/test_rdoc_rdoc.rb
CHANGED
@@ -122,6 +122,34 @@ class TestRDocRDoc < RDoc::TestCase
|
|
122
122
|
assert_empty @rdoc.remove_unparseable file_list
|
123
123
|
end
|
124
124
|
|
125
|
+
def test_remove_unparseable_tags_emacs
|
126
|
+
temp_dir do
|
127
|
+
open 'TAGS', 'w' do |io| # emacs
|
128
|
+
io.write "\f\nlib/foo.rb,43\n"
|
129
|
+
end
|
130
|
+
|
131
|
+
file_list = %w[
|
132
|
+
TAGS
|
133
|
+
]
|
134
|
+
|
135
|
+
assert_empty @rdoc.remove_unparseable file_list
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_remove_unparseable_tags_vim
|
140
|
+
temp_dir do
|
141
|
+
open 'TAGS', 'w' do |io| # emacs
|
142
|
+
io.write "!_TAG_"
|
143
|
+
end
|
144
|
+
|
145
|
+
file_list = %w[
|
146
|
+
TAGS
|
147
|
+
]
|
148
|
+
|
149
|
+
assert_empty @rdoc.remove_unparseable file_list
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
125
153
|
def test_setup_output_dir
|
126
154
|
Dir.mktmpdir {|d|
|
127
155
|
path = File.join d, 'testdir'
|
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: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: "3.
|
8
|
+
- 11
|
9
|
+
version: "3.11"
|
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: 2011-10-
|
41
|
+
date: 2011-10-17 00:00:00 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: json
|
metadata.gz.sig
CHANGED
Binary file
|